I am using ImageTransformation with a slow function. Is there a way to get ImageTransformation to compute the function at only a few pixels, and then interpolate the function values for pixels in between?

For example, if $f((0,0))=(1,0)$, and $f((0,0.1))=(.9,.9)$, then it would assign the pixel at $(0,0.05)$ to the pixel at $(.95,.95)$.

Note that it should using every pixel of the input image (if warranted), it just shouldn't calculate the function for each pixel of the output image.

  • 2
    $\begingroup$ How about remapping? $\endgroup$ Commented Apr 9, 2018 at 2:22
  • $\begingroup$ @J.M. maybe. It looks like some sort of interpolation function might work too. $\endgroup$ Commented Apr 9, 2018 at 16:03


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.