ImageDev

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.

Function Syntax

This function returns the outputSequence output parameter.
// Function prototype.
std::shared_ptr< iolink::ImageView >
multispectralToSequence( std::shared_ptr< iolink::ImageView > inputColorImage, std::shared_ptr< iolink::ImageView > outputSequence = NULL );
This function returns the outputSequence output parameter.
// Function prototype.
multispectral_to_sequence( input_color_image, output_sequence = None )
This function returns the outputSequence output parameter.
// Function prototype.
public static IOLink.ImageView
MultispectralToSequence( IOLink.ImageView inputColorImage, IOLink.ImageView outputSequence = null );

Class Syntax

Parameters

Class Name MultispectralToSequence

Parameter Name Description Type Supported Values Default Value
input
inputColorImage
The input multispectral image of type MULTISPECTRAL_IMAGE or MULTISPECTRAL_VOLUME. Image Multispectral nullptr
output
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

std::shared_ptr< iolink::ImageView > ateneub = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "ateneub.jpg" );

MultispectralToSequence multispectralToSequenceAlgo;
multispectralToSequenceAlgo.setInputColorImage( ateneub );
multispectralToSequenceAlgo.execute();

std::cout << "outputSequence:" << multispectralToSequenceAlgo.outputSequence()->toString();
ateneub = ioformat.read_image(imagedev_data.get_image_path("ateneub.jpg"))

multispectral_to_sequence_algo = imagedev.MultispectralToSequence()
multispectral_to_sequence_algo.input_color_image = ateneub
multispectral_to_sequence_algo.execute()

print( "output_sequence:", str( multispectral_to_sequence_algo.output_sequence ) )
ImageView ateneub = ViewIO.ReadImage( @"Data/images/ateneub.jpg" );

MultispectralToSequence multispectralToSequenceAlgo = new MultispectralToSequence
{
    inputColorImage = ateneub
};
multispectralToSequenceAlgo.Execute();

Console.WriteLine( "outputSequence:" + multispectralToSequenceAlgo.outputSequence.ToString() );

Function Examples

std::shared_ptr< iolink::ImageView > ateneub = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "ateneub.jpg" );

auto result = multispectralToSequence( ateneub );

std::cout << "outputSequence:" << result->toString();
ateneub = ioformat.read_image(imagedev_data.get_image_path("ateneub.jpg"))

result = imagedev.multispectral_to_sequence( ateneub )

print( "output_sequence:", str( result ) )
ImageView ateneub = ViewIO.ReadImage( @"Data/images/ateneub.jpg" );

IOLink.ImageView result = Processing.MultispectralToSequence( ateneub );

Console.WriteLine( "outputSequence:" + result.ToString() );