Tips/Labeling: Difference between revisions

From MiToBo
Jump to navigationJump to search
(Created page with "Contents coming soon...")
 
No edit summary
Line 1: Line 1:
Contents coming soon...
Some MiToBo operators like [[Applications/PaCeQuant|PaCeQuant]], [[Applications/ActinAnalyzer2D| ActinAnalyzer2D]] or [[Applications/CytoskeletonAnalyzer2D|CytoskeletonAnalyzer2D]] analyze individual cells in microscope images.<br> Thus, they require information about the cell regions and cell boundaries, respectively, of individual cells.<br> PaCeQuant includes algorithms for automatic cell segmentation, and operators like the CellBoundaryExtractor2D might be used for extracting cell boundaries.<br> However, if automatic segmentation does not work properly and manual post-processing is not an option, cell segmentation can also be performed completely manually.
 
On this page you will find information about manually post-processing segmentation results as well as suggestions how to best perform manual segmentation.
 
== Formats of cell contour data in MiToBo ==
 
Most operators in MiToBo accept cell contour information in one of the following formats:
 
* label image: an image where the background is black and each cell (or more general: foreground object) is marked with a unique gray value
* ImageJ ROIs: contour/region data in ImageJ ROI format
 
Note that some operators also accept binary masks. Refer to the documentation of the specific operator for details.
 
== Manual labeling in ImageJ/Fiji ==
 
To manually label the cells in an image in ImageJ/Fiji you can proceed as follows:
 
Use the freehand tool to surround a cell in the image. <br>
When done, press "t" to add the contour to the ROI manager.<br>
Repeat the same for all other cells in the image.
 
If ImageJ ROIs are sufficient for your task, simply save the set of contours to file by selecting from the ROI manager
 
  "More >>" -> "Save..."
 
and save the ROIs to a file of your choice.
 
For generating a label image, first set the ImageJ foreground color to black via
 
Edit -> Options -> Color...
 
Then select the complete image via
 
Edit -> Selection -> Select All
 
Afterwards select
 
Edit -> Fill
 
This will fill your complete image in black.
 
Now change the foreground color to white and select a cell region from
the ROI manager. Its contour is shown in the image. Right-click inside
the contour and select "Fill". This will make the cell region white.
 
Proceed with all cell regions from the ROI manager that way.
 
You should now have a black-white mask image for your cell image.
 
To transform this mask into a label image navigate in ImageJ/Fiji to
 
Plugins -> MiToBo -> MiToBo Runner
 
Then select from the tree of available operators
 
de - unihalle - informatik - MiToBo - segmentation - regions - labeling
 
the operator
 
LabelComponentsSequential
 
by double-click. This will bring-up a window where you can select your
binary mask image as input image. Then press the "Run" button. <br>
The result will be a label image which you can save to disk, e.g., in TIF format.

Revision as of 08:51, 25 July 2018

Some MiToBo operators like PaCeQuant, ActinAnalyzer2D or CytoskeletonAnalyzer2D analyze individual cells in microscope images.
Thus, they require information about the cell regions and cell boundaries, respectively, of individual cells.
PaCeQuant includes algorithms for automatic cell segmentation, and operators like the CellBoundaryExtractor2D might be used for extracting cell boundaries.
However, if automatic segmentation does not work properly and manual post-processing is not an option, cell segmentation can also be performed completely manually.

On this page you will find information about manually post-processing segmentation results as well as suggestions how to best perform manual segmentation.

Formats of cell contour data in MiToBo

Most operators in MiToBo accept cell contour information in one of the following formats:

  • label image: an image where the background is black and each cell (or more general: foreground object) is marked with a unique gray value
  • ImageJ ROIs: contour/region data in ImageJ ROI format

Note that some operators also accept binary masks. Refer to the documentation of the specific operator for details.

Manual labeling in ImageJ/Fiji

To manually label the cells in an image in ImageJ/Fiji you can proceed as follows:

Use the freehand tool to surround a cell in the image.
When done, press "t" to add the contour to the ROI manager.
Repeat the same for all other cells in the image.

If ImageJ ROIs are sufficient for your task, simply save the set of contours to file by selecting from the ROI manager

 "More >>" -> "Save..."

and save the ROIs to a file of your choice.

For generating a label image, first set the ImageJ foreground color to black via

Edit -> Options -> Color...

Then select the complete image via

Edit -> Selection -> Select All

Afterwards select

Edit -> Fill

This will fill your complete image in black.

Now change the foreground color to white and select a cell region from the ROI manager. Its contour is shown in the image. Right-click inside the contour and select "Fill". This will make the cell region white.

Proceed with all cell regions from the ROI manager that way.

You should now have a black-white mask image for your cell image.

To transform this mask into a label image navigate in ImageJ/Fiji to

Plugins -> MiToBo -> MiToBo Runner

Then select from the tree of available operators

de - unihalle - informatik - MiToBo - segmentation - regions - labeling

the operator

LabelComponentsSequential

by double-click. This will bring-up a window where you can select your binary mask image as input image. Then press the "Run" button.
The result will be a label image which you can save to disk, e.g., in TIF format.