public class SquareModelShapeMatrix extends AbstractFeatureDescriptor
Descriptor.SupportspcsDOES_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, startProgresspublic SquareModelShapeMatrix()
public SquareModelShapeMatrix(int matrixDimension)
public SquareModelShapeMatrix(int matrixDimension,
int backgroundColor)
public void setProperties(LibProperties properties) throws IOException
FeatureDescriptorsetProperties in interface FeatureDescriptorsetProperties in class AbstractFeatureDescriptorIOException - if something went wrongpublic int[][] getMatrix()
public void run(ij.process.ImageProcessor ip)
Descriptorpublic EnumSet<Descriptor.Supports> supports()
Descriptorsupports in interface Descriptorsupports in class AbstractFeatureDescriptorpublic String getDescription()
FeatureDescriptorFeatureDescriptor.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.