FlipImage2d
Flips a two-dimensional image along the X axis, Y axis, or the image center.
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
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 the outputImage output parameter.
// Function prototype. std::shared_ptr< iolink::ImageView > flipImage2d( std::shared_ptr< iolink::ImageView > inputImage, FlipImage2d::Axis axis, std::shared_ptr< iolink::ImageView > outputImage = NULL );
This function returns the outputImage output parameter.
// Function prototype. flip_image_2d( input_image, axis = FlipImage2d.Axis.X_AXIS, output_image = None )
This function returns the outputImage output parameter.
// Function prototype. public static IOLink.ImageView FlipImage2d( IOLink.ImageView inputImage, FlipImage2d.Axis axis = ImageDev.FlipImage2d.Axis.X_AXIS, IOLink.ImageView outputImage = null );
Class Syntax
Parameters
Class Name | FlipImage2d |
---|
Parameter Name | Description | Type | Supported Values | Default Value | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
inputImage |
The input image. | Image | Binary, Label, Grayscale or Multispectral | nullptr | |||||||
axis |
The symmetry type.
|
Enumeration | X_AXIS | ||||||||
outputImage |
The output image. Its dimensions and type are forced to the same values as the input. | Image | nullptr |
Object Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); FlipImage2d flipImage2dAlgo; flipImage2dAlgo.setInputImage( polystyrene ); flipImage2dAlgo.setAxis( FlipImage2d::Axis::X_AXIS ); flipImage2dAlgo.execute(); std::cout << "outputImage:" << flipImage2dAlgo.outputImage()->toString();
polystyrene = ioformat.read_image(imagedev_data.get_image_path("polystyrene.tif")) flip_image_2d_algo = imagedev.FlipImage2d() flip_image_2d_algo.input_image = polystyrene flip_image_2d_algo.axis = imagedev.FlipImage2d.X_AXIS flip_image_2d_algo.execute() print( "output_image:", str( flip_image_2d_algo.output_image ) )
ImageView polystyrene = ViewIO.ReadImage( @"Data/images/polystyrene.tif" ); FlipImage2d flipImage2dAlgo = new FlipImage2d { inputImage = polystyrene, axis = FlipImage2d.Axis.X_AXIS }; flipImage2dAlgo.Execute(); Console.WriteLine( "outputImage:" + flipImage2dAlgo.outputImage.ToString() );
Function Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); auto result = flipImage2d( polystyrene, FlipImage2d::Axis::X_AXIS ); std::cout << "outputImage:" << result->toString();
polystyrene = ioformat.read_image(imagedev_data.get_image_path("polystyrene.tif")) result = imagedev.flip_image_2d( polystyrene, imagedev.FlipImage2d.X_AXIS ) print( "output_image:", str( result ) )
ImageView polystyrene = ViewIO.ReadImage( @"Data/images/polystyrene.tif" ); IOLink.ImageView result = Processing.FlipImage2d( polystyrene, FlipImage2d.Axis.X_AXIS ); Console.WriteLine( "outputImage:" + result.ToString() );