Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bound check of image.warp #223

Open
vinthony opened this issue Jun 10, 2017 · 0 comments
Open

bound check of image.warp #223

vinthony opened this issue Jun 10, 2017 · 0 comments

Comments

@vinthony
Copy link

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:
image
the output of interp2 like this:
image

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' ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant