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.
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 the outputSpectralImage output parameter.
// Function prototype. std::shared_ptr< iolink::ImageView > sequenceToMultispectral( std::shared_ptr< iolink::ImageView > inputSequence, std::shared_ptr< iolink::ImageView > outputSpectralImage = NULL );
This function returns the outputSpectralImage output parameter.
// Function prototype. sequence_to_multispectral( input_sequence, output_spectral_image = None )
This function returns the outputSpectralImage output parameter.
// Function prototype. public static IOLink.ImageView SequenceToMultispectral( IOLink.ImageView inputSequence, IOLink.ImageView outputSpectralImage = null );
Class Syntax
Parameters
Class Name | SequenceToMultispectral |
---|
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
inputSequence |
The input sequence of type IMAGE_SEQUENCE or VOLUME_SEQUENCE. | Image | Binary, Label, Grayscale or Multispectral | nullptr | |
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();
polystyrene_seq = imagedev.read_vip_image(imagedev_data.get_image_path("polystyrene_seq.vip")) sequence_to_multispectral_algo = imagedev.SequenceToMultispectral() sequence_to_multispectral_algo.input_sequence = polystyrene_seq sequence_to_multispectral_algo.execute() print( "output_spectral_image:", str( sequence_to_multispectral_algo.output_spectral_image ) );
ImageView polystyrene_seq = Data.ReadVipImage( @"Data/images/polystyrene_seq.vip" ); SequenceToMultispectral sequenceToMultispectralAlgo = new SequenceToMultispectral { inputSequence = polystyrene_seq }; sequenceToMultispectralAlgo.Execute(); Console.WriteLine( "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();
polystyrene_seq = imagedev.read_vip_image(imagedev_data.get_image_path("polystyrene_seq.vip")) result = imagedev.sequence_to_multispectral( polystyrene_seq ) print( "output_spectral_image:", str( result ) );
ImageView polystyrene_seq = Data.ReadVipImage( @"Data/images/polystyrene_seq.vip" ); IOLink.ImageView result = Processing.SequenceToMultispectral( polystyrene_seq ); Console.WriteLine( "outputSpectralImage:" + result.ToString() );