InterlaceFrames2d
Merges two images, considered as even and odd frames, to produce an interlaced image.
Access to parameter description
This algorithm generates an interlaced output image from two input images. Each even row of the output image is taken from the first input image, while each odd row is taken from the second input image.
See also
Access to parameter description
This algorithm generates an interlaced output image from two input images. Each even row of the output image is taken from the first input image, while each odd row is taken from the second input image.
See also
Function Syntax
This function returns outputImage.
// Function prototype
std::shared_ptr< iolink::ImageView > interlaceFrames2d( std::shared_ptr< iolink::ImageView > inputEvenImage, std::shared_ptr< iolink::ImageView > inputOddImage, InterlaceFrames2d::SplitMode splitMode, std::shared_ptr< iolink::ImageView > outputImage = NULL );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
![]() |
inputEvenImage |
The input even field image. | Image | Binary, Label, Grayscale or Multispectral | nullptr | ||||
![]() |
inputOddImage |
The input odd field image. It must have same dimensions and type as the even field. | Image | Binary, Label, Grayscale or Multispectral | nullptr | ||||
![]() |
splitMode |
The split mode for generating the output image.
|
Enumeration | HALF_IMAGE | |||||
![]() |
outputImage |
The output image. | Image | nullptr |
Object Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); InterlaceFrames2d interlaceFrames2dAlgo; interlaceFrames2dAlgo.setInputEvenImage( polystyrene ); interlaceFrames2dAlgo.setInputOddImage( polystyrene ); interlaceFrames2dAlgo.setSplitMode( InterlaceFrames2d::SplitMode::HALF_IMAGE ); interlaceFrames2dAlgo.execute(); std::cout << "outputImage:" << interlaceFrames2dAlgo.outputImage()->toString();
Function Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); auto result = interlaceFrames2d( polystyrene, polystyrene, InterlaceFrames2d::SplitMode::HALF_IMAGE ); std::cout << "outputImage:" << result->toString();