double_stl_vector printing

In the blob detection library from OpenCV, the different parameters of the blobs like area, perimeter etc. are saved as double_stl_vector data type.

In order to print them it, the specifier character is %g. The blob id must be used with the blob parameter variable.

Example:

printf(ā€œ%gā€,blobarea[blobIndex]);

Leave a Reply

Your email address will not be published.

ALL COMMENTS ARE MODERATED. PLEASE LEAVE YOUR COMMENT AND THE ADMINISTRATOR WILL REVIEW IT BEFORE POSTING. THANK YOU. You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>