This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // === UI Components === | |
| TextArea textDisplay = new TextArea() | |
| textDisplay.setEditable(false) | |
| textDisplay.setWrapText(true) | |
| textDisplay.setPrefRowCount(5) | |
| VBox channelInfoBox = new VBox(5) | |
| channelInfoBox.setStyle("-fx-padding: 5; -fx-border-color: lightgray; -fx-border-width: 1;") | |
| Label channelInfoLabel = new Label("Displayed Channels") | |
| channelInfoLabel.setStyle("-fx-font-weight: bold;") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // === UI Components === | |
| // LEFT SIDE | |
| Label annotationLabel = new Label("Name") | |
| TextField annotationNameField = new TextField() | |
| Label descriptionLabel = new Label("Description") | |
| TextArea descriptionField = new TextArea() | |
| descriptionField.setPrefRowCount(10) | |
| descriptionField.setWrapText(true) | |
| descriptionField.setPrefColumnCount(20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application | |
| import javafx.scene.Scene | |
| import javafx.scene.control.* | |
| import javafx.scene.layout.GridPane | |
| import javafx.stage.Stage | |
| import javafx.scene.chart.NumberAxis | |
| import javafx.scene.chart.ScatterChart | |
| import javafx.scene.chart.XYChart | |
| import javafx.scene.paint.Color | |
| import javafx.scene.shape.Circle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Platform | |
| import javafx.scene.Scene | |
| import javafx.scene.control.* | |
| import javafx.scene.layout.* | |
| import javafx.stage.Stage | |
| import javafx.stage.DirectoryChooser | |
| import javafx.geometry.Insets | |
| import javafx.geometry.Pos | |
| import javafx.collections.FXCollections | |
| import javafx.collections.ObservableList |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //PARAMETERS | |
| nuclei_ch = 3 | |
| measure_ch = 1 | |
| conda_env_path = "D:/conda/conda-envs/cellpose-3111" // replace with the path to your cellpose environment | |
| image_title = getTitle(); | |
| // do some cleaning | |
| roiManager("reset"); | |
| run("Clear Results"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@ File(style="directory") dir | |
| frames = 3 | |
| IJ.run("Close All", ""); | |
| ArrayList<ImagePlus> imps = new ArrayList<>(frames); | |
| dir.eachFile { | |
| //println(it) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Change the name of the tissue classifier here if needed | |
| def tissueFinder = "Tissue" | |
| // Which Name should they have ? | |
| // if annotation with the same name exist they will be deleted | |
| def annotation_name = "Analysis" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // clear the environment | |
| run("Close All"); | |
| roiManager("Reset"); | |
| //open an image | |
| run("Fly Brain (1MB)"); | |
| // make it composite, duplicate one slice and get information | |
| run("Make Composite"); | |
| run("Duplicate...", "duplicate channels=1 slices=27"); | |
| getDimensions(width, height, channels, slices, frames); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // clear the environment | |
| run("Close All"); | |
| run("Clear Results") | |
| roiManager("Reset"); | |
| // Set the measurements of intererest | |
| run("Set Measurements...", "area mean standard min limit display redirect=None decimal=3"); | |
| run("Gel (105K)"); | |
| rename("Original"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@File(label="Multiposition Files Directory",style="directory") image_directory | |
| #@String(value="Select a file for flat field correction or write none", visibility="MESSAGE") textFF | |
| #@File(label="Flatfield Stack File") ff_file | |
| #@int(label="Downsample Factor", style = "slider", min = 1, max = 16, stepSize = 1) downsample | |
| #@Boolean(label="Perform Stitching") is_do_stitch | |
| #@Boolean(label="Compute Overlap") is_compute | |
| #@Boolean(label="Keep Original Bit Depth") is_keep_bit_depth | |
| #@String(label="Macro Mode",choices={"Fuse and display","Write to disk"}) output_type | |
| #@Boolean(label="Save final stitched as *.ids (if write to disk)") save_Stiched_asIDS | |
| #@Boolean(label="Delete temporary files (if write to disk)") delete_temp_files |
NewerOlder