How to get full size image which is transformed by warp function

Stéfan van der Walt stefan at sun.ac.za
Tue Jun 18 03:24:46 EDT 2013


On Mon, Jun 17, 2013 at 8:01 PM, Yongda Chen <yongda.chen at gmail.com> wrote:
> I am trying to do geometric transformation with warp in scikit-image, but I
> cannot get the full size transformed image which has different image size to
> original image. Even after setting up output_shape parameter, it still lost
> part of image which is transformed to negative coordinates.

I'd represent the rotation as a transformation matrix, and then also
add in a certain amount of translation to account for the negative
coordinates.  I believe this is what Johannes also recommended, and
what is coded up in `skimage.transform.rotate`.

Stéfan



More information about the scikit-image mailing list