【机器视觉】 dev_set_contour_style算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數
- 06. 結果
- 07. 附錄
01. 概述
dev_set_contour_style — 定義輪廓顯示填充樣式。
02. 簽名
dev_set_contour_style( : : Style : )
03. 描述
dev_set_contour_style 定義輪廓顯示的填充樣式。 樣式支持以下值:
‘stroke’:只顯示輪廓線。
‘fill’:填充輪廓包圍的區域。
‘stroke_and_fill’:顯示輪廓線并填充封閉區域。 特別是對于較大的線寬會有不同,請參閱 set_line_width。
對于所有樣式,都使用當前的繪圖顏色。
原文描述:
dev_set_contour_style defines the fill style of contour displays. The following values are supported for Style:
-
‘stroke’: Only the line of the contour gets displayed.
-
‘fill’: The area enclosed by the contour is filled.
-
‘stroke_and_fill’: The line of the contour gets displayed and the enclosed area filled. especially makes a difference for larger line widths, see set_line_width.
For all styles the current drawing color is used.
04. 注意
使用HDevelop的代碼導出功能,為該算子生成的代碼可能與相關的HALCON算子具有不同的行為。 有關將HDevelop圖形算子導出為不同編程語言的代碼的詳細說明,請參閱“HDevelop User’s Guide”中的 Code Export -> General Aspects of Code Generation -> Graphics Windows一章。
05. 參數
Style (input_control) string → (string)
Fill style for contour display.
Default value: ‘stroke’
List of values: ‘fill’, ‘stroke’, ‘stroke_and_fill’
HDevelop例程
程序示例
06. 結果
如果指定參數的值正確,則 dev_set_contour_style 返回 2 (H_MSG_TRUE)。 否則會引發異常并返回錯誤代碼。
07. 附錄
7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497
總結
以上是生活随笔為你收集整理的【机器视觉】 dev_set_contour_style算子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器视觉】 dev_set_color
- 下一篇: 【机器视觉】 dev_set_draw算