How to find transition histogram for following image (B is the image histogram shown on bottom and right side of it)? I tried to plot number of black color pixels in each scan line against opposing axis but its not look like the one i needed (in python).
