skimage.transform.warp has a keyword mode
, which defines values of the points outside of the image. It refers to numpy.pad. How can I pad my image with NaNs during warping? Numpy documentation says to use mode=‘empty’, but it does not seem to be supported by scikit-image.
For my use case, I want to discard regions of interest which are outside of the warped image. It is not the same as assuming that intensity inside these regions is zero