How can I find old point in old image before resampling?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello I have an image and I did resampling on it
( NI = imresample([0.5,0.5],I,[1,1],'linear');)
can I find old pixel in first image from resampled image? in fact I want to know what was the pixel NI(1,1) in image I?
0 件のコメント
回答 (1 件)
Image Analyst
2013 年 11 月 25 日
imresample is not in base MATLAB or the Image Processing Toolbox. It's a pretty good bet though that the (1,1) pixel has the same value in both images. Of course it is trivial to check that:
difference = abs(double(oldImage(1,1)) - double(newImage(1,1)))
It probably doesn't move.
4 件のコメント
Image Analyst
2013 年 11 月 26 日
編集済み: Image Analyst
2013 年 11 月 26 日
Maybe you should use imresize() instead. Would that do what you need to do, or is there something special about imresample? Not from what I can see. It appears to be only for those unfortunate souls who do now have the Image Processing Toolbox.
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!