Package trclib.vision

Class TrcHomographyMapper.Rectangle

java.lang.Object
trclib.vision.TrcHomographyMapper.Rectangle
Enclosing class:
TrcHomographyMapper

public static class TrcHomographyMapper.Rectangle extends Object
This class implements a homography rectangle with the four coordinate points. The rectangle can be a real world rectangle or a vision camera's pixel rectangle.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    org.opencv.core.Point
     
    org.opencv.core.Point
     
    org.opencv.core.Point
     
    org.opencv.core.Point
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Rectangle(double topLeftX, double topLeftY, double topRightX, double topRightY, double bottomLeftX, double bottomLeftY, double bottomRightX, double bottomRightY)
    Constructor: Create an instance of the object.
    Rectangle(org.opencv.core.Point topLeft, org.opencv.core.Point topRight, org.opencv.core.Point bottomLeft, org.opencv.core.Point bottomRight)
    Constructor: Create an instance of the object.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • topLeft

      public org.opencv.core.Point topLeft
    • topRight

      public org.opencv.core.Point topRight
    • bottomLeft

      public org.opencv.core.Point bottomLeft
    • bottomRight

      public org.opencv.core.Point bottomRight
  • Constructor Details

    • Rectangle

      public Rectangle(org.opencv.core.Point topLeft, org.opencv.core.Point topRight, org.opencv.core.Point bottomLeft, org.opencv.core.Point bottomRight)
      Constructor: Create an instance of the object.
      Parameters:
      topLeft - specifies the top left point of the rectangle.
      topRight - specifies the top right point of the rectangle.
      bottomLeft - specifies the bottom left point of the rectangle.
      bottomRight - specifies the bottom right point of the rectangle.
    • Rectangle

      public Rectangle(double topLeftX, double topLeftY, double topRightX, double topRightY, double bottomLeftX, double bottomLeftY, double bottomRightX, double bottomRightY)
      Constructor: Create an instance of the object.
      Parameters:
      topLeftX - specifies the top left X of the rectangle.
      topLeftY - specifies the top left Y of the rectangle.
      topRightX - specifies the top right X of the rectangle.
      topRightY - specifies the top right Y of the rectangle.
      bottomLeftX - specifies the bottom left X of the rectangle.
      bottomLeftY - specifies the bottom left Y of the rectangle.
      bottomRightX - specifies the bottom right X of the rectangle.
      bottomRightY - specifies the bottom right Y of the rectangle.
  • Method Details