How to convert the pixel indices in a image to pixel indices in a resized image? Or inverse.

1 view (last 30 days)
Hi,
How to convert the pixel indices in a image to pixel indices in a resized image? Or inverse. Because I have try with like divide by 2 or multiply by 2, but it seems like not work.
Thank you.
Best, Yumin

Accepted Answer

Guillaume
Guillaume on 6 Dec 2017
indices are just indices, they just indicate the location of an element in a matrix regardless of the type of that element. Single, double, integer, it does not matter.
It is puzzling that you're asking that question so perhaps you mean something else by pixel indices.

More Answers (0)

Categories

Find more on Convert Image Type 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!