hi,
recently, I want to use image.warp to do some transform.
my code like this:
image.warp(img,flow, 'bicubic', false,'pad',0);
when I use the same flow in the Matlab to handle the same image. Most of the value of this warper is correct. except the bound when I move to the area outside the image.
here is the Matlab code:
interp2(X, Y,img, flowX, flowY, 'cubic', 0);
the output of image.warp like this:

the output of interp2 like this:

in the bound of warper, the value is not same as Matlab.
is there something wrong with my code? or it is only the different implement in this two language.
How to avoid this kind of 'bound' ?
hi,
recently, I want to use
image.warpto do some transform.my code like this:
when I use the same flow in the Matlab to handle the same image. Most of the value of this warper is correct. except the bound when I move to the area outside the image.
here is the Matlab code:
the output of


image.warplike this:the output of
interp2like this:in the bound of warper, the value is not same as Matlab.
is there something wrong with my code? or it is only the different implement in this two language.
How to avoid this kind of 'bound' ?