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
import ij.* | |
import ij.plugin.Duplicator | |
import ij.io.FileSaver | |
/** | |
* | |
* Here is a groovy script which: | |
* - Gets information about the current ImagePlus File (via imp.getOriginalFileInfo()), | |
* - Retrieves its directory | |
* - Creates an output subfolder |
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
#@File(label="Please select an UserName-Lab", style="directory") selected_dir | |
#@String() projectName | |
/* | |
* Macro to create a folder accordingly to BIOP template. | |
* | |
* | |
* | |
* git need to be installed |
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
/* | |
// ABOUT | |
Exports Annotations for StarDist (Or other Deep Learning frameworks) | |
// INPUTS | |
You need rectangular annotations that have classes "Training" and "Validation" | |
After you have placed these annotations, lock them and start drawing the objects inside | |
// OUTPUTS | |
---------- |
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
// 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 |