Ask Your Question
0

What does this line do in plotting?

asked 2018-07-09 02:28:24 -0600

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);

edit retag flag offensive close merge delete

Comments

it obviously draws a line. so what is your question, again ?

berak gravatar imageberak ( 2018-07-09 02:39:43 -0600 )edit

What are the parameters for x and y axis in this line?

SRIVIDYA gravatar imageSRIVIDYA ( 2018-07-09 02:42:47 -0600 )edit

please do not post duplicate questions.

berak gravatar imageberak ( 2018-07-09 03:07:39 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-09 04:22:03 -0600

berak gravatar image

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)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-07-09 02:28:24 -0600

Seen: 117 times

Last updated: Jul 09 '18