ImageDev

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.

Function Syntax

This function returns the outputSequence output parameter.
// 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 = NULL );
This function returns the outputSequence output parameter.
// Function prototype.
sequence_concatenation( input_sequence1, input_sequence2, output_sequence = None )
This function returns the outputSequence output parameter.
// Function prototype.
public static IOLink.ImageView
SequenceConcatenation( IOLink.ImageView inputSequence1,
                       IOLink.ImageView inputSequence2,
                       IOLink.ImageView outputSequence = null );

Class Syntax

Parameters

Class Name SequenceConcatenation

Parameter Name Description Type Supported Values Default Value
input
inputSequence1
The first sequence to concatenate. The ImageType must be IMAGE_SEQUENCE or VOLUME_SEQUENCE. Image Binary, Label, Grayscale or Multispectral nullptr
input
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
output
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

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() );