Skip to content

Commit 5efa91e

Browse files
SamCarlbergazure-pipelines
authored and
azure-pipelines
committed
Update comments
1 parent eaf2e4d commit 5efa91e

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

+5-3
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,18 @@ public List<Contour> getProcessedContours() {
8585
}
8686

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

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

0 commit comments

Comments
 (0)