public class SbChannelList extends Inventor
SbChannelList
is an ordered set. Channels are present only one time and are sorted by order.
Channels can be accessed with operator[]. Number of channel can be accessed with getNumChannel()
.
Note: Because it is an ordered set, for a given SoImageDataAdapter
if channelList.getNumChannel() == image.getNumChannel(), this imply that channelList contains all the channels of image.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SbChannelList(long nbChannel)
Construct channelList corresponding to all channel from 0 to n-1: {0, 1, 2, ..., n-1}.
|
SbChannelList(long n,
int[] channels)
SbChannelList (1, {0}) means extract only the 1st channel. |
Modifier and Type | Method and Description |
---|---|
int |
getNumChannel()
Return number of channel to extract.
|
int |
getValueAt(int channelId) |
void |
setValue(SbChannelList copyFrom) |
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SbChannelList(long n, int[] channels)
SbChannelList
(1, {0}) means extract only the 1st channel.
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: SbChannelList
(3, {1, 1, 2}) SbChannelList
(3, {3, 2, 1})
n
- number of elements in channels array.
channels
- and ordered set of int listing channel indices.public SbChannelList(long nbChannel)
public void setValue(SbChannelList copyFrom)
public int getValueAt(int channelId)
public int getNumChannel()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com