Package net.algart.contours
Class ContourHeader
java.lang.Object
net.algart.contours.ContourHeader
-
Field Summary
-
Constructor Summary
ConstructorDescriptionContourHeader
(int objectLabel) ContourHeader
(int objectLabel, boolean internalContour) ContourHeader
(int objectLabel, boolean internalContour, int frameId) -
Method Summary
Modifier and TypeMethodDescriptionclear()
int
int
boolean
Returns true if the header contains information about the rectangle, containing the contour.boolean
boolean
boolean
boolean
boolean
boolean
int
maxX()
int
maxY()
int
minX()
int
minY()
void
setContourTouchingMaxXMatrixBoundary
(boolean contourTouchingMaxXMatrixBoundary) setContourTouchingMaxYMatrixBoundary
(boolean contourTouchingMaxYMatrixBoundary) setContourTouchingMinXMatrixBoundary
(boolean contourTouchingMinXMatrixBoundary) setContourTouchingMinYMatrixBoundary
(boolean contourTouchingMinYMatrixBoundary) setFrameId
(int frameId) setInternalContour
(boolean internalContour) setObjectLabel
(int objectLabel) toString()
-
Field Details
-
RESERVED
public static final int RESERVEDIf(x & 0xFF000000) ==
, it means that it is a special element, not a point.RESERVED
- See Also:
-
-
Constructor Details
-
ContourHeader
public ContourHeader() -
ContourHeader
public ContourHeader(int objectLabel) -
ContourHeader
public ContourHeader(int objectLabel, boolean internalContour) -
ContourHeader
public ContourHeader(int objectLabel, boolean internalContour, int frameId)
-
-
Method Details
-
getObjectLabel
public int getObjectLabel() -
setObjectLabel
-
getFrameIdOrNull
-
hasFrameId
public boolean hasFrameId() -
getFrameId
public int getFrameId() -
setFrameId
-
removeFrameId
-
isInternalContour
public boolean isInternalContour() -
setInternalContour
-
isContourTouchingMinXMatrixBoundary
public boolean isContourTouchingMinXMatrixBoundary() -
setContourTouchingMinXMatrixBoundary
public ContourHeader setContourTouchingMinXMatrixBoundary(boolean contourTouchingMinXMatrixBoundary) -
isContourTouchingMaxXMatrixBoundary
public boolean isContourTouchingMaxXMatrixBoundary() -
setContourTouchingMaxXMatrixBoundary
public ContourHeader setContourTouchingMaxXMatrixBoundary(boolean contourTouchingMaxXMatrixBoundary) -
isContourTouchingMinYMatrixBoundary
public boolean isContourTouchingMinYMatrixBoundary() -
setContourTouchingMinYMatrixBoundary
public ContourHeader setContourTouchingMinYMatrixBoundary(boolean contourTouchingMinYMatrixBoundary) -
isContourTouchingMaxYMatrixBoundary
public boolean isContourTouchingMaxYMatrixBoundary() -
setContourTouchingMaxYMatrixBoundary
public ContourHeader setContourTouchingMaxYMatrixBoundary(boolean contourTouchingMaxYMatrixBoundary) -
hasContainingRectangle
public boolean hasContainingRectangle()Returns true if the header contains information about the rectangle, containing the contour. Note that headers, read fromContours
, always contains this information, but headers, created via constructors, never contain it.- Returns:
- whether the header has containing rectangle.
-
minX
public int minX() -
maxX
public int maxX() -
minY
public int minY() -
maxY
public int maxY() -
containingRectangle
-
removeContainingRectangle
public void removeContainingRectangle() -
clear
-
clearContourTouchingMatrixBoundary
-
toString
-