The ZW edition · Halcon-delphi Series Original Tutorial "Carrier aircraft and visual positioning symbol identification code
What does the sign of the yellow-black circle on the carrier-borne machine mean, radiation? Nuclear power? Tactical Nuke?
"Baidu Encyclopedia" introduced as follows
It's a manual sign for industrial digital photogrammetry.
Digital Photogrammetry (basic concept of digital photogrammetry) is a multi-disciplinary theory and method, which is based on the basic principles of image and photogrammetry, using computer technology, digital image processing, image matching, pattern recognition, etc. To extract photographic measurements of geometric and physical information expressed in digital form.
The mark used on the fighter -15 is the -15 in the takeoff and landing process, when they are photographed, these signs will help to treat the location of the position for accurate positioning.
In fact, Halcon built-in Demo:saddle_points_sub_pix.hdev
There's a similar example.
Here is the full script code, very simple, only 20 lines
PS, interested users, you can change their own Delphi, VC, VB version,
In fact, the OPENCV version is not difficult, whether it is template matching (cvmatchtemplate), or contour similarity hu moment Matching (cvmatchshapes), can be achieved
However, the OPENCV version of the code should be no less than 200 lines, this shows Halcon
1*This example program shows how to use Saddle_points_sub_pix.2*3Read_image (Image,'Landmarks')4 get_image_size (image, Width, Height)5 Dev_close_window ()6Dev_open_window (0,0, Width, Height,'Black', WindowHandle)7*8*Saddle_points_sub_pix works single channel images. Thus we have9* To convert the input image into a gray value image beforeusingTheoperator.Ten* One Rgb1_to_gray (Image, Grayimage) A* -Sigma: =1.5 -Threshold: = A theSaddle_points_sub_pix (Grayimage,'facet', Sigma, Threshold, Row, Col) -GEN_CROSS_CONTOUR_XLD (Crosses, Row, Col, A,0.785398) -* - Dev_display (grayimage) +Dev_set_color ('Red') -Dev_display (crosses)
"ZW Edition · Halcon-delphi series of original tutorials, website, cnblogs.com/ziwang/"
The ZW edition · Halcon-delphi Series Original Tutorial "Carrier aircraft and visual positioning symbol identification code