Tweak parameters

This commit is contained in:
esimov
2018-01-14 14:49:48 +02:00
parent 3981dbe50c
commit 97d000af14
4 changed files with 15 additions and 16 deletions

View File

@@ -22,7 +22,8 @@ func (p *Processor) Process(file io.Reader, output string) (*os.File, error) {
return nil, err
}
img := imgToNRGBA(src)
fq, err := Process(img, output, p.SobelThreshold, p.BlurRadius)
sobel := SobelFilter(img, float64(p.SobelThreshold))
fq, err := Process(img, sobel, output, p.SobelThreshold, p.BlurRadius)
if err != nil {
return nil, err
}