mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 09:20:29 -07:00
Added interface and test for sharpen
This commit is contained in:
parent
13ef72dc03
commit
99abaf0752
5 changed files with 57 additions and 3 deletions
10
options.go
10
options.go
|
|
@ -100,6 +100,15 @@ type GaussianBlur struct {
|
|||
MinAmpl float64
|
||||
}
|
||||
|
||||
type Sharpen struct {
|
||||
Radius int
|
||||
X1 float64
|
||||
Y2 float64
|
||||
Y3 float64
|
||||
M1 float64
|
||||
M2 float64
|
||||
}
|
||||
|
||||
// Supported image transformation options
|
||||
type Options struct {
|
||||
Height int
|
||||
|
|
@ -129,4 +138,5 @@ type Options struct {
|
|||
Interpolator Interpolator
|
||||
Interpretation Interpretation
|
||||
GaussianBlur GaussianBlur
|
||||
Sharpen Sharpen
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue