Applications/FeatureColorMapper: Difference between revisions

From MiToBo
Jump to navigationJump to search
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:


== FeatureColorMapper Plugin ==
== FeatureColorMapper Plugin ==
[[File:Screenshot-FeatureColorMapper.png|500px|right|link=]]
<!--
[[File:sampleImage-colorResult-inverse.png|300px|right|link=]]
[[File:sampleImage-features-white.png|300px|right|link=]]
-->


==== Short Description ====
==== Short Description ====
The FeatureColorMapper allows to map feature values extracted for regions in an image onto corresponding label images for visualization.<br> The features values (like for example extracted by the '''''[[Applications/PaCeQuantToolset|PaCeQuant]]''''' plugin) have to be provided as CSV files.<br> The mapper allows to select a set of features, and for each feature color maps with user-defined colors showing the overlay of region-specific feature values over the image regions are saved to disk.
The FeatureColorMapper allows to map feature values extracted for regions in an image onto corresponding label images for visualization.<br> The features values (like for example extracted by the '''''[[Applications/PaCeQuantToolset|PaCeQuant]]''''' plugin) have to be provided as CSV files.<br> The mapper allows to select a set of features, and for each feature color maps with user-defined colors showing the overlay<br/> of region-specific feature values over the image regions are saved to individual folders on disk.<br/>


==== Release Notes ====
==== Release Notes ====
The FeatureColorMapper is available since release version 1.8.17 of MiToBo.<br/>
The FeatureColorMapper is available in MiToBo since release version 1.9.<br/>


<!--
[[File:sampleImage-inverse.png|300px|right|link=]]
[[File:sampleImage-colorResult-inverse.png|300px|right|link=]]
[[File:sampleImage-features-white.png|300px|right|link=]]
-->
==== Related Publication ====
==== Related Publication ====


<!--
When using the mapper, please cite us:
When using PaCeQuant, please cite us:
* B. Möller, M. Glaß, D. Misiak, and S. Posch, ''MiToBo - a toolbox for image processing and analysis''. In Journal of Open Research Software, 4(1):e17, 2016.
* B. Möller, Y. Poeschl, R. Plötner, and K. Bürstenbinder,<br> '''''PaCeQuant: A Tool for High-Throughput Quantification of Pavement Cell Shape Characteristics'''''.<br> [http://www.plantphysiol.org/content/early/2017/09/20/pp.17.00961 Plant Physiology, 175(1), September 2017].
-->
<br>


==== Name of Plugin/Operator ====
==== Name of Plugin/Operator ====
Line 28: Line 25:
</code>
</code>
<br>
<br>
(available since MiToBo version 1.8.17)
(available since MiToBo version 1.9)
<br>
<br>


==== Main features ====  
==== Main features ====  
* allows to map shape features extracted by [[Applications/PaCeQuant|PaCeQuant]] in heatmap style to cell images
* allows to map region features, for example cell features extracted by '''''[[Applications/PaCeQuant|PaCeQuant]]''''', in heatmap style to image regions
* the color map can be configured by the user in terms of colors used for minimal and maximal values
* multiple features can be mapped in a single plugin run
* a range of valid region sizes can be specified to exclude too small or too large regions from processing and mapping


==== Usage - Parameters ====
==== Usage ====
====== General remarks ======
To run the plugin perform the following steps:
To run the plugin perform the following steps:
* install MiToBo by following the instructions on the [[Installation]] page
* install MiToBo by following the instructions on the [[Installation]] page
* ...
* run MiToBo and start the operator runner by selecting the menu item '''''MiToBo Runner''''' from '''''Plugins -> MiToBo'''''
* in the selection menu navigate to '''de.unihalle.informatik.MiToBo.apps.cellMorphology''' and select the operator '''''FeatureColorMapper'''''
This will bring up the operator window of the mapper (see figure on the right, top) where the basic configuration parameters can be specified.


===== Input Parameters =====
You first need to select a folder where the mapper can find feature data that should be mapped. Select the folder using the '''''"Choose..."''''' button.<br/> After selecting a suitable directory, press the '''''"Load"''''' button. The mapper will search for files with CSV feature data and parse the first of these files to figure out which features are present.<br/> These will be listed in the '''''"Column(s) to map"''''' menu below and can be selected for mapping by the user. <br/> Once the desired features are selected you can specify the color range that should be used and minimal and maximal size thresholds for regions to be considered.<br/> Press the '''''"Run"''''' button to start the operator.
... coming soon
 
<!--
<p>
The mapper first collects all feature data table files in the given input directory and its sub-directories and the seeks to find a corresponding label image for each table file. Afterwards the minimal and maximal values for each selected feature to map are determined, and the output color feature maps are generated by mapping the feature values of each region to the corresponding color by linear interpolation between the color for the minimal value and the color for the maximal value.
 
====== Input Parameters ======
{|class="wikitable"
{|class="wikitable"
|style="width:20%;"|Operation Mode
|style="width:20%;"| '''Parameter Name'''
| Phase(s) to Run
| '''Explanation'''
| Input Data
|-
|''INTERACTIVE''  
|''SEGMENTATION_ONLY''  
|Gray-scale input image already opened in ImageJ/Fiji.
|-
|-
|
| ''Input Data''  
|''SEGMENTATION_AND_FEATURES''  
| Directory where to find the feature data and the set of features to be mapped. Note that the input folder and all its sub-folders are included.
|Gray-scale input image already opened in ImageJ/Fiji.
|-
|-
|
| ''Color Range Minimum''
|''FEATURES_ONLY''  
| Color to which the minimal value of each selected feature is mapped. Between the minimal and maximal color a linear interpolation of values takes place.
|Binary or label image already opened in ImageJ/Fiji, or ImageJ ROI set from ROI manager.
|-
|-
|''BATCH''  
| ''Color Range Maximum''
|''SEGMENTATION_ONLY''
| Color to which the maximal value of each selected feature is mapped. Between the minimal and maximal color a linear interpolation of values takes place.
|Directory containing gray-scale input images.<br> First-level sub-folders are also processed.
|-
|-
|
| ''Minimal Size Threshold''
|''SEGMENTATION_AND_FEATURES''  
| Threshold on the size of the regions to be considered; smaller regions are excluded. The unit for the threshold is the same as the unit of the region areas in the feature files.
|Directory containing gray-scale input images.<br> First-level sub-folders are also processed.
|-
|-
|
| ''Maximal Size Threshold''
|''FEATURES_ONLY''  
| Threshold on the size of the regions to be considered; larger regions are excluded. The unit for the threshold is the same as the unit of the region areas in the feature files.
|Directory containing either binary or label images to process, a collection of ImageJ ROI files (with ending '.roi'), or an archive of multiple ImageJ ROIs (with ending '.zip').
|}
|}
<span style="color:#ff0000">'''Important notice''':</span><br> In ''BATCH'' mode PaCeQuant tries to analyze ''all'' image files present in the given folder or any of its direct sub-folders. In particular, PaCeQuant will also analyze data from a potential result folder of a previous run, if it is present in the given folder. To avoid problems resulting from analyzing wrong data you should ensure that the provided directory only contains native input images or segmentation data and no other image data not suitable for processing with PaCeQuant.
-->


===== Output Parameters =====
====== Operator Output ======
... coming soon
The mapper creates for each selected feature a new folder in the corresponding directory named '''''"featureColorMaps-<feature>"''''' where the maps are stored in tif format.<br/> The maps are named according to the corresponding input label images, i.e. '''''"<image>-colorMap-<feature>_<units>.tif"'''''.


<!--
==== Sample data ====
==== Sample data ====
... coming soon
... coming soon
<!--
Here we provide some sample data with which you can test your local PaCeQuant installation:
Here we provide some sample data with which you can test your local PaCeQuant installation:


Line 88: Line 82:


The second archive contains result data extracted with PaCeQuant for validating if your local PaCeQuant installation yields correct results.
The second archive contains result data extracted with PaCeQuant for validating if your local PaCeQuant installation yields correct results.
== Notes on manual or semi-automatic segmentation of cells ==
PaCeQuant supports extracting features from externally provided segmentation data.<br> This can be helpful in cases where the original input images are not suitable for automatic segmentation by PaCeQuant,<br> e.g., due to a general low image quality or image acquisition techniques for which PaCeQuant is not optimized.
The segmentation data can be provided in different formats:
* an 8-bit binary image where all cell regions are labeled white (intensity = 255)
* an 8-bit gray-scale image where each cell region is marked with an individual label (intensity larger than zero) and the background in black (intensity = 0)
* ImageJ ROI files
Note that when providing binary images neighboring regions must not touch each other. Optimally the margins between neighboring cell regions will have a width of at least 3 pixels.
-->
-->

Latest revision as of 08:56, 19 February 2020



FeatureColorMapper Plugin

Screenshot-FeatureColorMapper.png

Short Description

The FeatureColorMapper allows to map feature values extracted for regions in an image onto corresponding label images for visualization.
The features values (like for example extracted by the PaCeQuant plugin) have to be provided as CSV files.
The mapper allows to select a set of features, and for each feature color maps with user-defined colors showing the overlay
of region-specific feature values over the image regions are saved to individual folders on disk.

Release Notes

The FeatureColorMapper is available in MiToBo since release version 1.9.

Related Publication

When using the mapper, please cite us:

  • B. Möller, M. Glaß, D. Misiak, and S. Posch, MiToBo - a toolbox for image processing and analysis. In Journal of Open Research Software, 4(1):e17, 2016.

Name of Plugin/Operator

de.unihalle.informatik.MiToBo.apps.cellMorphology.FeatureColorMapper
(available since MiToBo version 1.9)

Main features

  • allows to map region features, for example cell features extracted by PaCeQuant, in heatmap style to image regions
  • the color map can be configured by the user in terms of colors used for minimal and maximal values
  • multiple features can be mapped in a single plugin run
  • a range of valid region sizes can be specified to exclude too small or too large regions from processing and mapping

Usage

General remarks

To run the plugin perform the following steps:

  • install MiToBo by following the instructions on the Installation page
  • run MiToBo and start the operator runner by selecting the menu item MiToBo Runner from Plugins -> MiToBo
  • in the selection menu navigate to de.unihalle.informatik.MiToBo.apps.cellMorphology and select the operator FeatureColorMapper

This will bring up the operator window of the mapper (see figure on the right, top) where the basic configuration parameters can be specified.

You first need to select a folder where the mapper can find feature data that should be mapped. Select the folder using the "Choose..." button.
After selecting a suitable directory, press the "Load" button. The mapper will search for files with CSV feature data and parse the first of these files to figure out which features are present.
These will be listed in the "Column(s) to map" menu below and can be selected for mapping by the user.
Once the desired features are selected you can specify the color range that should be used and minimal and maximal size thresholds for regions to be considered.
Press the "Run" button to start the operator.

The mapper first collects all feature data table files in the given input directory and its sub-directories and the seeks to find a corresponding label image for each table file. Afterwards the minimal and maximal values for each selected feature to map are determined, and the output color feature maps are generated by mapping the feature values of each region to the corresponding color by linear interpolation between the color for the minimal value and the color for the maximal value.

Input Parameters
Parameter Name Explanation
Input Data Directory where to find the feature data and the set of features to be mapped. Note that the input folder and all its sub-folders are included.
Color Range Minimum Color to which the minimal value of each selected feature is mapped. Between the minimal and maximal color a linear interpolation of values takes place.
Color Range Maximum Color to which the maximal value of each selected feature is mapped. Between the minimal and maximal color a linear interpolation of values takes place.
Minimal Size Threshold Threshold on the size of the regions to be considered; smaller regions are excluded. The unit for the threshold is the same as the unit of the region areas in the feature files.
Maximal Size Threshold Threshold on the size of the regions to be considered; larger regions are excluded. The unit for the threshold is the same as the unit of the region areas in the feature files.
Operator Output

The mapper creates for each selected feature a new folder in the corresponding directory named "featureColorMaps-<feature>" where the maps are stored in tif format.
The maps are named according to the corresponding input label images, i.e. "<image>-colorMap-<feature>_<units>.tif".