Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

BGR Float Mat: Interleaved-Channels to Block-Channels


I wanted to ask whether there is a function to convert a 3 channel, interleaved, float BGR mat to a 3 channel non-interleaved (block) RGB mat.

The initial layout is: BGRBGRBGRBGRBGRBGR (each letter is a float)

The desired layout is: RRRRRRGGGGGGBBBBBB

Also, this conversion should be done with a single data copy (and not multiple copies for intermediate steps).