フィルターのクリア

need advice on using RESHAPE AND IMRESIZE

2 ビュー (過去 30 日間)
ajay kumar
ajay kumar 2014 年 3 月 5 日
回答済み: David Sanchez 2014 年 3 月 5 日
HI,
1* IF WE TAKE ONE IMAGE a=imread('moon.tif');
2* IMRESIZE IT AS M*N MINE WAS128*128 b=imresize(a,[128 128]);
3* PERFORM RESHAPE ON it c=reshape(b,128*128,1);
4* again perform imresize it d=imresize(c,[128 128]);
i can't get original image.........
can't we get original image if we perform resize and reshape then in inverse i.e resize.

回答 (2 件)

David Sanchez
David Sanchez 2014 年 3 月 5 日
Once you perform any modification in an image, the original data is lost. You can not go back and get the same image from the modified one, no matter which function you use. The modification has the drawback of loosing information. Always save a copy of your original image if you are gong to need it in the future.

Dishant Arora
Dishant Arora 2014 年 3 月 5 日
編集済み: Dishant Arora 2014 年 3 月 5 日
imresize uses interpolation algorithm to scale and resize, Interpolation is an estimation method. Interpolating a 128x128 grid from (128*128)x1 doesn't result in a good estimation.

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by