標籤:
《zw版·Halcon-delphi系列原創教程》航母艦載機·視覺定位標誌的識別代碼
航母艦載機機身上的黃黑圓圈的標誌是什麼意思,輻射?核動力?戰術核彈?
《百度百科》介紹如下
這是工業數字攝影測量的人工標誌
數字攝影測量(Basic concept of digital photogrammetry)是基於數字影像和攝影測量的基本原理,應用電腦技術、數字影像處理、影像匹配、模式識別 等多學科的理論與方法,提取所攝對像以數字方式表達的幾何與物理資訊的攝影測量學。
在殲-15上使用的這種標誌是殲-15在起降過程中,對其進行攝影測量時,這些標誌有助於對待測位置進行精確定位。
其實,Halcon內建的demo:saddle_points_sub_pix.hdev
就有類似的例子
下面是全部指令碼代碼,很簡單,才20行
ps,有興趣的網友,可以自己改為delphi、vc、vb版,
其實opencv版本的也不難,無論是模板匹配(cvMatchTemplate),還是輪廓相似性hu矩匹配( cvMatchShapes),都可以實現
不過,opencv版的代碼應該不低於200行,由此可見Halcon的彪悍
1 * This example program shows how to use saddle_points_sub_pix. 2 * 3 read_image (Image, ‘landmarks‘) 4 get_image_size (Image, Width, Height) 5 dev_close_window () 6 dev_open_window (0, 0, Width, Height, ‘black‘, WindowHandle) 7 * 8 * saddle_points_sub_pix works only on single channel images. Thus we have 9 * to convert the input image into a gray value image before using the operator.10 * 11 rgb1_to_gray (Image, GrayImage)12 * 13 Sigma := 1.514 Threshold := 1215 saddle_points_sub_pix (GrayImage, ‘facet‘, Sigma, Threshold, Row, Col)16 gen_cross_contour_xld (Crosses, Row, Col, 12, 0.785398)17 * 18 dev_display (GrayImage)19 dev_set_color (‘red‘)20 dev_display (Crosses)
【《zw版·Halcon-delphi系列原創教程》,網址,cnblogs.com/ziwang/】
《zw版·Halcon-delphi系列原創教程》航母艦載機·視覺定位標誌的識別代碼