public class SquareModelShapeMatrix extends AbstractFeatureDescriptor
Descriptor.Supports
pcs
DOES_ALL
Constructor and Description |
---|
SquareModelShapeMatrix()
Initializes the SquareModelShapeMatrix with default background color (0/black) and a default matrix size.
|
SquareModelShapeMatrix(int matrixDimension) |
SquareModelShapeMatrix(int matrixDimension,
int backgroundColor) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a short plain Text description about the Descriptor and the
semantics of the double array obtained from
FeatureDescriptor.getFeatures() . |
int[][] |
getMatrix() |
void |
run(ij.process.ImageProcessor ip)
Start processing of this algorithm on the given image processor.
|
void |
setBackgroundColor(int backgroundColor) |
void |
setMatrixDimension(int matrixDimension) |
void |
setProperties(LibProperties properties)
Injects the properties class that can be used to retrieve several
properties.
|
EnumSet<Descriptor.Supports> |
supports()
Determine the capabilities of this algorithm.
|
addData, addData, addData, addPropertyChangeListener, endProgress, firePropertyChange, getFeatures, getMask, inMask, setMask, startProgress
public SquareModelShapeMatrix()
public SquareModelShapeMatrix(int matrixDimension)
public SquareModelShapeMatrix(int matrixDimension, int backgroundColor)
public void setProperties(LibProperties properties) throws IOException
FeatureDescriptor
setProperties
in interface FeatureDescriptor
setProperties
in class AbstractFeatureDescriptor
IOException
- if something went wrongpublic int[][] getMatrix()
public void run(ij.process.ImageProcessor ip)
Descriptor
public EnumSet<Descriptor.Supports> supports()
Descriptor
supports
in interface Descriptor
supports
in class AbstractFeatureDescriptor
public String getDescription()
FeatureDescriptor
FeatureDescriptor.getFeatures()
.
May return null if no description is implemented - even though this
should be avoided by any means.public void setBackgroundColor(int backgroundColor)
public void setMatrixDimension(int matrixDimension)
Copyright © 2013. All Rights Reserved.