morousg / cvGPUSpeedup

A faster implementation of OpenCV-CUDA that uses OpenCV objects, and more!
Apache License 2.0
34 stars 5 forks source link

Allow Ptr3D to store planar images with same channel together for different images #55

Closed morousg closed 11 months ago

morousg commented 1 year ago

We want to be able to have Ptr3D storing all the same color planes together.

For instance, we have three images, image 1, 2 and 3, in standard planar: R1, G1, B1, R2, G2, B2, R3, G3, B3.

With a configuration flag, we want Ptr3D to also be able to store the image like this: R1, R2, R3, G1, G2, G3, B1, B2, B3

This should only require additional code in Ptr3D class (constructor and some member), and PtrAccessor