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
run("Close All"); | |
roiManager("reset"); | |
// ring thickness | |
step = 10 ; | |
// prepare a test image | |
setForegroundColor(255, 255, 255); | |
setBackgroundColor(0, 0, 0); | |
newImage("Shape", "8-bit black", 512, 512, 1); | |
makePolygon(258,122,171,192,115,272,167,430,232,350,229,302,289,338,324,300,329,236,411,160); |
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 image_path | |
#@RoiManager rm | |
#@ CommandService command | |
#@ Double (label="Nuclei Proba. Threshold", value=0.5) threshold_proba_nuc | |
#@ Double (label="Nuclei min. intensity (A.U.)", value=10) minInt_nuc | |
#@Integer (label="Max Frame Gap") frameGap | |
#@Double (label="Linking Max Distance") linkDistance | |
#@Integer (label="Gap Closing Max Distance") gapClosingDistance | |
// authors : olvier.burri & romain.guiet (at) epfl.ch |
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
run("Close All"); | |
run("Blobs (25K)"); | |
img1 = getImageID(); | |
run("Invert LUT"); | |
run("32-bit"); | |
rename("On_disableSmoothing"); | |
run("Duplicate...", "title=Off_disableSmoothing"); | |
img2 = getImageID(); |
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
name_spots = "pinkySpots"; | |
name_filtered_spots = name_spots+"-filtered"; | |
rt = new ResultsTable() | |
rt.reset() | |
// Here teh script expect to find the demo.ims file in the folder Fiji>Plugins>BIOP | |
def plugins_dir = IJ.getDirectory("plugins") | |
def biop_dir = new File(plugins_dir , "BIOP") | |
ims_name = "HeLa_H2B-mcherry_Tubline-EGFP_mitochondria-MitoTracker_reduced.ims" |
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
oneOval = 1 ; | |
//size_Array = newArray(1,5,10,20,50,100); | |
size_Array = newArray(7,9,11,15,20,25,50); | |
int_Array = newArray(5,10,20,50,100,150,250); | |
Array.getStatistics(size_Array, size_Array_min, size_Array_max, size_Array_mean, size_Array_stdDev); | |
//print(size_Array_max); |
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
/* | |
* Romain Guiet | |
* EPFL | |
* Nov 2020 | |
* | |
* adapted from : https://raw.githubusercontent.com/bvernay/ImageJ-Macros/master/xml_annotations_tools/roiTOXML.ijm | |
* Bertrand Vernay | |
* Imaging Centre IGBMC | |
* [email protected] | |
* September 2020 |
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 projectFile | |
imageName = getTitle(); | |
run("Run Pixel Classification Prediction", "projectfilename="+projectFile+ | |
" inputimage=["+imageName+"]"+ | |
" pixelclassificationtype=Probabilities"); | |
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
// https://forum.image.sc/t/macro-function-close-others-in-groovy/44630 | |
// Using ID as proposed by @imagejan | |
import ij.WindowManager | |
#@ ImagePlus imp | |
WindowManager.getIDList() | |
.findAll{ it != imp.getID() } | |
.each{ WindowManager.getImage(it).close() } | |
null // suppress result processing by SciJava |
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 image_path | |
#@ String seriesNbr | |
#@ String (choices={"max","avg","sum","none"}) zProj | |
import org.apache.commons.io.FilenameUtils | |
import ij.* | |
import ij.plugin.ZProjector | |
import ij.io.FileSaver |
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
/* QuPath-Script to export annotations to label tif images (e.g. to be used for stardist) | |
Use "Run for project" to export annotations for all images within a QuPath project | |
Afterwards both images and mask tiffs will be stored in the project subfolder | |
ground_truth | |
├── images | |
└── masks | |