BGR Float Mat: Interleaved-Channels to Block-Channels

asked 2015-02-01 11:49:49 -0600

myro gravatar image


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).


edit retag flag offensive close merge delete