当前位置:网站首页>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


边栏推荐
- SQL数据库→约束→设计→多表查询→事务
- JVM上篇:内存与垃圾回收篇九--运行时数据区-对象的实例化,内存布局与访问定位
- A math problem cost the chip giant $500million
- conda和pip环境常用命令
- I've heard the most self disciplined sentence: those I can't say are silent
- [CSAPP] Application of bit vectors | encoding and byte ordering
- Find the number of combinations (the strongest optimization)
- 李宏毅机器学习组队学习打卡活动day01---机器学习介绍
- 内部类与静态内部类区别及举例
- Idea remote debugging
猜你喜欢

mq设置过期时间、优先级、死信队列、延迟队列

Scientific Computing Library -- Matplotlib

Detailed description of polymorphism

JVM Part 1: memory and garbage collection part 7 -- runtime data area heap

SQL database → constraint → design → multi table query → transaction

Prime number screening (Ehrlich sieve method, interval sieve method, Euler sieve method)

JVM Part 1: memory and garbage collection part 9 - runtime data area - object instantiation, memory layout and access location

Alphabetic order problem
![[acwing] solution to the 61st weekly match](/img/31/765f4ce9f779e8093668e7606e0198.png)
[acwing] solution to the 61st weekly match

JVM Part 1: memory and garbage collection part 10 - runtime data area - direct memory
随机推荐
Could not autowire. No beans of ‘userMapper‘ type found.
Summary of knowledge points (I)
The difference between strlen and sizeof
Bean的生命周期&&依赖注入*依赖自动装配
6 zigzag conversion of leetcode
Use ngrok for intranet penetration
pytorch中几个难理解的方法整理--gather&squeeze&unsqueeze
Detailed description of polymorphism
Integrate SSM
Create datasource using Druid connection pool
JVM Part 1: memory and garbage collection part 12 -- stringtable
Detailed description of binary search tree
Solution and principle analysis of feign call missing request header
B1031 check ID card
整合SSM
JVM Part 1: memory and garbage collection part 8 - runtime data area - Method area
SSM framework integration
文件处理(IO)
Two dimensional array summation exercise
JVM上篇:内存与垃圾回收篇十一--执行引擎