HALCON Reference Manual 10.0.2
Table of Contents / Calibration / Calibration Object ClassesClassesClasses | | | Operators

find_caltabfind_caltabfind_caltabFindCaltabFindCaltab (Operator)

Name

find_caltabfind_caltabfind_caltabFindCaltabFindCaltab — Segment the standard calibration plate region in the image.

Signature

find_caltab(Image : Caltab : CalTabDescrFile, SizeGauss, MarkThresh, MinDiamMarks : )

Herror find_caltab(const Hobject Image, Hobject* Caltab, const char* CalTabDescrFile, const Hlong SizeGauss, const Hlong MarkThresh, const Hlong MinDiamMarks)

Herror T_find_caltab(const Hobject Image, Hobject* Caltab, const Htuple CalTabDescrFile, const Htuple SizeGauss, const Htuple MarkThresh, const Htuple MinDiamMarks)

Herror find_caltab(Hobject Image, Hobject* Caltab, const HTuple& CalTabDescrFile, const HTuple& SizeGauss, const HTuple& MarkThresh, const HTuple& MinDiamMarks)

HRegion HImage::FindCaltab(const HTuple& CalTabDescrFile, const HTuple& SizeGauss, const HTuple& MarkThresh, const HTuple& MinDiamMarks) const

void HOperatorSetX.FindCaltab(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*Caltab, [in] VARIANT CalTabDescrFile, [in] VARIANT SizeGauss, [in] VARIANT MarkThresh, [in] VARIANT MinDiamMarks)

IHRegionX* HImageX.FindCaltab(
[in] BSTR CalTabDescrFile, [in] Hlong SizeGauss, [in] Hlong MarkThresh, [in] Hlong MinDiamMarks)

static void HOperatorSet.FindCaltab(HObject image, out HObject caltab, HTuple calTabDescrFile, HTuple sizeGauss, HTuple markThresh, HTuple minDiamMarks)

HRegion HImage.FindCaltab(string calTabDescrFile, int sizeGauss, int markThresh, int minDiamMarks)

Description

find_caltabfind_caltabfind_caltabFindCaltabFindCaltab is used to determine the region of a plane calibration plate with circular marks in the input image ImageImageImageImageimage. First the input image is smoothed (see gauss_imagegauss_imagegauss_imageGaussImageGaussImage); the size of the used filter mask is given by SizeGaussSizeGaussSizeGaussSizeGausssizeGauss. Afterwards, a thresholding operator (see thresholdthresholdthresholdThresholdThreshold) with minimum gray value MarkThreshMarkThreshMarkThreshMarkThreshmarkThresh is applied. Among the extracted connected regions the most convex region with almost correct number of holes (corresponding to the dark marks of the calibration plate) is selected. Holes with a diameter smaller than the expected size of the marks MinDiamMarksMinDiamMarksMinDiamMarksMinDiamMarksminDiamMarks are eliminated to reduce the impact of noise. The number of marks is read from the calibration plate description file CalTabDescrFileCalTabDescrFileCalTabDescrFileCalTabDescrFilecalTabDescrFile. The complete explanation of this file can be found within the description of gen_caltabgen_caltabgen_caltabGenCaltabGenCaltab.

Parallelization

Parameters

ImageImageImageImageimage (input_object)  image objectHImageHImageHImageXHobject (byte / uint2)

Input image.

CaltabCaltabCaltabCaltabcaltab (output_object)  region objectHRegionHRegionHRegionXHobject *

Output region.

CalTabDescrFileCalTabDescrFileCalTabDescrFileCalTabDescrFilecalTabDescrFile (input_control)  filename.read HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

File name of the calibration plate description.

Default value: 'caltab.descr' "caltab.descr" "caltab.descr" "caltab.descr" "caltab.descr"

List of values: 'caltab.descr'"caltab.descr""caltab.descr""caltab.descr""caltab.descr", 'caltab_10mm.descr'"caltab_10mm.descr""caltab_10mm.descr""caltab_10mm.descr""caltab_10mm.descr", 'caltab_30mm.descr'"caltab_30mm.descr""caltab_30mm.descr""caltab_30mm.descr""caltab_30mm.descr", 'caltab_100mm.descr'"caltab_100mm.descr""caltab_100mm.descr""caltab_100mm.descr""caltab_100mm.descr", 'caltab_200mm.descr'"caltab_200mm.descr""caltab_200mm.descr""caltab_200mm.descr""caltab_200mm.descr"

File extension: .descr

SizeGaussSizeGaussSizeGaussSizeGausssizeGauss (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Filter size of the Gaussian.

Default value: 3

List of values: 0, 3, 5, 7, 9, 11

MarkThreshMarkThreshMarkThreshMarkThreshmarkThresh (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Threshold value for mark extraction.

Default value: 112

List of values: 48, 64, 80, 96, 112, 128, 144, 160

MinDiamMarksMinDiamMarksMinDiamMarksMinDiamMarksminDiamMarks (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Expected minimal diameter of the marks on the calibration plate.

Default value: 5

List of values: 3, 5, 9, 15, 30, 50, 70

Example (HDevelop)

* read calibration image
read_image(Image, 'calib-01')
* find calibration pattern
find_caltab(Image, Caltab, 'caltab.descr', 3, 112, 5)

Example (HDevelop)

* read calibration image
read_image(Image, 'calib-01')
* find calibration pattern
find_caltab(Image, Caltab, 'caltab.descr', 3, 112, 5)

Example (C++)

// read calibration image
HImage Image("calib-01") ;
// find calibration pattern
HRegion Caltab = Image.FindCaltab("caltab.descr", 3,112, 5);

Example (HDevelop)

* read calibration image
read_image(Image, 'calib-01')
* find calibration pattern
find_caltab(Image, Caltab, 'caltab.descr', 3, 112, 5)

Example (HDevelop)

* read calibration image
read_image(Image, 'calib-01')
* find calibration pattern
find_caltab(Image, Caltab, 'caltab.descr', 3, 112, 5)

Result

find_caltabfind_caltabfind_caltabFindCaltabFindCaltab returns 2 (H_MSG_TRUE) if all parameter values are correct and an image region is found. The behavior in case of empty input (no image given) can be set via 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>) and the behavior in case of an empty result region via set_system(::'store_empty_region',<true/false>:)set_system("store_empty_region",<true/false>)set_system("store_empty_region",<true/false>)SetSystem("store_empty_region",<true/false>)SetSystem("store_empty_region",<true/false>). If necessary, an exception is raised.

Possible Predecessors

read_imageread_imageread_imageReadImageReadImage

Possible Successors

find_marks_and_posefind_marks_and_posefind_marks_and_poseFindMarksAndPoseFindMarksAndPose

See also

find_marks_and_posefind_marks_and_posefind_marks_and_poseFindMarksAndPoseFindMarksAndPose, camera_calibrationcamera_calibrationcamera_calibrationCameraCalibrationCameraCalibration, disp_caltabdisp_caltabdisp_caltabDispCaltabDispCaltab, sim_caltabsim_caltabsim_caltabSimCaltabSimCaltab, caltab_pointscaltab_pointscaltab_pointsCaltabPointsCaltabPoints, gen_caltabgen_caltabgen_caltabGenCaltabGenCaltab

Module

Foundation


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