want to plot histogram in OpenCV C++. The task is that x-axis should be angle and y-axis should be magnitude of histogram. I calculate magnitude and angle by using Sobel operator. Now how can I plot histogram by using magnitude and angle? The Image of histogram is attach I want like this result?
Thanks in advance. The simple code of problem isC:\fakepath\hist11.JPG