1.gen_measure_rectangle2 (:: Row, Column, Phi, Length1, Length2, Width, Height,interpolation:measurehandle)
Produces a measurement rectangle handle, the control input is the coordinate center of the measurement rectangle range, the rectangle long axis and the horizontal direction angle range The Radian, the rectangle side length half, the measurement picture width height, the output is the measurement handle.
2.measure_pairs (Image:: Measurehandle, Sigma, Threshold, Transition, Select:rowedgefirst, Columnedgefirst, Amplitudefirst, Rowedgesecond, Columnedgesecond,amplitudesecond, Intradistance, interdistance)
The vertical line of the rectangular spindle is extracted and the row and column coordinate values of the first and second edge points are returned, and the edge classification is determined by the transition gray difference. Control output Also, the distance between an edge pair, and the distance of a class of edges to successive edges.
3.image_points_to_world_plane (:: Cameraparam, Worldpose, Rows, Cols, scale:x, Y)
Converts pixel coordinates to x, y coordinates in the z=0 plane in the world coordinate system. Control input is, in-camera parameters, calibrated world coordinate posture, unit of measure, pixel coordinate, output is x, y coordinate of z=0 plane.
4.DISTANCE_PP (:: Row1, Column1, Row2, column2:distance)
Use the two-point distance formula to calculate the distance between two points.
Note usage: distance_pp (X1[0:4], Y1[0:4], X1[1:5], y1[1:5], distance)
5.tuple_mean (:: Tuple:mean) returns the average of the array.
6.tuple_deviation (:: tuple:deviation) returns the standard deviation of all elements in the array.
Halcon Study Notes-(3) Two-dimensional measurement after Halcon calibration