Applications/FeatureColorMapper: Difference between revisions

From MiToBo
Jump to navigationJump to search
No edit summary
Line 35: Line 35:


==== Usage ====
==== 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
Line 41: Line 42:
This will bring up the operator window of the mapper (see figure on the right, top) where the basic configuration parameters can be specified.
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. <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.
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.
 
<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 ======
====== Input Parameters ======
Line 49: Line 53:
|-
|-
| ''Input Data''  
| ''Input Data''  
| Folder 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.
| 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 Range Minimum''
Line 64: Line 68:
|}
|}


===== 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 78: 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.
-->
-->

Revision as of 17:38, 13 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.8.17.

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.8.17)

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".