Can I undo Interp2 function?
6 visualizzazioni (ultimi 30 giorni)
Matt J il 2 Dic 2013
Modificato: Matt J il 2 Dic 2013
Approximately, yes, depending somewhat on what the transformation is and whether it is invertible. For example imrotate(Img, theta) does a specialized form of the resampling you've shown. The inverse rotation imrotate(img,-theta) would return an approximation of your original image.
Walter Roberson il 2 Dic 2013
Take a 20 KHz sine wave. Resample it 5000 times per second. Lots of resolution! Now resample those 5000 samples per second back to 20000 KHz. Plot it out, and you'll see a good approximation of the original signal. Oh, wait, the plot is flat ?!? Better resample it 10000 times per second for better accuracy ?!?
Matt J il 12 Dic 2013
If you were hoping to invert not just the continuous space transform approximated by interp2, but in fact the whole discrete image transformation it performs, you could try FUNC2MAT.
Basically, you can convert the transformation W=interp2(V,XI,YI) to a matrix equation
where the matrix A is obtained by
You can then attempt linear algebraic pseudo-inversion
However, the invertability of A would depend greatly on XI, YI and in an unclear way.