How to rescale the image?

1 回表示 (過去 30 日間)
Chathu
Chathu 2015 年 3 月 9 日
コメント済み: Chathu 2015 年 3 月 10 日
I have set of true color images(about 700 images) and the image size: 1482 rows and 1506 columns. What i would like to do :
1) Rescale those images (currently i have pixel values but i need to get them either in cm/mm)
2) Find the minimum size for all the images and rescale all the images to that size. How to get along with this? Any suggestions?
Thanks in advance.
  2 件のコメント
jose soares
jose soares 2015 年 3 月 9 日
help "whos" - size bites help "imresize" - resize a image help "sizes" - dimension of a matriz
God work!
Chathu
Chathu 2015 年 3 月 10 日
編集済み: Chathu 2015 年 3 月 10 日
Well i think i have missed out some part in my question- really sorry about that.
imresize doesn't help much(atleast in the beginning) of this task. Reason is that i have an image and that image has a physical ruler placed on it. So what i want here is to find the x axis and y axis distance. Again, i want the distance in cm/mm not in pixel. Since there are lot of images i would like to run it for the whole batch and scale down all the images to the minimum x and y values. Any link/website that i can refer to?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2015 年 3 月 10 日
See my attached spatial calibration demo. Once you know the size or location that you want to extract from the image, you can call imresize() and imcrop() to do that.
  1 件のコメント
Chathu
Chathu 2015 年 3 月 10 日
Image Analyst- thank you so much for your response. Moreover,your spatial calibration demo is just perfect. Thanks a million !!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by