Skip to content

Commit d870e8b

Browse files
committed
Update comments
1 parent 8d9dc08 commit d870e8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/src/main/java/edu/wpi/grip/core/operations/composite/ContoursReport.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,18 @@ public List<Contour> getProcessedContours() {
8383
}
8484

8585
/**
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}.
8987
*/
9088
private Rect[] computeBoundingBoxes() {
9189
return PointerStream.ofMatVector(contours)
9290
.map(opencv_imgproc::boundingRect)
9391
.toArray(Rect[]::new);
9492
}
9593

94+
/**
95+
* Computes the minimum-area bounding boxes of all contours. Called lazily and cached by
96+
* {@link #rotatedBoundingBoxes}.
97+
*/
9698
private RotatedRect[] computeMinAreaBoundingBoxes() {
9799
return PointerStream.ofMatVector(contours)
98100
.map(opencv_imgproc::minAreaRect)

0 commit comments

Comments
 (0)