private class XylemGrower.GrowingRegion2D extends Object
Modifier and Type | Field and Description |
---|---|
private int |
BACKGROUND_PIXEL |
private MTBRegion2D |
growingRegion |
private MTBImageByte |
grownRegionImage |
private double |
hueMeanDegree |
private double |
localXThresh |
private XylemGrower.Neighbourhood |
neighbourhood |
private int |
numOfDefinedHuePixel |
private int |
numOfDefinedSaturationPixel |
private int |
numOfXPixel |
private int |
regionID |
private double |
satMean |
private double |
satSum |
private Point2D.Double |
sumOfHueCartesian |
private Queue<Point2D.Double> |
toInspectL |
private MTBTopologicalNumber2D |
topoNumber2D |
private double |
xMean |
private double |
xMeanSum |
Modifier | Constructor and Description |
---|---|
private |
GrowingRegion2D(MTBRegion2D initialRegion,
MTBImageByte grownRegionImage,
XylemGrower.Neighbourhood nb,
int uniqueID) |
Modifier and Type | Method and Description |
---|---|
private void |
checkNeighbor(List<Point2D.Double> pointsAddedL,
int xNeighbor,
int yNeighbor)
Test if the given neighbor is to be added to the region.
|
private MTBRegion2D |
growRegion()
Grow the region.
|
private void |
recalcHueMean(double newHueValue)
Recalculate the mean including incrementing the number
of pixels with define hue value, i.e. the number of pixels contributing
to the hue sum.
|
private void |
recalcSatMean(double newSaturationValue)
Recalculate the saturation of the region including incrementing the number
of pixels with define saturation value, i.e. the number of pixels contributing
to the saturation sum.
|
private void |
recalcXMean(double newXValue)
Recalculate the X(Intensity / Brightness / Value )-value of the
region.
|
private void |
setup()
Initialize the class for the region
|
private List<Point2D.Double> |
visitNeighboursOf(Point2D.Double pixelToVisit)
Inspect the eight/four neighbours of the pixel with the given
coordinate.
|
private final int BACKGROUND_PIXEL
private final MTBRegion2D growingRegion
private MTBImageByte grownRegionImage
private final XylemGrower.Neighbourhood neighbourhood
private final int regionID
private double hueMeanDegree
private Point2D.Double sumOfHueCartesian
private double satSum
private double satMean
private double xMean
private double xMeanSum
private double localXThresh
private int numOfDefinedHuePixel
private int numOfDefinedSaturationPixel
private int numOfXPixel
private final Queue<Point2D.Double> toInspectL
private final MTBTopologicalNumber2D topoNumber2D
private GrowingRegion2D(MTBRegion2D initialRegion, MTBImageByte grownRegionImage, XylemGrower.Neighbourhood nb, int uniqueID)
private MTBRegion2D growRegion() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
MTBRegion2D
after the growing is finished, i.e.
there are no more pixel left in the list of unvisited pixels.de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
visitNeighboursOf(java.awt.geom.Point2D.Double)
private void recalcHueMean(double newHueValue)
newHueValue
- The new hue-value.private void recalcSatMean(double newSaturationValue)
newSaturationValue
- private void recalcXMean(double newXValue)
numOfXPixel
is already incrementednewXValue
- private void setup()
private List<Point2D.Double> visitNeighboursOf(Point2D.Double pixelToVisit)
pixelToVisit
- The Point2D.Double
-coordinate of the
pixel to visit.private void checkNeighbor(List<Point2D.Double> pointsAddedL, int xNeighbor, int yNeighbor)
pointsAddedL
which may me modified as a side effect.pointsAddedL
- xNeighbor
- yNeighbor
- Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.