https://github.com/jeasonstudio/lowpoly2d
LowPoly2D for Golang go 语言2d低面设计算法实现
https://github.com/jeasonstudio/lowpoly2d
Last synced: 8 months ago
JSON representation
LowPoly2D for Golang go 语言2d低面设计算法实现
- Host: GitHub
- URL: https://github.com/jeasonstudio/lowpoly2d
- Owner: jeasonstudio
- License: mit
- Created: 2017-02-08T01:52:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T04:50:03.000Z (over 8 years ago)
- Last Synced: 2024-12-29T03:49:53.307Z (10 months ago)
- Language: Go
- Size: 6.66 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LowPoly2D
LowPoly2D for Golang go 语言2d低面设计算法实现暂时为 Sobel 边缘检测:
### Results
sourceImg | tagImg
---|---
 | 
 | 
 | ### Usage
```bash
$ go get github.com/jeasonstudio/GaussianBlur
$ go get github.com/jeasonstudio/LowPoly2D
``````go
// SobelEdge 计算图像边缘,使用八方向无阶的 Sobel 算子
// soursourceImg, tagImg 为原图像、目标图像的相对地址
// lowSigema,highSigema 两个阈值,低阈值和高阈值,可调整 范围 0~65535
// p,q nil,暂时无用
func SobelEdge(sourceImg, tagImg string, lowSigema, highSigema uint16, p, q int)
``````go
func main() {
GaussianBlur.GBlurInit("fj.jpg", "zct.jpg", 5, 500)
SobelEdge.SobelEdge("zct.jpg", "tag.jpg", 20000, 57000, nil, nil)
}
```