Plot Plot histogram of Sobel operator magnitude and angle in OpenCV c++?
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 is
please add the code you have, so far.