MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / channel_split

Function channel_split

examples/image_processing/image_demo.cpp:17–21  ·  view source on GitHub ↗

Split a MxNx3 image into 3 separate channel matrices.

Source from the content-addressed store, hash-verified

15
16// Split a MxNx3 image into 3 separate channel matrices.
17static void channel_split(array& rgb, array& outr, array& outg, array& outb) {
18 outr = rgb(span, span, 0);
19 outg = rgb(span, span, 1);
20 outb = rgb(span, span, 2);
21}
22
23// 5x5 sigma-3 gaussian blur weights
24static const float h_gauss[] = {

Callers 1

img_test_demoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected