public class IqmOpRegGrow extends AbstractOperator
Modifier and Type | Field and Description |
---|---|
private double |
maxGrayValue |
private double |
minGrayValue |
private Stack<Point> |
pointStack |
private int |
range |
private boolean[][][] |
regionArray |
private double |
typeGrayMax |
private WritableRaster |
wr |
isCancelable, name, parentTask, pcs, type
Constructor and Description |
---|
IqmOpRegGrow() |
Modifier and Type | Method and Description |
---|---|
private void |
calcRegGrow(Point seedPoint,
int seedcount)
Calculates the RegGrow-Algorithm for one seedPoint
|
private void |
checkPoint(Point p,
int seedcount)
Checks whether the point should be pushed on the stack or not
|
String |
getName() |
OperatorType |
getType() |
private boolean |
isInRange(double greyValue)
Checks if the grey value is bigger than min grey value and smaller than
max grey value
|
private boolean |
isPointWithinBounds(Point p)
Check if the point is within bounds or not
|
private void |
markRegions(int seedcount)
Set all pixel black which are not part of any region
|
IResult |
run(IWorkPackage wp) |
private void |
setPixelTrue(Point p,
int seedcount)
Set the corresponding point in the controllArray to 1
|
addProgressListener, fireProgressChanged, getParentTask, getPcs, getProgressListeners, initializeOperator, isCancelable, isCancelled, setCancelable, setParentTask
private boolean[][][] regionArray
private WritableRaster wr
private int range
private double minGrayValue
private double maxGrayValue
private double typeGrayMax
public IResult run(IWorkPackage wp)
run
in interface IOperator
run
in class AbstractOperator
public String getName()
getName
in interface IOperator
getName
in class AbstractOperator
public OperatorType getType()
getType
in interface IOperator
getType
in class AbstractOperator
private void calcRegGrow(Point seedPoint, int seedcount)
seedPoint
- private void checkPoint(Point p, int seedcount)
p
- private void setPixelTrue(Point p, int seedcount)
p
- private boolean isInRange(double greyValue)
greyValue
- private boolean isPointWithinBounds(Point p)
p
- private void markRegions(int seedcount)
Copyright © 2009–2016 Helmut Ahammer, Philipp Kainz. All rights reserved.