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
    $\begingroup$ How about remapping? $\endgroup$ – J. M. will be back soon Apr 9 '18 at 2:22
  • $\begingroup$ @J.M. maybe. It looks like some sort of interpolation function might work too. $\endgroup$ – PyRulez Apr 9 '18 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.