《zw版·Halcon-delphi系列原創教程》航母艦載機·視覺定位標誌的識別代碼

來源:互聯網
上載者:User

標籤:

《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系列原創教程》航母艦載機·視覺定位標誌的識別代碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.