Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The code section you pasted here has absolutely nothing to do with histogram computation. Nor does cvRound have anything to do with circle detection.

The code is not explained, because it is pretty self-explanatory. Maybe you should consider having a look at the OpenCV reference to find out, what cvRound actually does. Seriously... did you think the method would detect a circle within a double???

Mat histImage is just and image (as the name says), which is used to display the histogram. Have a look again at the reference (notably the Mat constructors). You should be able to find out, what hist_w and hist_h might signify.

The code section you pasted here has absolutely nothing to do with histogram computation. Nor does cvRound have anything to do with circle detection.

The code is not explained, because it is pretty self-explanatory. Maybe you should consider having a look at the OpenCV reference to find out, what cvRound actually does. Seriously... did you think the method would detect a circle within a double???

Mat histImage is just and an image (as one could suggest from the name says), variable name), which is used to display the histogram. Have a look again at the reference (notably at the Mat constructors). You should be able to find out, what hist_w and hist_h might signify.