Show the 'mareHistogram' function.
Input is Mat. The property is CV_8U and binary image.
Output is also Mat. The output Mat is image of histogram.
If you want to get histogram value array, you should get mhist Mat instead of histo in the function.
Thank you.
histogram, countNonZero, vertical, horizontal
So much THanks :) if i want to count black pixel, then what should i change ??
ReplyDeleteYou can use bitwise_not() function so that inverse the black and white pixel,i think so
DeleteThese are horizontal and vertical projection histograms right ??
ReplyDelete