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 = nullptr );
This function returns outputImage.
// Function prototype. interlace_frames_2d(input_even_image: idt.ImageType, input_odd_image: idt.ImageType, split_mode: InterlaceFrames2d.SplitMode = InterlaceFrames2d.SplitMode.HALF_IMAGE, output_image: idt.ImageType = None) -> idt.ImageType
This function returns outputImage.
// Function prototype. public static IOLink.ImageView InterlaceFrames2d( IOLink.ImageView inputEvenImage, IOLink.ImageView inputOddImage, InterlaceFrames2d.SplitMode splitMode = ImageDev.InterlaceFrames2d.SplitMode.HALF_IMAGE, 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 |
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
input_even_image |
The input even field image. | image | Binary, Label, Grayscale or Multispectral | None | |||||
input_odd_image |
The input odd field image. It must have same dimensions and type as the even field. | image | Binary, Label, Grayscale or Multispectral | None | |||||
split_mode |
The split mode for generating the output image.
|
enumeration | HALF_IMAGE | ||||||
output_image |
The output image. | image | None |
Parameter Name | Description | Type | Supported Values | Default Value | |||||
---|---|---|---|---|---|---|---|---|---|
inputEvenImage |
The input even field image. | Image | Binary, Label, Grayscale or Multispectral | null | |||||
inputOddImage |
The input odd field image. It must have same dimensions and type as the even field. | Image | Binary, Label, Grayscale or Multispectral | null | |||||
splitMode |
The split mode for generating the output image.
|
Enumeration | HALF_IMAGE | ||||||
outputImage |
The output image. | Image | null |
Object Examples
auto 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();
polystyrene = ioformat.read_image(imagedev_data.get_image_path("polystyrene.tif")) interlace_frames_2d_algo = imagedev.InterlaceFrames2d() interlace_frames_2d_algo.input_even_image = polystyrene interlace_frames_2d_algo.input_odd_image = polystyrene interlace_frames_2d_algo.split_mode = imagedev.InterlaceFrames2d.HALF_IMAGE interlace_frames_2d_algo.execute() print("output_image:", str(interlace_frames_2d_algo.output_image))
ImageView polystyrene = ViewIO.ReadImage( @"Data/images/polystyrene.tif" ); InterlaceFrames2d interlaceFrames2dAlgo = new InterlaceFrames2d { inputEvenImage = polystyrene, inputOddImage = polystyrene, splitMode = InterlaceFrames2d.SplitMode.HALF_IMAGE }; interlaceFrames2dAlgo.Execute(); Console.WriteLine( "outputImage:" + interlaceFrames2dAlgo.outputImage.ToString() );
Function Examples
auto polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); auto result = interlaceFrames2d( polystyrene, polystyrene, InterlaceFrames2d::SplitMode::HALF_IMAGE ); std::cout << "outputImage:" << result->toString();
polystyrene = ioformat.read_image(imagedev_data.get_image_path("polystyrene.tif")) result = imagedev.interlace_frames_2d(polystyrene, polystyrene, imagedev.InterlaceFrames2d.HALF_IMAGE) print("output_image:", str(result))
ImageView polystyrene = ViewIO.ReadImage( @"Data/images/polystyrene.tif" ); IOLink.ImageView result = Processing.InterlaceFrames2d( polystyrene, polystyrene, InterlaceFrames2d.SplitMode.HALF_IMAGE ); Console.WriteLine( "outputImage:" + result.ToString() );