TransposeImage2d
Swaps coordinates of a two-dimensional image.
Access to parameter description
This algorithm performs a transposition of the image grid along both the X and Y axes. It effectively flips the input image I from left to right and rotates it 90∘ counterclockwise. O(n,m)=I(m,n) See also
Access to parameter description
This algorithm performs a transposition of the image grid along both the X and Y axes. It effectively flips the input image I from left to right and rotates it 90∘ counterclockwise. O(n,m)=I(m,n) See also
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > transposeImage2d( std::shared_ptr< iolink::ImageView > inputImage, 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 |
![]() |
outputImage |
The output image. Its type is forced to the same values as the input. Its X and Y dimensions are switched. | Image | nullptr |
Object Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); TransposeImage2d transposeImage2dAlgo; transposeImage2dAlgo.setInputImage( polystyrene ); transposeImage2dAlgo.execute(); std::cout << "outputImage:" << transposeImage2dAlgo.outputImage()->toString();
Function Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); auto result = transposeImage2d( polystyrene ); std::cout << "outputImage:" << result->toString();