Crop or resize image
古いコメントを表示
Hi,
This is nick.I want to select a pixels of different sizes from a figure which is obtained from the matlab.Let me know how to select it by a example.
Thank you
5 件のコメント
Jan
2011 年 11 月 23 日
Please select a meaningful title for the question - *all* questions in this forum concern Matlab.
Then define the inputs exactly - what kind of figures are you talking of? Could you show us an example?
Which tool do you want to use and what the wnated outputs?
Nick ALan
2011 年 11 月 23 日
Walter Roberson
2011 年 11 月 23 日
You need to divide the image in to blocks that size? If so, blockproc or blkproc or mat2cell.
You need to resize the image to 100 x 100 ? If so, imresize()
Nick ALan
2011 年 11 月 24 日
Walter Roberson
2011 年 11 月 24 日
You have not clearly indicated what it is that you want to do, so I cannot provide sample code.
採用された回答
その他の回答 (1 件)
Image Analyst
2011 年 11 月 24 日
1 投票
Nick: All pixels are the same size. Why don't you post an image at your favorite file hosting web site (one where I don't have to do a ton of clicks to see your image - try tinypic.com)? Then tell us what you need to measure in that image. In the meantime, see my BlobsDemo for a tutorial on measuring objects in an image http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
3 件のコメント
Nick ALan
2011 年 11 月 24 日
Walter Roberson
2011 年 11 月 24 日
imcrop()
rbbox()
ginput()
Image Analyst
2011 年 11 月 24 日
See my code in another Answer.
カテゴリ
ヘルプ センター および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!