2
$\begingroup$

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.

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

0

Your Answer

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