Halcon Study Notes-(3) Two-dimensional measurement after Halcon calibration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.