in a image with pixel size 3 mm, how can find the distances of all pixels from the bottom edge of image?

1 次查看(过去 30 天)
in a image with pixel size 3 mm, how can find the distances of all pixels from the bottom edge of image?

回答(1 个)

Image Analyst
Image Analyst 2015-4-17
It's simply the distance in rows times 3 mm
[rows, columns, numberOfColorChannels) = size(yourImage);
distanceInMM = 3 * (rows - thePixelsRow);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by