de.unihalle.informatik.MiToBo.apps.datatypes.cellImages
Class SegResult_Cytoplasm

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.apps.datatypes.cellImages.SegResult_Cytoplasm
All Implemented Interfaces:
SegResult_Interface

@ALDParametrizedClass
@ALDMetaInfo(export=ALLOWED)
public class SegResult_Cytoplasm
extends Object
implements SegResult_Interface

Cell boundary segmentation result from single-layer image.

Objects of this class subsume cell boundaries, number of cells, average size and other figures relevant for cell image analysis.

Author:
moeller

Field Summary
protected  double avgsize_cells
          Average size of cells.
protected  MTBPolygon2DSet cellContours
          Set of detected cell boundaries.
protected  int[] cellSizes
          Array indexed with snake IDs containing region sizes of snake interiors.
protected  String image_name
          Name of the analyzed image.
protected  MTBImageByte labelImage
          Label mask.
protected  int number_cells
          Count of detected cells.
protected  MTBImageRGB resultCellImg
          Input image with snake contours overlayed (optional).
protected  SegResultEnums.MeasureUnit units
          Unit in which measurements are provided.
 
Constructor Summary
SegResult_Cytoplasm(String imgName, MTBPolygon2DSet conts, MTBImageByte labels, int count, double avgsize)
          Deprecated. 
SegResult_Cytoplasm(String imgName, MTBPolygon2DSet conts, MTBImageByte labels, int count, int[] sizes, double avgsize)
          Default constructor.
 
Method Summary
 double getCellAvgSize()
          Returns average size of detected cells.
 int getCellCount()
          Returns number of detected cells.
 int[] getCellSizes()
          Returns sizes of snake interiors.
 MTBPolygon2DSet getContours()
          Returns extracted contours.
 String getImageName()
          Returns the name of the processed image.
 MTBImageByte getLabelImage()
          Returns label mask with segmentation result.
 SegResultEnums.MeasureUnit getMeasurementUnit()
          Returns the unit of measurements.
 MTBImageRGB getResultCellImg()
          Returns (optional) result image with cell contours.
 void setResultCellImg(MTBImageRGB img)
          Specify (optional) result image with cell contours.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image_name

@ALDClassParameter(label="Processed image",
                   dataIOOrder=-10)
protected String image_name
Name of the analyzed image.


cellContours

@ALDClassParameter(label="Detected contours",
                   dataIOOrder=-8)
protected MTBPolygon2DSet cellContours
Set of detected cell boundaries.


labelImage

@ALDClassParameter(label="Label segmentation mask",
                   dataIOOrder=-7)
protected MTBImageByte labelImage
Label mask.


number_cells

@ALDClassParameter(label="Cell count",
                   dataIOOrder=-9)
protected int number_cells
Count of detected cells.


cellSizes

@ALDClassParameter(label="Array of cell sizes",
                   dataIOOrder=-6)
protected int[] cellSizes
Array indexed with snake IDs containing region sizes of snake interiors.


avgsize_cells

@ALDClassParameter(label="Average cell size",
                   dataIOOrder=-5)
protected double avgsize_cells
Average size of cells.


units

@ALDClassParameter(label="Measurement unit",
                   dataIOOrder=-4)
protected SegResultEnums.MeasureUnit units
Unit in which measurements are provided.


resultCellImg

@ALDClassParameter(label="Optional result overlay")
protected MTBImageRGB resultCellImg
Input image with snake contours overlayed (optional).

Constructor Detail

SegResult_Cytoplasm

@Deprecated
public SegResult_Cytoplasm(String imgName,
                                      MTBPolygon2DSet conts,
                                      MTBImageByte labels,
                                      int count,
                                      double avgsize)
Deprecated. 

Default constructor.

Parameters:
imgName - Name of processed image.
conts - Cell boundary contours.
labels - Label image of segmentation result.
count - Number of detected cells.
avgsize - Average size of cells.

SegResult_Cytoplasm

public SegResult_Cytoplasm(String imgName,
                           MTBPolygon2DSet conts,
                           MTBImageByte labels,
                           int count,
                           int[] sizes,
                           double avgsize)
Default constructor.

Parameters:
imgName - Name of processed image.
conts - Cell boundary contours.
labels - Label image of segmentation result.
count - Number of detected cells.
sizes - Array with sizes of cell interiors.
avgsize - Average size of cells.
Method Detail

getImageName

public String getImageName()
Description copied from interface: SegResult_Interface
Returns the name of the processed image.

Specified by:
getImageName in interface SegResult_Interface

getContours

public MTBPolygon2DSet getContours()
Returns extracted contours.

Returns:
Set of contours.

getLabelImage

public MTBImageByte getLabelImage()
Returns label mask with segmentation result.

Returns:
Label mask of segmentation.

getCellCount

public int getCellCount()
Returns number of detected cells.

Returns:
Number of detected cells.

getCellSizes

public int[] getCellSizes()
Returns sizes of snake interiors.

Returns:
Array with cell sizes.

getCellAvgSize

public double getCellAvgSize()
Returns average size of detected cells.

Returns:
Average size of cells.

getMeasurementUnit

public SegResultEnums.MeasureUnit getMeasurementUnit()
Description copied from interface: SegResult_Interface
Returns the unit of measurements.

Specified by:
getMeasurementUnit in interface SegResult_Interface

setResultCellImg

public void setResultCellImg(MTBImageRGB img)
Specify (optional) result image with cell contours.

Parameters:
Color - overlay of result contours.

getResultCellImg

public MTBImageRGB getResultCellImg()
Returns (optional) result image with cell contours.

Returns:
Color overlay image of result contours.


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.