ImageDev

SequenceToMultispectral

Converts a sequence input into a spectral image.

Access to parameter description

This algorithm converts an input image of type IMAGE_SEQUENCE or VOLUME_SEQUENCE into an image of type MULTISPECTRAL_IMAGE or MULTISPECTRAL_VOLUME.
The number of channels of the output is equal to the number of frames of the input sequence.

Function Syntax

This function returns outputSpectralImage.
// Function prototype
std::shared_ptr< iolink::ImageView > sequenceToMultispectral( std::shared_ptr< iolink::ImageView > inputSequence, std::shared_ptr< iolink::ImageView > outputSpectralImage = NULL );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
inputSequence
The input sequence of type IMAGE_SEQUENCE or VOLUME_SEQUENCE. Image Binary, Label, Grayscale or Multispectral nullptr
output
outputSpectralImage
The output image of type MULTISPECTRAL_IMAGE or MULTISPECTRAL_VOLUME. Its spatial dimensions and type are forced to the same values as the input. Its number of channels is equal to the sequence dimension of the input. Image nullptr

Object Examples

auto polystyrene_seq = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_seq.vip" );

SequenceToMultispectral sequenceToMultispectralAlgo;
sequenceToMultispectralAlgo.setInputSequence( polystyrene_seq );
sequenceToMultispectralAlgo.execute();

std::cout << "outputSpectralImage:" << sequenceToMultispectralAlgo.outputSpectralImage()->toString();

Function Examples

auto polystyrene_seq = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_seq.vip" );

auto result = sequenceToMultispectral( polystyrene_seq );

std::cout << "outputSpectralImage:" << result->toString();