MCPcopy
hub / github.com/nodeca/pica / resizeAndUnsharp

Method resizeAndUnsharp

src/mathlib.ts:62–77  ·  view source on GitHub ↗
(options: MathResizeAndUnsharpOptions)

Source from the content-addressed store, hash-verified

60 }
61
62 resizeAndUnsharp (options: MathResizeAndUnsharpOptions): Uint8Array {
63 const result = this.resize(options)
64
65 if (options.unsharpAmount) {
66 this.unsharp_mask(
67 result,
68 options.toWidth,
69 options.toHeight,
70 options.unsharpAmount,
71 options.unsharpRadius,
72 options.unsharpThreshold
73 )
74 }
75
76 return result
77 }
78}

Callers 3

resize_mathFunction · 0.80
__invokeResizeMethod · 0.80
resizeBufferMethod · 0.80

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected