How to go back to the original size of an image
2 views (last 30 days)
Show older comments
Damian Wierzbicki
on 11 Jul 2017
Commented: Damian Wierzbicki
on 12 Jul 2017
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 ) ?
0 Comments
Accepted Answer
KSSV
on 11 Jul 2017
doc imresize. You can resize your data to your desired dimensions using this.
4 Comments
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.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!