Record Class CardContour

java.lang.Object
java.lang.Record
dev.ioliver.dtos.CardContour

public record CardContour(org.opencv.core.Mat originalFrame, org.opencv.core.MatOfPoint contour, org.opencv.core.MatOfPoint2f contour2f, double area, double perimeter, org.opencv.core.MatOfPoint2f approx) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    CardContour(org.opencv.core.Mat originalFrame, org.opencv.core.MatOfPoint contour, org.opencv.core.MatOfPoint2f contour2f, double area, double perimeter, org.opencv.core.MatOfPoint2f approx)
    Creates an instance of a CardContour record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opencv.core.MatOfPoint2f
    Returns the value of the approx record component.
    double
    Returns the value of the area record component.
    org.opencv.core.MatOfPoint
    Returns the value of the contour record component.
    org.opencv.core.MatOfPoint2f
    Returns the value of the contour2f record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.opencv.core.Mat
    Returns the value of the originalFrame record component.
    double
    Returns the value of the perimeter record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CardContour

      public CardContour(org.opencv.core.Mat originalFrame, org.opencv.core.MatOfPoint contour, org.opencv.core.MatOfPoint2f contour2f, double area, double perimeter, org.opencv.core.MatOfPoint2f approx)
      Creates an instance of a CardContour record class.
      Parameters:
      originalFrame - the value for the originalFrame record component
      contour - the value for the contour record component
      contour2f - the value for the contour2f record component
      area - the value for the area record component
      perimeter - the value for the perimeter record component
      approx - the value for the approx record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • originalFrame

      public org.opencv.core.Mat originalFrame()
      Returns the value of the originalFrame record component.
      Returns:
      the value of the originalFrame record component
    • contour

      public org.opencv.core.MatOfPoint contour()
      Returns the value of the contour record component.
      Returns:
      the value of the contour record component
    • contour2f

      public org.opencv.core.MatOfPoint2f contour2f()
      Returns the value of the contour2f record component.
      Returns:
      the value of the contour2f record component
    • area

      public double area()
      Returns the value of the area record component.
      Returns:
      the value of the area record component
    • perimeter

      public double perimeter()
      Returns the value of the perimeter record component.
      Returns:
      the value of the perimeter record component
    • approx

      public org.opencv.core.MatOfPoint2f approx()
      Returns the value of the approx record component.
      Returns:
      the value of the approx record component