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

Could Warp function be used to do a projective transformation of an image using a 3x3 matrix? #46

Closed
tosalonijain opened this issue Mar 9, 2018 · 2 comments

Comments

@tosalonijain
Copy link

I am interested to know if warp function defined in this repository work similar to the _warp_fast function available in scipy for homography ?

@Evizero
Copy link
Member

Evizero commented Mar 11, 2018

I don't know the function you speak of. The gist of warp is that it uses https://github.com/FugroRoames/CoordinateTransformations.jl to represent transformations. so if you can represent it using what that package provides it should more or less work.

I am pretty sure we would need some custom tweaking somewhere though as I believe LinearMap and AffineMap both make the assumption that the first two elements of the 3x3 transformation matrix are zero and thus just omits them entirely.

@johnnychen94
Copy link
Member

This seems to be a very similar question to #64 so I'll close it.

The short answer is yes, as long as you wrap it with a function that inputs a SVector and outputs a SVector. https://github.com/JuliaGeometry/CoordinateTransformations.jl is a convenient package that could possibly create such a function (although I didn't put my hands on it).

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

3 participants