SbChannelList Constructor (UInt64, UInt32) |
OIV.ImageViz.SbChannelList(1, {0}) means extract only the 1st channel.
Namespace: OIV.ImageViz
number of elements in channels array.
and ordered set of int listing channel indices.
OIV.ImageViz.SbChannelList(3, {0, 1, 2}) means extract the 3 first channels. For performances reasons, the given list must be an ordered set. Each element must appears only 1 time and must be in order. If it is not the case, an exception error will be thrown.
example of invalid arguments: OIV.ImageViz.SbChannelList(3, {1, 1, 2}) OIV.ImageViz.SbChannelList(3, {3, 2, 1})