MultispectralToSequence
Converts a multispectral image input into a sequence.
Access to parameter description
This algorithm converts an input image of type MULTISPECTRAL_IMAGE or MULTISPECTRAL_VOLUME to an image of type or IMAGE_SEQUENCE or VOLUME_SEQUENCE.
The output number of spectral frames is equal to the number of channels of the input.
Access to parameter description
This algorithm converts an input image of type MULTISPECTRAL_IMAGE or MULTISPECTRAL_VOLUME to an image of type or IMAGE_SEQUENCE or VOLUME_SEQUENCE.
The output number of spectral frames is equal to the number of channels of the input.
Function Syntax
This function returns outputSequence.
// Function prototype
std::shared_ptr< iolink::ImageView > multispectralToSequence( std::shared_ptr< iolink::ImageView > inputColorImage, std::shared_ptr< iolink::ImageView > outputSequence = nullptr );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputColorImage |
The input multispectral image of type MULTISPECTRAL_IMAGE or MULTISPECTRAL_VOLUME. | Image | Multispectral | nullptr |
![]() |
outputSequence |
The output image of type IMAGE_SEQUENCE or VOLUME_SEQUENCE. Its spatial dimensions and type are forced to the same values as the input. Its number of frames is equal to the number of channels of the input. | Image | nullptr |
Object Examples
auto ateneub = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "ateneub.jpg" ); MultispectralToSequence multispectralToSequenceAlgo; multispectralToSequenceAlgo.setInputColorImage( ateneub ); multispectralToSequenceAlgo.execute(); std::cout << "outputSequence:" << multispectralToSequenceAlgo.outputSequence()->toString();
Function Examples
auto ateneub = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "ateneub.jpg" ); auto result = multispectralToSequence( ateneub ); std::cout << "outputSequence:" << result->toString();