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 outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > transposeImage3d( std::shared_ptr< iolink::ImageView > inputImage, TransposeImage3d::TranspositionMode transpositionMode, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
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();
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();