TransposeImage3d
Swaps coordinates of a three-dimensional image.
Access to parameter description
This algorithm performs a transposition of the image grid along the X, Y, or Z axis.
See also
Access to parameter description
This algorithm performs a transposition of the image grid along the X, Y, or Z axis.
See also
Function Syntax
This function returns the outputImage output parameter.
// Function prototype. std::shared_ptr< iolink::ImageView > transposeImage3d( std::shared_ptr< iolink::ImageView > inputImage, TransposeImage3d::TranspositionMode transpositionMode, std::shared_ptr< iolink::ImageView > outputImage = NULL );
This function returns the outputImage output parameter.
// Function prototype. transpose_image_3d( input_image, transposition_mode = TransposeImage3d.TranspositionMode.XYZ_TO_YXZ, output_image = None )
This function returns the outputImage output parameter.
// Function prototype. public static IOLink.ImageView TransposeImage3d( IOLink.ImageView inputImage, TransposeImage3d.TranspositionMode transpositionMode = ImageDev.TransposeImage3d.TranspositionMode.XYZ_TO_YXZ, IOLink.ImageView outputImage = null );
Class Syntax
Parameters
Class Name | TransposeImage3d |
---|
Parameter Name | Description | Type | Supported Values | Default Value | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr | |||||||||||
transpositionMode |
The transposition mode.
|
Enumeration | XYZ_TO_YXZ | ||||||||||||
outputImage |
The output image. Its type is forced to the same value as the input. Its X, Y, and Z dimensions are switched in accordance with the transposition mode. | Image | nullptr |
Object Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); TransposeImage3d transposeImage3dAlgo; transposeImage3dAlgo.setInputImage( foam ); transposeImage3dAlgo.setTranspositionMode( TransposeImage3d::TranspositionMode::XYZ_TO_YXZ ); transposeImage3dAlgo.execute(); std::cout << "outputImage:" << transposeImage3dAlgo.outputImage()->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) transpose_image_3d_algo = imagedev.TransposeImage3d() transpose_image_3d_algo.input_image = foam transpose_image_3d_algo.transposition_mode = imagedev.TransposeImage3d.XYZ_TO_YXZ transpose_image_3d_algo.execute() print( "output_image:", str( transpose_image_3d_algo.output_image ) );
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); TransposeImage3d transposeImage3dAlgo = new TransposeImage3d { inputImage = foam, transpositionMode = TransposeImage3d.TranspositionMode.XYZ_TO_YXZ }; transposeImage3dAlgo.Execute(); Console.WriteLine( "outputImage:" + transposeImage3dAlgo.outputImage.ToString() );
Function Examples
auto foam = readVipImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "foam.vip" ); auto result = transposeImage3d( foam, TransposeImage3d::TranspositionMode::XYZ_TO_YXZ ); std::cout << "outputImage:" << result->toString();
foam = imagedev.read_vip_image(imagedev_data.get_image_path("foam.vip")) result = imagedev.transpose_image_3d( foam, imagedev.TransposeImage3d.XYZ_TO_YXZ ) print( "output_image:", str( result ) );
ImageView foam = Data.ReadVipImage( @"Data/images/foam.vip" ); IOLink.ImageView result = Processing.TransposeImage3d( foam, TransposeImage3d.TranspositionMode.XYZ_TO_YXZ ); Console.WriteLine( "outputImage:" + result.ToString() );