Coder Social home page Coder Social logo

octu0 / blurry Goto Github PK

View Code? Open in Web Editor NEW
36.0 1.0 5.0 58.67 MB

fast, high peformance image processing library for golang

Home Page: https://pkg.go.dev/github.com/octu0/blurry

License: MIT License

Dockerfile 0.15% Makefile 0.30% C++ 48.27% Go 21.48% C 29.65% Shell 0.16%
image-processing blur sobel edge-detection halide image-filtering grayscale gamma canny-edge-detection canny

blurry's People

Contributors

octu0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blurry's Issues

Crash at usage of GaussianBlur with small images

Hello, I have been facing an issue when using method GaussianBlur.

If used on images smaller than (around) 230 px of width the library will crash systematically with error like following:

Error: Output buffer gaussianblur is accessed at -384, which is before the min (0) in dimension 1
SIGABRT: abort
PC=0x7f896a72000b m=5 sigcode=18446744073709551610
signal arrived during cgo execution

goroutine 53 [syscall]:
runtime.cgocall(0xeaf440, 0xc00045b550)
        /usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc00045b528 sp=0xc00045b4f0 pc=0x41201c
github.com/octu0/blurry._Cfunc_libgaussianblur(0xc0002b6000, 0x27, 0x67, 0x43fa0000, 0xc000362000)
        _cgo_gotypes.go:651 +0x4c fp=0xc00045b550 sp=0xc00045b528 pc=0xe383ec
github.com/octu0/blurry.Gaussianblur(0xc000490300, 0x407f400000000000)
        /home/vagrant/go/pkg/mod/github.com/octu0/[email protected]/gaussianblur.go:48 +0x9d fp=0xc00045b5a0 sp=0xc00045b550 pc=0xe3873d

Increasing the image width at 240px "solves" the issue. Seems that Boxblur is impacted too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.