https://github.com/labshare/polus-plugins/tree/master/polus-feature-extraction-plugin
1.7K
The feature extraction plugin extracts shape and intensity based features from images and outputs csv file.The input image should be in OME tiled tiff format.
These are the features that can be extracted from this plugin:
The input should be a labeled image in OME tiled tiff format. Extracting shape-based features, feret diameter, neighbors, hexagonality and polygonality scores requires only labeled image. This is a required parameter for the plugin.
Extracting intensity-based features requires intensity image and labeled image in OME tiled tiff (.ome.tif) format. Intensity image with same size as labeled image should be used as input. This is an optional parameter. The input for this parameter is required only when intensity-based features needs to be extracted.
Enter value for this parameter if neighbors touching cells needs to be calculated. The default value is 5. This is an optional parameter.
Choose the features that need to be extracted. Multiple features can be selected. If all the 26 features are required, then choose ‘all’ option.
There are 2 options available under this category. Separatecsv - Allows to save all the features extracted for each image in separate csv file. Singlecsv - Allows to save all the features extracted from all the images in the same csv file.
This is an optional parameter. Use this parameter only if units are present in the metadata and want to use those embedded units for the features extraction. If this option is selected, need not enter any value for the length of unit and pixels per unit parameter.
Mention the unit name for conversion. This is also an optional parameter.
If there is a metric mentioned in Length of unit, then Pixels per unit cannot be left blank and hence the scale per unit value must be mentioned in this parameter.
Note:
The output is a csv file containing the value of features required.
For more information on WIPP, visit the official WIPP page.
To build the Docker image for the conversion plugin, run
./build-docker.sh.
If WIPP is running, navigate to the plugins page and add a new plugin. Paste the contents of plugin.json into the pop-up window and submit.
This plugin takes eight input argument and one output argument:
| Name | Description | I/O | Type |
|---|---|---|---|
--intDir | Intensity image collection | Input | collection |
--pixelDistance | Pixel distance to calculate the neighbors touching cells | Input | integer |
--segDir | Labeled image collection | Input | collection |
--features | Select intensity and shape features required | Input | array |
--csvfile | Save csv file as one csv file for all images or separate csv file for each image | Input | enum |
--embeddedpixelsize | Consider the unit embedded in metadata, if present | Input | boolean |
--unitLength | Enter the metric for unit conversion | Input | string |
--pixelsPerunit | Enter the number of pixels per unit of the metric | Input | number |
--outDir | Output collection | Output | csvCollection |
docker pull labshare/polus-feature-extraction-plugin:0.1.0