DALI
DALI copied to clipboard
wrapPerspective support
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?
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?
Tracked internally as DALI-714
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
to e.g. this
But having a general homography, specified by e.g. four point pairs would be even better of course.
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.