How can I find old point in old image before resampling?

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?

Risposte (1)

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 Commenti

Hello Image Analyst
Thanks for your answer. But pixel(1,1) hasn't the same value in both images. I want to know the pixel (1,1) in new image was which ones in old image. for example pixlel(1,1) in new image is pixel(1,2),pixel(1,3) and pixel(1,4) in old image. I'll appreciate your help.
Where did you get imresample()? Can you look inside it, or ask the author?
bkshn
bkshn il 26 Nov 2013
Modificato: Image Analyst il 26 Nov 2013
and send email to its author , but he didn't answer. anyway thanks for your answer
Image Analyst
Image Analyst il 26 Nov 2013
Modificato: Image Analyst il 26 Nov 2013
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.

Accedi per commentare.

Richiesto:

il 25 Nov 2013

Modificato:

il 26 Nov 2013

Community Treasure Hunt

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

Start Hunting!

Translated by