I have a binary image
what I want to do is
1. Calculate the sum of black pixels along each and every individual row
2. Then compare the individual sums to get the largest value(which would be my answer).
or in other words
Determine the largest length along the width of the part.
I have another question
>>>>I want to count the number of black pixels in each individual row and then compare that result to get 'which row has highest number of black pixels'.