HALCON Reference Manual 10.0.2
Table of Contents / Filters / Smoothing ClassesClassesClasses | | | Operators

fill_interlacefill_interlacefill_interlaceFillInterlaceFillInterlace (Operator)

Name

fill_interlacefill_interlacefill_interlaceFillInterlaceFillInterlace — Interpolate 2 video half images.

Signature

fill_interlace(ImageCamera : ImageFilled : Mode : )

Herror fill_interlace(const Hobject ImageCamera, Hobject* ImageFilled, const char* Mode)

Herror T_fill_interlace(const Hobject ImageCamera, Hobject* ImageFilled, const Htuple Mode)

Herror fill_interlace(Hobject ImageCamera, Hobject* ImageFilled, const HTuple& Mode)

HImage HImage::FillInterlace(const HTuple& Mode) const

HImageArray HImageArray::FillInterlace(const HTuple& Mode) const

void HOperatorSetX.FillInterlace(
[in] IHUntypedObjectX* ImageCamera, [out] IHUntypedObjectX*ImageFilled, [in] VARIANT Mode)

IHImageX* HImageX.FillInterlace([in] BSTR Mode)

static void HOperatorSet.FillInterlace(HObject imageCamera, out HObject imageFilled, HTuple mode)

HImage HImage.FillInterlace(string mode)

Description

The operator fill_interlacefill_interlacefill_interlaceFillInterlaceFillInterlace calculates an interpolated full image or removes odd/even lines from a video image composed of two half images. If an image is recorded with a video camera it consists of two half images recorded at different times but stored in one image in the digital form. This can lead to several errors in further processing. In order to reduce these errors the video image is modified. Every second line is re-calculated or removed. The parameter ModeModeModeModemode determines whether this must be done for even ('even', 'rmeven') or odd ('odd', 'rmodd') line numbers. If you choose 'even' or 'odd' the gray values in the generated lines are calculated as mean values from the direct neighbors above or below the current pixel, respectively. If you choose 'rmeven' or 'rmodd' the even or odd lines numbers are removed (in that case the resulting image is only half as high as the input image). The value 'switch' for ModeModeModeModemode cause the odd and even lines to be exchanged.

Parallelization

Parameters

ImageCameraImageCameraImageCameraImageCameraimageCamera (input_object)  (multichannel-)image(-array) objectHImageHImageHImageXHobject (byte / uint2)

Gray image consisting of two half images.

ImageFilledImageFilledImageFilledImageFilledimageFilled (output_object)  (multichannel-)image(-array) objectHImageHImageHImageXHobject * (byte / uint2)

Full image with interpolated/removed lines.

ModeModeModeModemode (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Instruction whether even or odd lines should be replaced/removed.

Default value: 'odd' "odd" "odd" "odd" "odd"

List of values: 'odd'"odd""odd""odd""odd", 'even'"even""even""even""even", 'rmodd'"rmodd""rmodd""rmodd""rmodd", 'rmeven'"rmeven""rmeven""rmeven""rmeven", 'switch'"switch""switch""switch""switch"

Example (HDevelop)

read_image(Image,'video_image')
fill_interlace(Image,New,'odd')
sobel_amp(New,Sobel,'sum_abs',3)

Example (C)

read_image(&Image,"video_image");
fill_interlace(Image,&New,"odd");
sobel_amp(New,&Sobel,"sum_abs",3);

Example (HDevelop)

read_image(Image,'video_image')
fill_interlace(Image,New,'odd')
sobel_amp(New,Sobel,'sum_abs',3)

Example (HDevelop)

read_image(Image,'video_image')
fill_interlace(Image,New,'odd')
sobel_amp(New,Sobel,'sum_abs',3)

Example (HDevelop)

read_image(Image,'video_image')
fill_interlace(Image,New,'odd')
sobel_amp(New,Sobel,'sum_abs',3)

Complexity

For each pixel: O(2).

Result

If the parameter values are correct the operator fill_interlacefill_interlacefill_interlaceFillInterlaceFillInterlace returns the value 2 (H_MSG_TRUE). The behavior in case of empty input (no input images available) is set via the operator set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). If necessary an exception is raised.

Possible Predecessors

read_imageread_imageread_imageReadImageReadImage, grab_imagegrab_imagegrab_imageGrabImageGrabImage

Possible Successors

sobel_ampsobel_ampsobel_ampSobelAmpSobelAmp, edges_imageedges_imageedges_imageEdgesImageEdgesImage, regiongrowingregiongrowingregiongrowingRegiongrowingRegiongrowing, diff_of_gaussdiff_of_gaussdiff_of_gaussDiffOfGaussDiffOfGauss, thresholdthresholdthresholdThresholdThreshold, dyn_thresholddyn_thresholddyn_thresholdDynThresholdDynThreshold, auto_thresholdauto_thresholdauto_thresholdAutoThresholdAutoThreshold, mean_imagemean_imagemean_imageMeanImageMeanImage, binomial_filterbinomial_filterbinomial_filterBinomialFilterBinomialFilter, gauss_imagegauss_imagegauss_imageGaussImageGaussImage, anisotropic_diffusionanisotropic_diffusionanisotropic_diffusionAnisotropicDiffusionAnisotropicDiffusion, sigma_imagesigma_imagesigma_imageSigmaImageSigmaImage, median_imagemedian_imagemedian_imageMedianImageMedianImage

See also

median_imagemedian_imagemedian_imageMedianImageMedianImage, binomial_filterbinomial_filterbinomial_filterBinomialFilterBinomialFilter, gauss_imagegauss_imagegauss_imageGaussImageGaussImage, crop_partcrop_partcrop_partCropPartCropPart

Module

Foundation


Table of Contents / Filters / Smoothing ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH