I have a code as follow: which is converted into binary image.
image= [pos1];BW = im2bw(pos1,map,0.4);imshow(pos1(:,:)),figure, imshow(BW)image= [pos2];BW = im2bw(pos2,map,0.4);imshow(pos2(:,:)),figure, imshow(BW)
which will return following images
with these images, I want to find the lowest point (as circled with red) and print the location information into one matrix. (only need y axis value) = Height from the bottom of the image. (the first white pixel)
for instance if in lowest point pixel in image1 located at 123,342, and for image 2 located at 134,423
then I want to have matrix that has values of 343, and 423.
I was doing this manually for 10 images. and I gave up as there are 100s of them…
It would be really appreciate if you can help me with this.
Best Answer