Class ContoursReport
- java.lang.Object
-
- edu.wpi.grip.core.operations.composite.ContoursReport
-
- All Implemented Interfaces:
Publishable
public final class ContoursReport extends java.lang.Object implements Publishable
The output ofFindContoursOperation
. This stores a list of contours (which is basically a list of points) in OpenCV objects, as well as the width and height of the image that the contours are from, to give context to the points.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContoursReport.Contour
-
Constructor Summary
Constructors Constructor Description ContoursReport()
Construct an empty report.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getArea()
double[]
getCenterX()
double[]
getCenterY()
int
getCols()
org.bytedeco.javacpp.opencv_core.MatVector
getContours()
double[]
getHeights()
java.util.List<ContoursReport.Contour>
getProcessedContours()
int
getRows()
double[]
getSolidity()
double[]
getWidth()
-
-
-
Constructor Detail
-
ContoursReport
public ContoursReport()
Construct an empty report. This is used as a default value forSocket
s containing ContoursReports.
-
-
Method Detail
-
getRows
public int getRows()
-
getCols
public int getCols()
-
getContours
public org.bytedeco.javacpp.opencv_core.MatVector getContours()
-
getProcessedContours
public java.util.List<ContoursReport.Contour> getProcessedContours()
- Returns:
- All of the contours held within this report.
-
getArea
public double[] getArea()
-
getCenterX
public double[] getCenterX()
-
getCenterY
public double[] getCenterY()
-
getWidth
public double[] getWidth()
-
getHeights
public double[] getHeights()
-
getSolidity
public double[] getSolidity()
-
-