in a image with pixel size 3 mm, how can find the distances of all pixels from the bottom edge of image?
Show older comments
in a image with pixel size 3 mm, how can find the distances of all pixels from the bottom edge of image?
Answers (1)
Image Analyst
on 17 Apr 2015
It's simply the distance in rows times 3 mm
[rows, columns, numberOfColorChannels) = size(yourImage);
distanceInMM = 3 * (rows - thePixelsRow);
1 Comment
Image Analyst
on 19 Apr 2015
Akshit, didn't hear back from you. Did that work for you?
Categories
Find more on Image Filtering and Enhancement in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!