Skip to content

Commit 51cff0a

Browse files
Merge pull request #437 from lleoliang/docs/apriltag-detector-detect
docs: improve apriltag_detector_detect comment
2 parents 3057666 + dacee72 commit 51cff0a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

apriltag.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,17 @@ void apriltag_detector_clear_families(apriltag_detector_t *td);
255255
// apriltag_family_t used to initialize it.)
256256
void apriltag_detector_destroy(apriltag_detector_t *td);
257257

258-
// Detect tags from an image and return an array of
259-
// apriltag_detection_t*. You can use apriltag_detections_destroy to
260-
// free the array and the detections it contains, or call
261-
// _detection_destroy and zarray_destroy yourself.
258+
// Detect tags in a grayscale 8-bit image.
259+
//
260+
// Parameters:
261+
// td - A configured detector
262+
// im_orig - A grayscale 8-bit image to search.
263+
//
264+
// Returns a zarray_t* containing apriltag_detection_t* pointers, one per
265+
// detected tag. The array may be empty but is never NULL. The caller is
266+
// responsible for freeing the result: use apriltag_detections_destroy() to
267+
// free both the array and all detections, or call apriltag_detection_destroy()
268+
// on each element then zarray_destroy() separately.
262269
zarray_t *apriltag_detector_detect(apriltag_detector_t *td, image_u8_t *im_orig);
263270

264271
// Call this method on each of the tags returned by apriltag_detector_detect

0 commit comments

Comments
 (0)