ClassesClassesClassesClasses | | | | Operators

apply_bead_inspection_modelT_apply_bead_inspection_modelApplyBeadInspectionModelapply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModel (Operator)

Name

apply_bead_inspection_modelT_apply_bead_inspection_modelApplyBeadInspectionModelapply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModel — Inspect beads in an image, as defined by the bead inspection model.

Signature

apply_bead_inspection_model(Image : LeftContour, RightContour, ErrorSegment : BeadInspectionModel : ErrorType)

Herror T_apply_bead_inspection_model(const Hobject Image, Hobject* LeftContour, Hobject* RightContour, Hobject* ErrorSegment, const Htuple BeadInspectionModel, Htuple* ErrorType)

Herror apply_bead_inspection_model(Hobject Image, Hobject* LeftContour, Hobject* RightContour, Hobject* ErrorSegment, const HTuple& BeadInspectionModel, HTuple* ErrorType)

void ApplyBeadInspectionModel(const HObject& Image, HObject* LeftContour, HObject* RightContour, HObject* ErrorSegment, const HTuple& BeadInspectionModel, HTuple* ErrorType)

HXLD HBeadInspectionModel::ApplyBeadInspectionModel(const HImage& Image, HXLD* RightContour, HXLD* ErrorSegment, HTuple* ErrorType) const

void HOperatorSetX.ApplyBeadInspectionModel(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*LeftContour, [out] IHUntypedObjectX*RightContour, [out] IHUntypedObjectX*ErrorSegment, [in] VARIANT BeadInspectionModel, [out] VARIANT* ErrorType)

IHXLDX* HBeadInspectionModelX.ApplyBeadInspectionModel(
[in] IHImageX* Image, [out] IHXLDX*RightContour, [out] IHXLDX*ErrorSegment, [out] VARIANT* ErrorType)

static void HOperatorSet.ApplyBeadInspectionModel(HObject image, out HObject leftContour, out HObject rightContour, out HObject errorSegment, HTuple beadInspectionModel, out HTuple errorType)

HXLD HBeadInspectionModel.ApplyBeadInspectionModel(HImage image, out HXLD rightContour, out HXLD errorSegment, out HTuple errorType)

Description

The operator apply_bead_inspection_modelapply_bead_inspection_modelApplyBeadInspectionModelapply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModel applies the bead inspection model BeadInspectionModelBeadInspectionModelBeadInspectionModelBeadInspectionModelBeadInspectionModelbeadInspectionModel to the input ImageImageImageImageImageimage. The output parameter ErrorSegmentErrorSegmentErrorSegmentErrorSegmentErrorSegmenterrorSegment indicates the positions of detected errors. The parameter ErrorTypeErrorTypeErrorTypeErrorTypeErrorTypeerrorType indicates the type of the detected errors. For more details on the possible errors, refer to the parameters' description and figures in create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModel. The value of 'ErrorType'"ErrorType""ErrorType""ErrorType""ErrorType""ErrorType" can be:

'no bead'"no bead""no bead""no bead""no bead""no bead":

No bead could be detected at this position.

'incorrect position'"incorrect position""incorrect position""incorrect position""incorrect position""incorrect position":

The center of the bead found at this position is further away from the contour than allowed by PositionTolerancePositionTolerancePositionTolerancePositionTolerancePositionTolerancepositionTolerance.

'too thin'"too thin""too thin""too thin""too thin""too thin":

The bead is thinner than allowed by TargetThicknessTargetThicknessTargetThicknessTargetThicknessTargetThicknesstargetThickness and ThicknessToleranceThicknessToleranceThicknessToleranceThicknessToleranceThicknessTolerancethicknessTolerance.

'too thick'"too thick""too thick""too thick""too thick""too thick":

The bead is thicker than allowed by TargetThicknessTargetThicknessTargetThicknessTargetThicknessTargetThicknesstargetThickness and ThicknessToleranceThicknessToleranceThicknessToleranceThicknessToleranceThicknessTolerancethicknessTolerance.

Values of the generic parameters set through create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModel or set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParam highly affect the inspection results of the same model. For more details on those parameters, please refer to create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModel.

Parallelization

This operator modifies the state of the following input parameter:

The value of this parameter may not be shared across multiple threads without external synchronization.

Parameters

ImageImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte / uint2)

Image to apply bead inspection on.

LeftContourLeftContourLeftContourLeftContourLeftContourleftContour (output_object)  xld-array objectHXLDHXLDHXLDArrayHXLDXHobject *

The detected left contour of the beads.

RightContourRightContourRightContourRightContourRightContourrightContour (output_object)  xld-array objectHXLDHXLDHXLDArrayHXLDXHobject *

The detected right contour of the beads.

ErrorSegmentErrorSegmentErrorSegmentErrorSegmentErrorSegmenterrorSegment (output_object)  xld-array objectHXLDHXLDHXLDArrayHXLDXHobject *

Detected error segments

BeadInspectionModelBeadInspectionModelBeadInspectionModelBeadInspectionModelBeadInspectionModelbeadInspectionModel (input_control, state is modified)  bead_inspection_model HBeadInspectionModel, HTupleHTupleHBeadInspectionModel, HTupleHBeadInspectionModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the bead inspection model to be used.

ErrorTypeErrorTypeErrorTypeErrorTypeErrorTypeerrorType (output_control)  string-array HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Types of detected errors.

Result

The operator apply_bead_inspection_modelapply_bead_inspection_modelApplyBeadInspectionModelapply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModel returns the value 2 (H_MSG_TRUE) if the given parameters are valid and within acceptable range. Otherwise, an exception will be raised.

Possible Predecessors

create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModel, set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParam

Possible Successors

set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParam, clear_bead_inspection_modelclear_bead_inspection_modelClearBeadInspectionModelclear_bead_inspection_modelClearBeadInspectionModelClearBeadInspectionModel

See also

get_bead_inspection_paramget_bead_inspection_paramGetBeadInspectionParamget_bead_inspection_paramGetBeadInspectionParamGetBeadInspectionParam, create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModel, set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParam

Module

2D Metrology


ClassesClassesClassesClasses | | | | Operators