You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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' ?
The text was updated successfully, but these errors were encountered:
hi,
recently, I want to use
image.warp
to 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.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' ?
The text was updated successfully, but these errors were encountered: