ImageDev

VolumeToSequence

Converts a volume input into a sequence.

Access to parameter description

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

Function Syntax

This function returns outputSequence.
// Function prototype
std::shared_ptr< iolink::ImageView > volumeToSequence( std::shared_ptr< iolink::ImageView > inputVolume, std::shared_ptr< iolink::ImageView > outputSequence = NULL );
This function returns outputSequence.
// Function prototype.
volume_to_sequence( input_volume, output_sequence = None )
This function returns outputSequence.
// Function prototype.
public static IOLink.ImageView
VolumeToSequence( IOLink.ImageView inputVolume, IOLink.ImageView outputSequence = null );

Class Syntax

Parameters

Class Name VolumeToSequence

Parameter Name Description Type Supported Values Default Value
input
inputVolume
The input 3d volume. Image Binary, Label, Grayscale or Multispectral nullptr
output
outputSequence
The output 2d sequence. Its X, Y dimensions and type are forced to the same values as the input. Its sequence dimension is equal to the number of slices of the input. Image nullptr

Object Examples

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

VolumeToSequence volumeToSequenceAlgo;
volumeToSequenceAlgo.setInputVolume( foam );
volumeToSequenceAlgo.execute();

std::cout << "outputSequence:" << volumeToSequenceAlgo.outputSequence()->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip"))

volume_to_sequence_algo = imagedev.VolumeToSequence()
volume_to_sequence_algo.input_volume = foam
volume_to_sequence_algo.execute()

print( "output_sequence:", str( volume_to_sequence_algo.output_sequence ) )
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" );

VolumeToSequence volumeToSequenceAlgo = new VolumeToSequence
{
    inputVolume = foam
};
volumeToSequenceAlgo.Execute();

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

Function Examples

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

auto result = volumeToSequence( foam );

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

result = imagedev.volume_to_sequence( foam )

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

IOLink.ImageView result = Processing.VolumeToSequence( foam );

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