当前位置:网站首页>Threshold segmentation based on RGB image and threshold adjustment by sliding
Threshold segmentation based on RGB image and threshold adjustment by sliding
2022-07-07 17:41:00 【AI cannon fodder】
Catalog
1. Overview of color segmentation
1. Overview of color segmentation
Threshold segmentation of image color , We often don't know how appropriate the threshold is , It needs constant testing , In response to this problem , Slider with threshold set , Thus, you can quickly find the threshold by sliding the slider .
The most common threshold segmentation is R、G、B Threshold segmentation , That is, to judge the pixel R、G、B Whether the value is greater than or less than a certain threshold , The points that meet the conditions are retained or deleted .
The algorithm of threshold segmentation in this code is to traverse each pixel of the image directly by row and column , Judge whether the value of the pixel meets the segmentation conditions , Meet the requirement of setting the point to black to achieve the effect of segmentation . The code is threshold 、 R、G、B、 And mode are set with slider , The modes are 4 Kind of :
0----RGB R、G、B Points with values greater than the threshold are set to black
1----|G-R| G-R The absolute value of the value is less than threshod_value The point of is set to black
2----|2G-R-B| 2G-R-B The absolute value of value is greater than threshod_value The point of is set to black
3----G/R
边栏推荐
猜你喜欢
网络攻防复习篇
什么是敏捷测试
【分布式理论】(二)分布式存储
第3章业务功能开发(用户登录)
状态模式 - Unity(有限状态机)
ViewSwitcher的功能和用法
第3章业务功能开发(用户访问项目)
Ansible learning summary (9) -- ansible loop, condition judgment, trigger, processing failure and other task control use summary
Ansible 学习总结(9)—— Ansible 循环、条件判断、触发器、处理失败等任务控制使用总结
redis主从、哨兵主备切换搭建一步一步图解实现
随机推荐
imageswitcher的功能和用法
Pytorch中自制数据集进行Dataset重写
第3章业务功能开发(实现记住账号密码)
Devops' operational and commercial benefits Guide
【重新理解通信模型】Reactor 模式在 Redis 和 Kafka 中的应用
深入浅出图解CNN-卷积神经网络
DatePickerDialog and trimepickerdialog
【网络攻防原理与技术】第6章:特洛伊木马
数字化转型的主要工作
Robot engineering lifelong learning and work plan-2022-
自动化测试:Robot FrameWork框架大家都想知道的实用技巧
Simple loading animation
Dateticket and timeticket, functions and usage of date and time selectors
Numberpick的功能和用法
本周小贴士#140:常量:安全习语
专精特新软件开发类企业实力指数发布,麒麟信安荣誉登榜
Vscode three configuration files about C language
什么是敏捷测试
使用popupwindow創建对话框风格的窗口
运行yolo v5-5.0版本报错找不到SPPF错误,进行解决