当前位置:网站首页>Graph cuts learning
Graph cuts learning
2022-07-27 05:26:00 【Colored sponge】
Want to put the picture first , This is drawn after studying , Although the effect is not very good .
Here is how I transformed the original image into HSV and RGB passageway , Then we did it for each single channel Graph Cuts.

1.Graph Cuts It is a method of image segmentation , This method solves the energy function by using the form of graph . Determining the energy function can give corresponding weights to the edges of the graph , Thus, the energy function can be completely converted into a S/T chart , In using the properties of graph to solve the maximum flow of graph / Minimum cut , Find the global optimum, that is, the global energy is minimum .
2.graph cut Is based on graph( graph theory ) Various segmentation algorithms , Such as NCut, Minimum cut ,RatioCut, Graph cut, etc ,graph cuts Is graph cut , Used to solve problems based on MRF A method of the energy equation of .
shortcoming :
The result of the second kind of segmentation is that the global energy function is the smallest , Global optimal solution , Multi class problems cannot be optimized , It can only be a local optimal solution ;
Processing images with obvious differences in pixel values has advantages , High contrast images ,
The segmentation effect is poor when the processed image contains noise or occlusion , Easy to get wrong segmentation ;
You need to manually mark some front and rear pixels , There is human intervention ;
Initialize the foreground and background pixels Different points will lead to different degrees of the final segmentation effect , graphcuts The algorithm is very sensitive to user interaction ;
When the image contains complex background , More user interaction is needed , Use the brush / A brush Mark more backgrounds And foreground pixels .
The code download :GitHub - DamonZCR/GraphCut: Use the maximum flow and minimum cut to realize image segmentation


边栏推荐
- redis集群
- Derivation and explanation of PBR physical illumination calculation formula
- Database design - relational data theory (ultra detailed)
- JVM上篇:内存与垃圾回收篇八--运行时数据区-方法区
- Notes Series docker installation PostgreSQL 14
- LeetCode刷题之322 Coin Change
- JVM Part 1: memory and garbage collection part 3 - runtime data area - overview and threads
- Differences and examples between internal classes and static internal classes
- JVM上篇:内存与垃圾回收篇十--运行时数据区-直接内存
- Li Kou achieved the second largest result
猜你喜欢

JVM Part 1: memory and garbage collection -- runtime data area 4 - program counter

Sparse array → saving and continuation of Gobang

JVM上篇:内存与垃圾回收篇十四--垃圾回收器

File processing (IO)

JVM上篇:内存与垃圾回收篇九--运行时数据区-对象的实例化,内存布局与访问定位

pytorch 数据类型 和 numpy 数据 相互转化

Acticiti中startProcessInstanceByKey方法在variable表中的如何存储

ERROR! MySQL is not running, but PID file exists

JVM Part 1: memory and garbage collection part 14 -- garbage collector

实用小工具: Kotlin 代码片段
随机推荐
MQ FAQ
Rolling Division
BIO、NIO、AIO区别
2021 OWASP top 5: security configuration error
Utility gadget: kotlin code snippet
JVM Part 1: memory and garbage collection part 6 -- runtime data area local method & local method stack
ERP system brand
idea远程调试debug
Mysql速成
Niuke sword refers to the path in the offer--jz12 matrix
Idea remote debugging
李宏毅机器学习组队学习打卡活动day05---网络设计的技巧
Student management system
Card drawing program simulation
LocalDateTime和ZonedDateTime
Demo of throttling function -- regular expression matching
B1025 反转链表*******
Could not autowire. No beans of ‘userMapper‘ type found.
redis发布订阅模式
numpy 数据类型转化