Class RectsReport
- java.lang.Object
-
- edu.wpi.grip.core.operations.composite.RectsReport
-
- All Implemented Interfaces:
Publishable
public class RectsReport extends java.lang.Object implements Publishable
Contains the results of a rectangle detection operation.
-
-
Field Summary
Fields Modifier and Type Field Description static RectsReport
NIL
-
Constructor Summary
Constructors Constructor Description RectsReport(MatWrapper image, java.util.List<org.bytedeco.javacpp.opencv_core.Rect> rectangles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatWrapper
getImage()
Gets the image the rectangles are for.java.util.List<org.bytedeco.javacpp.opencv_core.Rect>
getRectangles()
Gets the rectangles in this report.double[]
height()
An array of the heights of every rectangle.double[]
topLeftX()
An array of the coordinates of the X-values of the top-left corner of every rectangle.double[]
topLeftY()
An array of the coordinates of the Y-values of the top-left corner of every rectangle.double[]
width()
An array of the widths of every rectangle.
-
-
-
Field Detail
-
NIL
public static final RectsReport NIL
-
-
Constructor Detail
-
RectsReport
public RectsReport(MatWrapper image, java.util.List<org.bytedeco.javacpp.opencv_core.Rect> rectangles)
-
-
Method Detail
-
getImage
public MatWrapper getImage()
Gets the image the rectangles are for.
-
getRectangles
public java.util.List<org.bytedeco.javacpp.opencv_core.Rect> getRectangles()
Gets the rectangles in this report.
-
topLeftX
public double[] topLeftX()
An array of the coordinates of the X-values of the top-left corner of every rectangle.
-
topLeftY
public double[] topLeftY()
An array of the coordinates of the Y-values of the top-left corner of every rectangle.
-
width
public double[] width()
An array of the widths of every rectangle.
-
height
public double[] height()
An array of the heights of every rectangle.
-
-