public class PixelsFeature extends ConnectedComponent implements ComponentFeature
ConnectedComponent.ConnectMode
Constructor and Description |
---|
PixelsFeature() |
Modifier and Type | Method and Description |
---|---|
void |
addSample(IntValuePixel p)
Add a pixel to this feature
|
PixelsFeature |
clone()
Performs a deep copy on the connected component; that is, all pixels are
also cloned.
|
void |
merge(ComponentFeature f)
Merge another feature with this one
|
asciiHeader, binaryHeader, calculateAreaRatio, calculateAreaRatio, calculateBoundaryDistanceFromCentre, calculateConvexHull_AndrewsMontone, calculateConvexHull_Melkman, calculateConvexHull, calculateOrientatedBoundingBox, calculateOrientatedBoundingBoxAspectRatio, calculatePercentageConvexHullFit, code4, code8, estimateNumberOfVertices, floodFill, freemanChainCode, getInnerBoundary, getOuterBoundary, isLeft, nextEdgePixelACW4, nextEdgePixelACW4, nextEdgePixelACW8, process, process, processInplace, toPolygon
addPixel, addPixel, bottomRightMostPixel, calculateArea, calculateAverageHeightWidth, calculateAverageHeightWidth, calculateBinaryMask, calculateCentroid, calculateCentroidPixel, calculateDirection, calculateMoment, calculateMoment, calculateMomentNormalised, calculateRegularBoundingBox, calculateRegularBoundingBoxAspectRatio, crop, extractPixels1d, extractPixels1d, extractPixels2d, find, find, fromShape, getPixels, iterator, merge, normMatrix, readASCII, readBinary, reposition, toFImage, toFImage, topLeftMostPixel, toString, toStringImage, transform, translate, writeASCII, writeBinary
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public PixelsFeature()
public void merge(ComponentFeature f)
ComponentFeature
merge
in interface ComponentFeature
f
- the feature to mergepublic void addSample(IntValuePixel p)
ComponentFeature
addSample
in interface ComponentFeature
p
- the pixel to addpublic PixelsFeature clone()
ConnectedComponent
clone
in interface ComponentFeature
clone
in class ConnectedComponent