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 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 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="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 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
/* | |
// 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 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
// Open a URL from OMERO with caching into Fiji as an ImagePlus | |
// Requires PTBIOP and OMERO 5.5 5.6 update site | |
// Written by Nicolas Chiaruttini on 24th Jan 2025 | |
// Try https://omero-tim.gerbi-gmb.de/webclient/?show=image-104300 with: | |
// login: read-tim | |
// passwd: read-tim | |
#@CommandService cs | |
#@String(label="omero url") url | |
#@SourceAndConverterService source_service |