日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【机器视觉】 dev_set_colored算子

發布時間:2024/4/24 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【机器视觉】 dev_set_colored算子 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

00. 目錄

文章目錄

    • 00. 目錄
    • 01. 概述
    • 02. 簽名
    • 03. 描述
    • 04. 注意
    • 05. 參數
    • 06. 結果
    • 07. 附錄

01. 概述

dev_set_colored - 設置多個輸出顏色。

02. 簽名

dev_set_colored( : : NumColors : )

03. 描述

dev_set_colored可以使用一組NumColors預定義顏色以不同的顏色在圖形窗口中顯示region,XLD和其他geometrical對象的元組。 通過算子query_colored可以查詢NumColors的有效值。

有關更多信息,請參閱算子set_colored的說明。 但是,與set_colored算子相反,此算子的顏色設置也用于之后打開的所有新圖形窗口。

這些顏色設置會保持有效,直到調用dev_set_color或dev_set_colored,或直到顏色設置交互式修改為止。

原文描述

dev_set_colored allows to display tuples of regions, XLDs, and other geometrical objects in the graphics windows in different colors using a set of NumColors predefined colors. Valid values for NumColors can be queried with the operator query_colored.

For more information see the description of the operator set_colored. However, in contrast to that operator the color setting is also used for all new graphics windows that are opened afterwards.

These color settings remain valid until dev_set_color or dev_set_colored is called or until the color setting are modified interactively.

04. 注意

使用HDevelop的代碼導出功能,為該算子生成的代碼可能與相關的HALCON算子具有不同的行為。 有關將HDevelop圖形算子導出為不同編程語言的代碼的詳細說明,請參閱“HDevelop User’s Guide”中的 Code Export -> General Aspects of Code Generation -> Graphics Windows一章。

05. 參數

NumColors (input_control) integer → (integer)
  Number of output colors.
  Default value: 6
  List of values: 3, 6, 12

HDevelop例程

label_word_process_mlp.hdev Read a best-before label using a MLP-based OCR classifier and a lexicon to improve results
gen_checker_region.hdev Create a chessboard region
display_operators.hdev Visualize results
dev_display.hdev Display image objects in graphics windows in HDevelop
dev_disp_text.hdev Explain the usage of dev_disp_text and its generic parameters

程序示例

read_image(Image,'monkey') threshold(Image,Region,128,255) dev_set_colored(6) connection(Region,Regions)

06. 結果

如果指定參數的值正確,則dev_set_colored返回2(H_MSG_TRUE)。 否則會引發異常并返回錯誤代碼。

07. 附錄

7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497

總結

以上是生活随笔為你收集整理的【机器视觉】 dev_set_colored算子的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。