在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
《zw版·Halcon-delphi系列原创教程》 Halcon分类函数009,Measure,测量函数
【示例】 说明 函数: procedure AddNoiseWhiteContourXld( const Contours: IHUntypedObjectX; out NoisyContours: IHUntypedObjectX; NumRegrPoints: OleVariant; Amp: OleVariant); 简化后为: ** AddNoiseWhiteContourXld( Contours: X; out NoisyContours: X; NumRegrPoints, Amp);
1 ** AddMetrologyObjectCircleMeasure( MetrologyHandle, Row, Column, Radius, MeasureLength1, MeasureLength2, MeasureSigma, MeasureThreshold, GenParamName, GenParamValue, out Index); 2 说明, add_metrology_object_circle_measure ( : : MetrologyHandle, Row,Column, Radius, MeasureLength1, MeasureLength2, MeasureSigma,MeasureThreshold, GenParamName, GenParamValue : Index ) 3 4 ** AddMetrologyObjectEllipseMeasure( MetrologyHandle, Row, Column, Phi, Radius1, Radius2, MeasureLength1, MeasureLength2, MeasureSigma, MeasureThreshold, GenParamName, GenParamValue, out Index); 5 说明, 增加一个椭圆或弧形物体,到测量模型当中 6 7 ** AddMetrologyObjectLineMeasure( MetrologyHandle, RowBegin, ColumnBegin, RowEnd, ColumnEnd, MeasureLength1, MeasureLength2, MeasureSigma, MeasureThreshold, GenParamName, GenParamValue, out Index); 8 说明, 增加一个线型物体,到测量模型当中 9 10 ** AddMetrologyObjectRectangle2Measure( MetrologyHandle, Row, Column, Phi, Length1, Length2, MeasureLength1, MeasureLength2, MeasureSigma, MeasureThreshold, GenParamName, GenParamValue, out Index); 11 说明, 增加一个矩形物体,到测量模型当中 12 13 ** CloseAllMeasures; 14 说明, close_all_measures,清除所有测试对象。 15 16 ** CloseMeasure( MeasureHandle); 17 说明, close_measure,清除一个测试对象。 18 19 ** DeserializeMeasure( SerializedItemHandle, out MeasureHandle); 20 说明, 测量数据转换 21 22 ** FilterKalman( Dimension, Model, Measurement, PredictionIn, out PredictionOut, out Estimate); 23 说明, filter_kalman,借助Kalman(卡尔曼)滤波器估测系统的当前状态。 24 25 ** FuzzyMeasurePairing( Image: X; MeasureHandle, Sigma, AmpThresh, FuzzyThresh, Transition, Pairing, NumPairs, out RowEdgeFirst, out ColumnEdgeFirst, out AmplitudeFirst, out RowEdgeSecond, out ColumnEdgeSecond, out AmplitudeSecond, out RowPairCenter, out ColumnPairCenter, out FuzzyScore, out IntraDistance); 26 说明, fuzzy_measure_pairing,提取与矩形或环状弧垂直的直线边缘。 27 28 ** FuzzyMeasurePairs( Image: X; MeasureHandle, Sigma, AmpThresh, FuzzyThresh, Transition, out RowEdgeFirst, out ColumnEdgeFirst, out AmplitudeFirst, out RowEdgeSecond, out ColumnEdgeSecond, out AmplitudeSecond, out RowEdgeCenter, out ColumnEdgeCenter, out FuzzyScore, out IntraDistance, out InterDistance); 29 30 ** FuzzyMeasurePos( Image: X; MeasureHandle, Sigma, AmpThresh, FuzzyThresh, Transition, out RowEdge, out ColumnEdge, out Amplitude, out FuzzyScore, out Distance); 31 32 ** GenMeasureArc( CenterRow, CenterCol, Radius, AngleStart, AngleExtent, AnnulusRadius, Width, Height, Interpolation, out MeasureHandle); 33 34 ** GenMeasureRectangle2( Row, Column, Phi, Length1, Length2, Width, Height, Interpolation, out MeasureHandle); 35 36 ** GetMetrologyObjectMeasures( out Contour: X; MetrologyHandle, Indices, Transition, out Row, out Column); 37 说明, 获取计量对象均值参数 38 39 ** MeasurePairs( Image: X; MeasureHandle, Sigma, Threshold, Transition, Select, out RowEdgeFirst, out ColumnEdgeFirst, out AmplitudeFirst, out RowEdgeSecond, out ColumnEdgeSecond, out AmplitudeSecond, out IntraDistance, out InterDistance); 40 说明, measure_pairs,提取与矩形或环状弧垂直的直线边缘。 41 42 ** MeasurePos( Image: X; MeasureHandle, Sigma, Threshold, Transition, Select, out RowEdge, out ColumnEdge, out Amplitude, out Distance); 43 44 ** MeasureProfileSheetOfLight( ProfileImage: X; SheetOfLightModelID, MovementPose); 45 46 ** MeasureProjection( Image: X; MeasureHandle, out GrayValues); 47 说明, measure_projection,提取垂直于一个矩形或环状弧的灰度值轮廓,。 48 49 ** MeasureThresh( Image: X; MeasureHandle, Sigma, Threshold, Select, out RowThresh, out ColumnThresh, out Distance); 50 说明, measure_thresh,提取沿着一个矩形或环状弧,特殊灰度值的点。 51 52 ** ReadKalman( FileName, out Dimension, out Model, out Measurement, out Prediction); 53 说明, read_kalman,读取一个卡尔曼滤波器的 54 说明文件。 55 56 ** ReadMeasure( FileName, out MeasureHandle); 57 说明, 读取矩阵测量 58 59 ** ResetFuzzyMeasure( MeasureHandle, SetType); 60 说明, reset_fuzzy_measure,重置一个模糊元函数。 61 62 ** SensorKalman( Dimension, MeasurementIn, out MeasurementOut); 63 说明, sensor_kalman,卡尔曼滤波器测量值的交互式输入。 64 65 ** SerializeMeasure( MeasureHandle, out SerializedItemHandle); 66 说明, 测量数据序列化 67 68 ** SetFuzzyMeasure( MeasureHandle, SetType, Function_); 69 说明, set_fuzzy_measure,指定一个模糊元函数。 70 71 ** SetFuzzyMeasureNormPair( MeasureHandle, PairSize, SetType, Function_); 72 73 ** TranslateMeasure( MeasureHandle, Row, Column); 74 说明, translate_measure,转化(解释)一个测试对象。 75 76 ** UpdateKalman( FileName, DimensionIn, ModelIn, MeasurementIn, out DimensionOut, out ModelOut, out MeasurementOut); 77 说明, update_kalman,读取一个卡尔曼滤波器的更新文件。 78 79 ** WriteMeasure( MeasureHandle, FileName); 80 说明, 保存计量数据
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论