https://github.com/syngenta/imagej-plugins
ImageJ Plugins
https://github.com/syngenta/imagej-plugins
image-processing imagej-plugins java
Last synced: 25 days ago
JSON representation
ImageJ Plugins
- Host: GitHub
- URL: https://github.com/syngenta/imagej-plugins
- Owner: syngenta
- License: mit
- Created: 2023-07-03T12:45:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-07T14:36:52.000Z (almost 3 years ago)
- Last Synced: 2025-03-06T12:52:29.900Z (over 1 year ago)
- Topics: image-processing, imagej-plugins, java
- Language: Java
- Homepage:
- Size: 1.19 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Syngenta ImageJ Plugins
This repository contains the following ImageJ plug-ins:
+ Segmentation > Hue Colours: segment an image in colour-space
## Installation
Build `hue-colours-N.N.N.jar` using Maven:
```
maven package
```
Then copy the JAR file to ImageJ's `plugins` folder, replacing or deleting any old version of the JAR. **Note**, ImageJ
requires that JAR filenames in the `plugins` folder must have a leading underscore, e.g. `_hue-colours.jar`.
## Run
The filter can be found under the ImageJ Plugins menu:
Plugins > Segmentation > Hue Colours
To invoke the filter from a macro use the following, e.g.
`run("Hue Colours", "");`
To invoke the filter programmatically use the `PlugInFilterRunner`, e.g.
```java
import ij.ImagePlus;
import ij.WindowManager;
import ij.io.Opener;
import ij.plugin.filter.PlugInFilter;
import ij.plugin.filter.PlugInFilterRunner;
import com.syngenta.imagej.plugins.imagecolours.HueColoursFilter;
// Open an image and make it current image.
final ImagePlus image=new Opener().openImage(inputImagePath);
WindowManager.setTempCurrentImage(image);
// Create and apply the filter to the current image.
final PluginFilter filter=new HueColoursFilter();
new PlugInFilterRunner(filter,"","");
```
See also, `HueColoursExample.java` for a more complete example.