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()
Gets the unique name of the
IOperator by returning the
"GlobalName" element from the resources[][] of the
associated IOperatorDescriptor. |
OperatorType |
getType()
Gets the type of the operator listed in an enumeration.
|
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)
This method contains the entire logic (algorithm) of the operator.
|
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, setParentTaskprivate boolean[][][] regionArray
private WritableRaster wr
private int range
private double minGrayValue
private double maxGrayValue
private double typeGrayMax
public IResult run(IWorkPackage wp)
IOperatorIOperator does not declare any class members, since the execution
of this code must be thread-safe.run in interface IOperatorrun in class AbstractOperatorwp - the parameters and sourcesIResult containing all processed datapublic String getName()
IOperatorIOperator by returning the
"GlobalName" element from the resources[][] of the
associated IOperatorDescriptor.getName in interface IOperatorgetName in class AbstractOperatorpublic OperatorType getType()
IOperatorgetType in interface IOperatorgetType in class AbstractOperatorOperatorTypeprivate 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–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.