Class ContourHeader

java.lang.Object
net.algart.contours.ContourHeader

public final class ContourHeader extends Object
  • Field Details

    • RESERVED

      public static final int RESERVED
      If (x & 0xFF000000) == RESERVED, it means that it is a special element, not a point.
      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

      public ContourHeader setObjectLabel(int objectLabel)
    • getFrameIdOrNull

      public Integer getFrameIdOrNull()
    • hasFrameId

      public boolean hasFrameId()
    • getFrameId

      public int getFrameId()
    • setFrameId

      public ContourHeader setFrameId(int frameId)
    • removeFrameId

      public ContourHeader removeFrameId()
    • isInternalContour

      public boolean isInternalContour()
    • setInternalContour

      public ContourHeader setInternalContour(boolean internalContour)
    • 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 from Contours, 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

      public IRectangularArea containingRectangle()
    • removeContainingRectangle

      public void removeContainingRectangle()
    • clear

      public ContourHeader clear()
    • clearContourTouchingMatrixBoundary

      public ContourHeader clearContourTouchingMatrixBoundary()
    • toString

      public String toString()
      Overrides:
      toString in class Object