ImageDev

Flip3d

Flips some coordinates (X, Y, Z) of a three-dimensional image.

Access to parameter description

This algorithm generates an output image according to the flip mode, as explained in the flipMode parameter description.

See also

Function Syntax

This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > flip3d( std::shared_ptr< iolink::ImageView > inputImage, Flip3d::FlipMode flipMode, std::shared_ptr< iolink::ImageView > outputImage = nullptr );
This function returns outputImage.
// Function prototype.
flip_3d(input_image: idt.ImageType,
        flip_mode: Flip3d.FlipMode = Flip3d.FlipMode.X_FLIP,
        output_image: idt.ImageType = None) -> idt.ImageType
This function returns outputImage.
// Function prototype.
public static IOLink.ImageView
Flip3d( IOLink.ImageView inputImage,
        Flip3d.FlipMode flipMode = ImageDev.Flip3d.FlipMode.X_FLIP,
        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
flipMode
The flip operation type.
X_FLIP The transformation flips the X coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,y,z) $$ where Sx is the X image size.
Y_FLIP The transformation flips the Y coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,Sy-1-y,z) $$ where Sy is the Y image size.
Z_FLIP The transformation flips the Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,y,Sz-1-z) $$ where Sz is the Z image size.
XY_FLIP The transformation flips the X and Y coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,Sy-1-y,z) $$ where Sx and Sy are the X and Y image sizes.
XZ_FLIP The transformation flips the X and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,y,Sz-1-z) $$ where Sx and Sz are the X and Z image sizes.
YZ_FLIP The transformation flips the Y and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,Sy-1-y,Sz-1-z) $$ where Sy and Sz are the Y and Z image sizes.
XYZ_FLIP The transformation flips the X, Y and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,Sy-1-y,Sz-1-z) $$ where Sx, Sy and Sz are the X, Y and Z image sizes.
Enumeration X_FLIP
output
outputImage
The output image. Its dimensions and type are forced to the same values as the input. Image nullptr
Parameter Name Description Type Supported Values Default Value
input
input_image
The input image. image Binary, Label, Grayscale or Multispectral None
input
flip_mode
The flip operation type.
X_FLIP The transformation flips the X coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,y,z) $$ where Sx is the X image size.
Y_FLIP The transformation flips the Y coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,Sy-1-y,z) $$ where Sy is the Y image size.
Z_FLIP The transformation flips the Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,y,Sz-1-z) $$ where Sz is the Z image size.
XY_FLIP The transformation flips the X and Y coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,Sy-1-y,z) $$ where Sx and Sy are the X and Y image sizes.
XZ_FLIP The transformation flips the X and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,y,Sz-1-z) $$ where Sx and Sz are the X and Z image sizes.
YZ_FLIP The transformation flips the Y and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,Sy-1-y,Sz-1-z) $$ where Sy and Sz are the Y and Z image sizes.
XYZ_FLIP The transformation flips the X, Y and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,Sy-1-y,Sz-1-z) $$ where Sx, Sy and Sz are the X, Y and Z image sizes.
enumeration X_FLIP
output
output_image
The output image. Its dimensions and type are forced to the same values as the input. image None
Parameter Name Description Type Supported Values Default Value
input
inputImage
The input image. Image Binary, Label, Grayscale or Multispectral null
input
flipMode
The flip operation type.
X_FLIP The transformation flips the X coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,y,z) $$ where Sx is the X image size.
Y_FLIP The transformation flips the Y coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,Sy-1-y,z) $$ where Sy is the Y image size.
Z_FLIP The transformation flips the Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,y,Sz-1-z) $$ where Sz is the Z image size.
XY_FLIP The transformation flips the X and Y coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,Sy-1-y,z) $$ where Sx and Sy are the X and Y image sizes.
XZ_FLIP The transformation flips the X and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,y,Sz-1-z) $$ where Sx and Sz are the X and Z image sizes.
YZ_FLIP The transformation flips the Y and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(x,Sy-1-y,Sz-1-z) $$ where Sy and Sz are the Y and Z image sizes.
XYZ_FLIP The transformation flips the X, Y and Z coordinates of the input image. The result is given by: $$ O(x,y,z)=I(Sx-1-x,Sy-1-y,Sz-1-z) $$ where Sx, Sy and Sz are the X, Y and Z image sizes.
Enumeration X_FLIP
output
outputImage
The output image. Its dimensions and type are forced to the same values as the input. Image null

Object Examples

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

Flip3d flip3dAlgo;
flip3dAlgo.setInputImage( foam );
flip3dAlgo.setFlipMode( Flip3d::FlipMode::X_FLIP );
flip3dAlgo.execute();

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

flip_3d_algo = imagedev.Flip3d()
flip_3d_algo.input_image = foam
flip_3d_algo.flip_mode = imagedev.Flip3d.X_FLIP
flip_3d_algo.execute()

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

Flip3d flip3dAlgo = new Flip3d
{
    inputImage = foam,
    flipMode = Flip3d.FlipMode.X_FLIP
};
flip3dAlgo.Execute();

Console.WriteLine( "outputImage:" + flip3dAlgo.outputImage.ToString() );

Function Examples

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

auto result = flip3d( foam, Flip3d::FlipMode::X_FLIP );

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

result = imagedev.flip_3d(foam, imagedev.Flip3d.X_FLIP)

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

IOLink.ImageView result = Processing.Flip3d( foam, Flip3d.FlipMode.X_FLIP );

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





© 2025 Thermo Fisher Scientific Inc. All rights reserved.