How to go back to the original size of an image
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
KSSV
2017 年 7 月 11 日
doc imresize. You can resize your data to your desired dimensions using this.
4 件のコメント
Image Analyst
2017 年 7 月 11 日
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!