From d870e8b9a0b1670d02306b20339b66a22cb6c2a0 Mon Sep 17 00:00:00 2001 From: Sam Carlberg Date: Wed, 23 Jan 2019 16:53:48 -0500 Subject: [PATCH] Update comments --- .../grip/core/operations/composite/ContoursReport.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/edu/wpi/grip/core/operations/composite/ContoursReport.java b/core/src/main/java/edu/wpi/grip/core/operations/composite/ContoursReport.java index 4a51faa819..d2764a777e 100644 --- a/core/src/main/java/edu/wpi/grip/core/operations/composite/ContoursReport.java +++ b/core/src/main/java/edu/wpi/grip/core/operations/composite/ContoursReport.java @@ -83,9 +83,7 @@ public List getProcessedContours() { } /** - * Compute the bounding boxes of all contours (if they haven't already been computed). Bounding - * boxes are used to compute several different properties, so it's probably not a good idea to - * compute them over and over again. + * Compute the bounding boxes of all contours. Called lazily and cached by {@link #boundingBoxes}. */ private Rect[] computeBoundingBoxes() { return PointerStream.ofMatVector(contours) @@ -93,6 +91,10 @@ private Rect[] computeBoundingBoxes() { .toArray(Rect[]::new); } + /** + * Computes the minimum-area bounding boxes of all contours. Called lazily and cached by + * {@link #rotatedBoundingBoxes}. + */ private RotatedRect[] computeMinAreaBoundingBoxes() { return PointerStream.ofMatVector(contours) .map(opencv_imgproc::minAreaRect)