This file contains 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
// BIOP Functions Library v1.0 | |
/* | |
* Returns the name of the parameters window, as we cannot use global variables, | |
* we just define a function that can act as a global variable | |
*/ | |
function getWinTitle() { | |
win_title= toolName(); | |
// If something is already open, keep it as-is. | |
if(!isOpen(win_title)) { |
This file contains 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
/* | |
************* Temporal-Color Coder ******************************* | |
Color code the temporal changes. | |
Kota Miura (miura@embl.de) | |
Centre for Molecular and Cellular Imaging, EMBL Heidelberg, Germany | |
If you publish a paper using this macro, please acknowledge. |
This file contains 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
/* | |
* Use of the custom function rotateLine(...) | |
* Around a fixed point, get the x,y corrdinates | |
* of the points rotating around the Center at a defined distance | |
* | |
*/ | |
selectWindow("blobs.gif"); | |
// Center Point coordinates |
This file contains 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
title = getTitle; | |
close("\\Others"); | |
roiManager("Reset"); | |
sigma1 = newArray(1,2,3,4,5,10); | |
for (i = 0 ; i < lengthOf(sigma1) ; i++) { | |
selectWindow(title); | |
run("Duplicate...", "title=gb1"); | |
run("Gaussian Blur...", "sigma="+sigma1[i]); |
This file contains 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
roiManager("reset"); | |
getStatistics(area, mean, min, max, std, histogram); | |
for (i = 1; i <= max; i++) { | |
setThreshold(i, i); | |
run("Create Selection"); | |
Roi.setName(IJ.pad(i,6)) | |
roiManager("Add"); | |
} |
This file contains 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
archive_name = "models.zip" | |
import os | |
import zipfile | |
# retrieve the pat of the current directory (bash command uses !...) | |
path=!pwd | |
path = path[0] | |
# create the archive path using path and archive_name |
This file contains 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=getTitle(); | |
run("Make Substack...", "channels=1"); | |
rename("Predicted object probability"); | |
proba_ID = getImageID(); | |
run("Fire"); | |
selectWindow(name); | |
run("Make Substack...", "channels=2-33"); |
This file contains 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
// = CODE DESCRIPTION = | |
// Image annotations are saved as a ROIset.zip in a '/ROI Sets' folder, so they can be re-open in Image-j | |
// The ROIset.zip saving/naming convention respect the ImageJ's BIOPLib.ijm (from PTBIOP update site). | |
// | |
// == INPUTS == | |
// A QuPath project, with annotations. | |
// | |
// == OUTPUTS == | |
// The annotations are saved as a ROIset.zip in a '/ROI Sets' folder, | |
// |
This file contains 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
// adapted from https://gist.github.com/NicoKiaru/ae00117cd6d33fea500d2867a5e669d9 | |
// | |
// = CODE DESCRIPTION = | |
// Add ROIs to ImageJ roiManager from an image with labels. | |
// | |
// == INPUTS == | |
// A label image, grey or RGB. | |
// | |
// == OUTPUTS == | |
// Rois in ImageJ roiManager. |
This file contains 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 | |
OlderNewer