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