# Intelligent-Scissors
The Intelligent Scissors can be used to select an image region defined by strong color-changes at the edges.
You can learn more about it in papers:
- [Intelligent Scissors for Image Composition](https://courses.cs.washington.edu/courses/cse455/02wi/readings/mort-sigg95.pdf)
- [Interactive Segmentation with Intelligent Scissors](https://pdf.sciencedirectassets.com/272316/1-s2.0-S1077316900X00068/1-s2.0-S1077316998904804/main.pdf?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEBgaCXVzLWVhc3QtMSJHMEUCIAWCjFZL7PQFDvUmwMnc5US2%2FVONJ%2F35D8YSbksXWzmRAiEAjcUTMNaKtHM9Fyl7mnXrZyI%2F3cN%2BZ9dnjh9wLft7vzkqtAMIQRADGgwwNTkwMDM1NDY4NjUiDK3za45FaD20672xiCqRAzmaa28z8IzGVOPRTwsJ%2F8hbivchKVoxzXmSqzyEGgUFrLoAimHRtHnIPIuUQvTEl%2FE%2Boh%2FFmFWEUDxTsUu7ttIUX1VFrwQ03Jhcydpj20g5o%2FEsuYpo%2FCIyWq0FmJQMruOn%2BvLeQesm6ODeV%2Bq5jgZ3hPGal3t7QqfaAc8EQtgm2pj2NHtLFBBazJIulPgmKegrwjhTilWK%2Bq8zfEfM8DI8fQb%2BRexIJ3gr6EpIFtDA40SRx2jj7MX%2B3cAErSRHnn%2B2R3F%2FklE%2FwfCs3IJT3Ff%2BOgGMPNc2Smx5OdwdIPCWJnuPDD5AtqViVDK8JxwPLsUv6EQPkecuDz0f5rGl3KuRL2orR6LI6LC7uoNMT9rP1si8joGts9C0zU9vjTT1po9%2ByIxQjMU1An5QZD8VhTpZJ8qUaFfzF6yc%2F9hhybKdjC6ZCEmNBFSV48KSO14y0e4rOeEYWokbFy3759ULPb53xkoJa1NBzY7hJb4PotAtWUUhTyE%2BWuShRpEsCr7EJlgkd%2BBQMlstNeFwMy7OVo1IMKHk%2F%2FQFOusBLkihikZdSCk%2FpXCngTV%2BurqIPdtnBExW4Y%2FpVrUVk89D11TzMy368ugka1A2aLEJr02F1kEsyKNarhC3%2FuDcaJU%2BJLblbbOElrjs8IpOiGT976Iq90oXw6VM%2BNvJZsE53sTBcRIrV%2FSsQXcJzLqUr1KpJtSySTW8D9GmeHN7KDxjMwLDshJuE8J7EK5FTFahnOhhaCA34YWaC8PE3uZu%2BqJj0GRwaOOCNMudg9xAPcPklrmnfPTs6jNdeHyM0mcAefvVO%2BpWmoQRYJHGcGvm0CqYpWRgbTDMvDMXt8XR5JDZtKHAV%2FG9OpC6Zw%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20200422T074335Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAQ3PHCVTY7OHFSYOL%2F20200422%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=0f94e5c520d1726100ee62b9d40dc924c5fabc87c0cd1d88853e9a0e7a8e0267&hash=39309b5cca6bffdbc7dee114145cacc84838a91f8349d98390c5452a8e69a347&host=68042c943591013ac2b2430a89b270f6af2c76d8dfd086a07176afe7c76c2c61&pii=S1077316998904804&tid=spdf-bf7d7bea-c627-4dce-bec0-272fa3d00d20&sid=ee51f81c2575484c068ab8b9d830a36c9d73gxrqb&type=client)
<p align="center">
<img width="690" height="413" src="https://i.ibb.co/6XxjNSp/kakdu.png">
</p>
## Installation
`pip install intelligent-scissors`
## Usage
To use in your program
```python
from scissors.graph import PathFinder
from scissors.feature_extraction import StaticExtractor, DynamicExtractor, Scissors
image = ...
static_extractor = StaticExtractor()
static_cost = static_extractor(image)
dynamic_extractor = DynamicExtractor()
dynamic_features = dynamic_extractor(image)
finder = PathFinder(image.size, static_cost)
scissors = Scissors(static_cost, dynamic_features, finder)
seed_point = ...
free_point = ...
path = scissors.find_path(seed_point, free_point)
```
Also you can run a simple demo
```python
from scissors.gui import run_demo
file_name = 'image.png'
run_demo(file_name)
```
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
最新资源
- 单相PWM整流simulink仿真 输入电压220v有效值 输出电压500v纹波在1%以内 功率因数为1 电流THD<5% 开关频率20k
- dfig0522MATLAB simulink双馈风机包涵机侧和网侧控制
- 两相交错并联同步整流双向Buck Boost变器仿真 所有开关管均可实现ZVs软开关 Buck模式 输入:200-360VDC 额定280VDC 输出:140VDC 10A 开关频率:10kHz B
- jQuery实现左右切换全屏轮播图特效源码.zip
- 函数组件非受控组件实现评论
- 基于Vue+nodejs的电商管理系统.doc
- Java的jdk详细安装过程
- 双向buck-boost变器,dcdc变器 采用电压外环,电流内环控制 有三种工作模式,恒功率模式,恒电流模式,稳压模式,三个模式分别在不同电池
- jQuery+Slick插件实现游戏人物轮播展示切换特效源码.zip
- 760415995835652拓扑.zip
- 基于Springboot+Vue的宿舍管理系统论文
- ZYNQ 工程源代码 功能:实现PL和PS端通过ddr3的axi-dma读和写进行数据交互,PS端可通过gpio控制axi-dma读写模块的使能,PS端可通过axi-lite寄存器配置dma的读和写的
- 蚁群算法融合动态窗口法路径规划算法 多动态障碍物
- 基于Python的B站视频数据分析可视化系统论文
- 单级式三相光伏并网逆变器
- bsp_spi_395.c
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈