当前位置:网站首页>Thresholdtypes of opencvsharp threshold segmentation threshold function
Thresholdtypes of opencvsharp threshold segmentation threshold function
2022-06-21 22:09:00 【Jin Zenghui】
opencv Threshold segmentation threshold function ThresholdTypes
enum ThresholdTypes {
THRESH_BINARY = 0, //!< \f[\texttt{dst} (x,y) = \fork{\texttt{maxval}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{otherwise}\f]
THRESH_BINARY_INV = 1, //!< \f[\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{maxval}}{otherwise}\f]
THRESH_TRUNC = 2, //!< \f[\texttt{dst} (x,y) = \fork{\texttt{threshold}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}\f]
THRESH_TOZERO = 3, //!< \f[\texttt{dst} (x,y) = \fork{\texttt{src}(x,y)}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{otherwise}\f]
THRESH_TOZERO_INV = 4, //!< \f[\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}\f]
THRESH_MASK = 7,
THRESH_OTSU = 8, //!< flag, use Otsu algorithm to choose the optimal threshold value
THRESH_TRIANGLE = 16 //!< flag, use Triangle algorithm to choose the optimal threshold value
};
Threshold type :
THRESH_BINARY: The threshold value is set to maxVal, Set other values to zero
THRESH_BINARY_INV: Set the threshold value to zero , Other values are set to maxVal
THRESH_TRUNC: The threshold value is set as the threshold value , Other values remain unchanged
THRESH_TOZERO: The value of crossing the threshold remains unchanged , Set other values to zero
THRESH_TOZERO_INV: Set the threshold value to zero , Other values remain unchanged
Diagram of threshold type 
边栏推荐
- Huawei Hongmeng development lesson 3
- 央企国电集团上海翔伟机电和中外海达成战略合作,捐赠2亿
- Is the security of the securities account given by digging money safe? Can I open an account?
- 龙蜥社区成立云原生SIG,引入3大核心技术
- 洛谷P5440 【XR-2】奇迹 题解
- Worthington脱氧核糖核酸酶I解决方案
- Revenue and profit "ebb and flow", water drops turn in pain
- New energy industry commercial procurement collaboration system: enable new energy industry procurement business and enhance industrial collaboration
- Worthington弹性蛋白酶背景和特异性介绍
- Tkinter drawing component (29) -- Radio Group Control
猜你喜欢

Enterprise data leakage prevention solution sharing

中国工程院院士郑纬民:我对中国在下一个 IT 时代拥有一席之地很乐观

Build Eureka server cluster

What are the conditions for MySQL to create tables

从-1开始实现一个中间件

Does the whole house smart home brand "zhiting technology" have an experience center?

大型语言模型教会智能体进化,OpenAI这项研究揭示了二者的互补关系

solidity实现智能合约教程(4)-ERC1155合约

电子招标采购商城系统:优化传统采购业务,提速企业数字化升级

What websites or software are available to translate English literature into Chinese?
随机推荐
Self made C compiler
What is gcamp6f? Calcium ion imaging technology.
北京 加速生态建设 迈动互联与摩尔线程完成产品兼容互认证
AWS CloudWatch
大型语言模型教会智能体进化,OpenAI这项研究揭示了二者的互补关系
Summary of internship interview experience of more than ten failed internship positions
三维度八视图
从-1开始实现一个中间件
Go language unit test simulates service request and interface return
提升方法(下)提升树
搭建Eureka-Server集群
同样是做自媒体,为什么有的人能月入过万,你只能月入几块?
I2C [2] - why does IIC need to use open drain output and pull-up resistor bug
DateGridView首列排序
Lifting method (Part 2) lifting tree
Spark 离线开发框架设计与实现
How to associate the QR code of wechat applet to realize the integration of two codes
Barbell strategy -- extreme stability and extreme waves
#16迭代器经典案例
基于OpenCVSharp的001新建工程项目