What does this line do in plotting?
line(histImage, Point(bin_w(i - 1), hist_h - cvRound(hist.at<float>(i - 1))), Point(bin_w(i), hist_h - cvRound(hist.at<float>(i))), Scalar(255, 255, 255), 2, 8, 0);
line(histImage, Point(bin_w(i - 1), hist_h - cvRound(hist.at<float>(i - 1))), Point(bin_w(i), hist_h - cvRound(hist.at<float>(i))), Scalar(255, 255, 255), 2, 8, 0);
please take another look at the tutorial
it is just a visualization of the histogram values, drawing a line from each point to the next.
since y points down in opencv, the y values are inverted inverted (subtracted from the upper border)
Asked: 2018-07-09 02:28:24 -0600
Seen: 131 times
Last updated: Jul 09 '18
python opencv compare histograms
calcHist with GpuMat submatrix
Percentage of color in a frame of video
How to create a histogram from a table of values?
Best Histogram Comparison Method
How to get histogram of a rectangular area (ROI) of an image?
Calculate histogram along line
it obviously draws a line. so what is your question, again ?
What are the parameters for x and y axis in this line?
please do not post duplicate questions.