[go: nahoru, domu]

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

wrapPerspective support #776

Open
adrianstaniec opened this issue Apr 13, 2019 · 4 comments
Open

wrapPerspective support #776

adrianstaniec opened this issue Apr 13, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request external contribution welcome A good place to start contributing to the project

Comments

@adrianstaniec
Copy link

I have a question.
I see that DALI currently supports warpAffine() (opencv 'inspired'),
but I don't see warpPerspective equivalent GPU operation.
Is/Will it be implemented?

@Kh4L Kh4L added the enhancement New feature or request label Apr 14, 2019
@Kh4L
Copy link
Contributor
Kh4L commented Apr 14, 2019

Hi @adrianstaniec

Thanks for your interest

We currently don’t have such an operator in DALI. However it can be easily implemented with the WarpAffine’s internal implementation, DisplacementFilter.

What would be the transformations you’d like to implement with it?

@Kh4L
Copy link
Contributor
Kh4L commented Apr 14, 2019

Tracked internally as DALI-714

@adrianstaniec
Copy link
Author
adrianstaniec commented Apr 15, 2019

nAt the moment, I primarily need a random keystone transform (as augmentation),
so basically a symetrical 'streching out' the bottom or top edge of the image kind of into a trapezium.

e.g. this
chess1

to e.g. this
chess2

But having a general homography, specified by e.g. four point pairs would be even better of course.

@adrianstaniec adrianstaniec changed the title wrapPrerspective support wrapPerspective support Apr 16, 2019
@JanuszL JanuszL added the external contribution welcome A good place to start contributing to the project label Jul 10, 2019
@JanuszL JanuszL added this to ToDo in Users requests Jul 10, 2019
@JanuszL
Copy link
Contributor
JanuszL commented Jan 24, 2024

Hi,

Small update. Now you can use the remap operator that should provide the same functionality (of course you need to generate the transformation what is more complicated than using WarpPerspective directly but if it is constant you can do it once ahead of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request external contribution welcome A good place to start contributing to the project
Projects
Development

No branches or pull requests

3 participants