ImageDev

SequenceToVolume

Converts a sequence input into a volume.

Access to parameter description

This algorithm converts an input image of type IMAGE_SEQUENCE to an image of type or VOLUME.
The output volume number of slices is equal to the input sequence number of frames.

Function Syntax

This function returns outputVolume.
// Function prototype
std::shared_ptr< iolink::ImageView > sequenceToVolume( std::shared_ptr< iolink::ImageView > inputSequence, std::shared_ptr< iolink::ImageView > outputVolume = NULL );
This function returns outputVolume.
// Function prototype.
sequence_to_volume( input_sequence, output_volume = None )
This function returns outputVolume.
// Function prototype.
public static IOLink.ImageView
SequenceToVolume( IOLink.ImageView inputSequence, IOLink.ImageView outputVolume = null );

Class Syntax

Parameters

Class Name SequenceToVolume

Parameter Name Description Type Supported Values Default Value
input
inputSequence
The input 2d sequence. Image Binary, Label, Grayscale or Multispectral nullptr
output
outputVolume
The output 3d volume. Its X, Y dimensions and type are forced to the same values as the input. Its number of slices 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" );

SequenceToVolume sequenceToVolumeAlgo;
sequenceToVolumeAlgo.setInputSequence( polystyrene_seq );
sequenceToVolumeAlgo.execute();

std::cout << "outputVolume:" << sequenceToVolumeAlgo.outputVolume()->toString();
polystyrene_seq = imagedev.read_vip_image(imagedev_data.get_image_path("polystyrene_seq.vip"))

sequence_to_volume_algo = imagedev.SequenceToVolume()
sequence_to_volume_algo.input_sequence = polystyrene_seq
sequence_to_volume_algo.execute()

print( "output_volume:", str( sequence_to_volume_algo.output_volume ) )
ImageView polystyrene_seq = Data.ReadVipImage( @"Data/images/polystyrene_seq.vip" );

SequenceToVolume sequenceToVolumeAlgo = new SequenceToVolume
{
    inputSequence = polystyrene_seq
};
sequenceToVolumeAlgo.Execute();

Console.WriteLine( "outputVolume:" + sequenceToVolumeAlgo.outputVolume.ToString() );

Function Examples

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

auto result = sequenceToVolume( polystyrene_seq );

std::cout << "outputVolume:" << result->toString();
polystyrene_seq = imagedev.read_vip_image(imagedev_data.get_image_path("polystyrene_seq.vip"))

result = imagedev.sequence_to_volume( polystyrene_seq )

print( "output_volume:", str( result ) )
ImageView polystyrene_seq = Data.ReadVipImage( @"Data/images/polystyrene_seq.vip" );

IOLink.ImageView result = Processing.SequenceToVolume( polystyrene_seq );

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