File tree 1 file changed +5
-3
lines changed
core/src/main/java/edu/wpi/grip/core/operations/composite
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -85,16 +85,18 @@ public List<Contour> getProcessedContours() {
85
85
}
86
86
87
87
/**
88
- * Compute the bounding boxes of all contours (if they haven't already been computed). Bounding
89
- * boxes are used to compute several different properties, so it's probably not a good idea to
90
- * compute them over and over again.
88
+ * Compute the bounding boxes of all contours. Called lazily and cached by {@link #boundingBoxes}.
91
89
*/
92
90
private Rect [] computeBoundingBoxes () {
93
91
return PointerStream .ofMatVector (contours )
94
92
.map (opencv_imgproc ::boundingRect )
95
93
.toArray (Rect []::new );
96
94
}
97
95
96
+ /**
97
+ * Computes the minimum-area bounding boxes of all contours. Called lazily and cached by
98
+ * {@link #rotatedBoundingBoxes}.
99
+ */
98
100
private RotatedRect [] computeMinAreaBoundingBoxes () {
99
101
return PointerStream .ofMatVector (contours )
100
102
.map (opencv_imgproc ::minAreaRect )
You can’t perform that action at this time.
0 commit comments