Is it possible to crop an image using this library? Basically the opposite of SimdCopyFrame, I want to keep the pixels inside the bounding box. Then I need to resize that cropped image.
Are any other transforms available or planned - rotate, mirror / flip, skew, etc?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to crop an image using this library? Basically the opposite of SimdCopyFrame, I want to keep the pixels inside the bounding box. Then I need to resize that cropped image.
Are any other transforms available or planned - rotate, mirror / flip, skew, etc?
Cropping of image is easy performed with using of Simd::Copy.
See description of Simd::View structure:
http://simd.sourceforge.net/help/struct_simd_1_1_view.html
typedef Simd::View<simd::allocator> View;
View original(1920, 1080, View::Bgra32);
View cropped(100, 100, View::Bgra32);
Simd::Copy(original.Region(100, 100, 200, 200), cropped);</simd::allocator>
For vertical flipping see method View::Flipped().