How to go back to the original size of an image

2 views (last 30 days)
Hi guys. Assume that I have a matrix of 2n x 2m size that represents my image ( entries are intensities of each pixel ). or series of matrices ( images ). Then I used the software to get the displacement field for that matrix in comparison with some reference image ( of the same size ), but matrix ( image ) that represents the displacement is of size n x m. The issue is how can I now match all the displacement values to the points in my original matrix ( image ) ?

Accepted Answer

KSSV
KSSV on 11 Jul 2017
doc imresize. You can resize your data to your desired dimensions using this.
  4 Comments
Image Analyst
Image Analyst on 11 Jul 2017
No, it doesn't necessarily. An image is a 2-D array of numbers that can represent anything you want it to. It can be intensities, like an optical image, it can be densities, like an x-ray or CT image, it can be relaxation times, like an MRI image, it can be heights or distances like a profilometer image, it can be type of object, like a classified/labeled image, or whatever. For your case it's displacements, and that is fine. That's a perfectly acceptable image and imresize() will work fine with it and produce correct results.
Damian Wierzbicki
Damian Wierzbicki on 12 Jul 2017
Ok, that makes sense. Thank you for clarifying that for me Image Analyst, I appreciate it.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!