Plotting the pixel density of a binary image
Hello,
I am trying to find the density of pixels in a binary image and plot it. For example, if I pass through a binary image of 200x200 pixels, the plot x-axis would be the same size as the width of the image, while the y-axis would be the pixel density (#of white pixels) in that column. I am having trouble figuring out how to go about this, I have looked into calchist but it doesnt seem to be what I need.
Thank you.