Simd icon indicating copy to clipboard operation
Simd copied to clipboard

Affine Image Transformation

Open olokobayusuf opened this issue 2 years ago • 1 comments

Hey @ermig1979 , following from our convo I'm opening this issue for implementing a generalized affine image transformation API. This function will be capable of expressing an entire family of geometric image transformations. The downside is that it would typically result in unordered memory accesses, and might not be trivially parallelizable. I'll update this issue with a proposal API, and will create a fork with a simple (un-parallelized) C/C++ implementation. Looking forward to what we can do on this!

olokobayusuf avatar Aug 09 '21 13:08 olokobayusuf

Ok. I'm waiting for API and scalar implementation.

ermig1979 avatar Aug 09 '21 14:08 ermig1979

I added function Simd::WarpAffine.

ermig1979 avatar Dec 29 '22 18:12 ermig1979

@ermig1979 thanks for this. We ended up going with a very naive implementation, and turns out clang did a good job at auto-vectorizing with -O3. I'm looking forward to profiling your implementation. I truly cannot thank you enough for this project; we're massive fans at NatML.

olokobayusuf avatar Dec 29 '22 23:12 olokobayusuf