Processing math: 100%
ImageDev

FlipImage3d

Flips a three-dimensional image along the X, Y, or Z axis.

Access to parameter description

This algorithm generates an output image according to the selected axis of symmetry, as explained in the axis parameter description.

See also

Function Syntax

This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > flipImage3d( std::shared_ptr< iolink::ImageView > inputImage, FlipImage3d::Axis axis, std::shared_ptr< iolink::ImageView > outputImage = NULL );

Class Syntax

Parameters

Parameter Name Description Type Supported Values Default Value
input
inputImage
The input image. Image Binary, Label, Grayscale or Multispectral nullptr
input
axis
The symmetry axis.
X_AXIS The flip transformation is relative to an axis parallel to X. The result is given by: O(i,j,k)=I(i,M+1j,N+1k) where M is the Y image size and N is the Z image size.
Y_AXIS The flip transformation is relative to an axis parallel to Y. The result is given by: O(i,j,k)=I(M+1i,j,N+1k) where M is the X image size and N is the Z image size.
Z_AXIS The flip transformation is relative to an axis parallel to the Z axis. The result is given by: O(i,j,k)=I(M+1i,N+1j,k) where M is the X image size and N is the Y image size.
Enumeration Z_AXIS
output
outputImage
The output image. Its dimensions and type are forced to the same values as the input. Image nullptr

Object Examples

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

FlipImage3d flipImage3dAlgo;
flipImage3dAlgo.setInputImage( foam );
flipImage3dAlgo.setAxis( FlipImage3d::Axis::X_AXIS );
flipImage3dAlgo.execute();

std::cout << "outputImage:" << flipImage3dAlgo.outputImage()->toString();

Function Examples

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

auto result = flipImage3d( foam, FlipImage3d::Axis::X_AXIS );

std::cout << "outputImage:" << result->toString();