SequenceConcatenation
Concatenates two image sequences into a single one.
Access to parameter description
This algorithm creates a new image sequence by joining two sequences that have the same spatial dimensions and data type.
Access to parameter description
This algorithm creates a new image sequence by joining two sequences that have the same spatial dimensions and data type.
Function Syntax
This function returns outputSequence.
// Function prototype
std::shared_ptr< iolink::ImageView > sequenceConcatenation( std::shared_ptr< iolink::ImageView > inputSequence1, std::shared_ptr< iolink::ImageView > inputSequence2, std::shared_ptr< iolink::ImageView > outputSequence = nullptr );
This function returns outputSequence.
// Function prototype. sequence_concatenation(input_sequence1: idt.ImageType, input_sequence2: idt.ImageType, output_sequence: idt.ImageType = None) -> idt.ImageType
This function returns outputSequence.
// Function prototype. public static IOLink.ImageView SequenceConcatenation( IOLink.ImageView inputSequence1, IOLink.ImageView inputSequence2, IOLink.ImageView outputSequence = null );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
inputSequence1 |
The first sequence to concatenate. The ImageType must be IMAGE_SEQUENCE or VOLUME_SEQUENCE. | Image | Binary, Label, Grayscale or Multispectral | nullptr | |
inputSequence2 |
The second sequence to concatenate. The ImageType must be IMAGE_SEQUENCE or VOLUME_SEQUENCE. Its data type and spatial dimensions must be the same as the first input sequence. Its number of frames (sequence dimension) can be different. | Image | Binary, Label, Grayscale or Multispectral | nullptr | |
outputSequence |
The output sequence. Its spatial dimensions and type are forced to the same values as the inputs. Its sequence dimension is the sum of both inputs. | Image | nullptr |
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
input_sequence1 |
The first sequence to concatenate. The ImageType must be IMAGE_SEQUENCE or VOLUME_SEQUENCE. | image | Binary, Label, Grayscale or Multispectral | None | |
input_sequence2 |
The second sequence to concatenate. The ImageType must be IMAGE_SEQUENCE or VOLUME_SEQUENCE. Its data type and spatial dimensions must be the same as the first input sequence. Its number of frames (sequence dimension) can be different. | image | Binary, Label, Grayscale or Multispectral | None | |
output_sequence |
The output sequence. Its spatial dimensions and type are forced to the same values as the inputs. Its sequence dimension is the sum of both inputs. | image | None |
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
inputSequence1 |
The first sequence to concatenate. The ImageType must be IMAGE_SEQUENCE or VOLUME_SEQUENCE. | Image | Binary, Label, Grayscale or Multispectral | null | |
inputSequence2 |
The second sequence to concatenate. The ImageType must be IMAGE_SEQUENCE or VOLUME_SEQUENCE. Its data type and spatial dimensions must be the same as the first input sequence. Its number of frames (sequence dimension) can be different. | Image | Binary, Label, Grayscale or Multispectral | null | |
outputSequence |
The output sequence. Its spatial dimensions and type are forced to the same values as the inputs. Its sequence dimension is the sum of both inputs. | Image | null |
Object Examples
auto polystyrene_seq = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_seq.vip" ); SequenceConcatenation sequenceConcatenationAlgo; sequenceConcatenationAlgo.setInputSequence1( polystyrene_seq ); sequenceConcatenationAlgo.setInputSequence2( polystyrene_seq ); sequenceConcatenationAlgo.execute(); std::cout << "outputSequence:" << sequenceConcatenationAlgo.outputSequence()->toString();
polystyrene_seq = imagedev.read_vip_image(imagedev_data.get_image_path("polystyrene_seq.vip")) sequence_concatenation_algo = imagedev.SequenceConcatenation() sequence_concatenation_algo.input_sequence1 = polystyrene_seq sequence_concatenation_algo.input_sequence2 = polystyrene_seq sequence_concatenation_algo.execute() print("output_sequence:", str(sequence_concatenation_algo.output_sequence))
ImageView polystyrene_seq = Data.ReadVipImage( @"Data/images/polystyrene_seq.vip" ); SequenceConcatenation sequenceConcatenationAlgo = new SequenceConcatenation { inputSequence1 = polystyrene_seq, inputSequence2 = polystyrene_seq }; sequenceConcatenationAlgo.Execute(); Console.WriteLine( "outputSequence:" + sequenceConcatenationAlgo.outputSequence.ToString() );
Function Examples
auto polystyrene_seq = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene_seq.vip" ); auto result = sequenceConcatenation( polystyrene_seq, polystyrene_seq ); std::cout << "outputSequence:" << result->toString();
polystyrene_seq = imagedev.read_vip_image(imagedev_data.get_image_path("polystyrene_seq.vip")) result = imagedev.sequence_concatenation(polystyrene_seq, polystyrene_seq) print("output_sequence:", str(result))
ImageView polystyrene_seq = Data.ReadVipImage( @"Data/images/polystyrene_seq.vip" ); IOLink.ImageView result = Processing.SequenceConcatenation( polystyrene_seq, polystyrene_seq ); Console.WriteLine( "outputSequence:" + result.ToString() );