Oink
Nodes

Sharpen

Sharpen: unsharp mask — the image plus amount times its difference from a blur of it (size, filter, quality as Blur).

raw .md

Sharpen: unsharp mask — the image plus amount times its difference from a blur of it (size, filter, quality as Blur). minimum (0) and maximum (1) stop the sharpening pushing values past them.

NodeSharpen
Type idOC_N_sharpen
MenuFilter › Sharpen
Nuke classSharpen
Codeopencomp_core/nodes/filter/sharpen.py

Sharpen properties

Inputs and outputs

PortNameType
input 0Imageimage
input 1maskimage
output 0Imageimage

Knobs

Panel tab Sharpen, in panel order.

KnobLabelTypeDefaultRange / valuesNuke knobDescription
channelschannelsmenurgbrgba, rgb, alpha, all, noneLayer the op applies to: rgb, rgba, alpha, all, none, <layer> or <layer>.<ch>
minimumminimumfloat0-1 to 1minimum
maximummaximumfloat10 to 2maximum
amountamountfloat10 to 10amount
sizesizewh ×21, 10 to 100size
filterfiltermenuGAUSSIANBOX (box), TRIANGLE (triangle), QUADRATIC (quadratic), GAUSSIAN (gaussian)filter
qualityqualityfloat151 to 100 (integer)quality
cropcrop to formatbooltruecrop
mask_channelmaskmenunonenone, rgba.alpha, rgba.red, rgba.green, rgba.blueMask channel, e.g. rgba.alpha (none = no mask)
injectinjectboolfalseCopy the mask into mask.a for nodes downstream
invert_maskinvertboolfalseinvert_mask
fringefringeboolfalseOnly apply the effect at the edges of the mask
mixmixfloat10 to 1mix

Other knobs (Python, .nk and the assistant; not on the panel)

KnobLabelTypeDefaultRange / valuesNuke knobDescription
gl_colorViewer Controls Colorfloat ×30, 0, 00 to 1
postage_stamp_frameStatic Frameint1-2147483648 to 2147483647
lifetimeStartLifetime Startint0-2147483648 to 2147483647
lifetimeEndLifetime Endint100-2147483648 to 2147483647
useLifetimeUse Lifetimebooleanfalse
cachedCachedbooleanfalse
bookmarkBookmarkbooleanfalse
dope_sheetDope Sheetbooleanfalse
clone_groupClone Groupstring
link_sourceLink Sourcestring
link_overridesLink Overridesstring
split_viewsSplit Viewsstring
unpremult(Un)premult byenumnonenone, rgba.alpha
invert_unpremultinvertbooleanfalse(Un)premultiply by 1 - alpha

Nuke equivalent

Imports from and exports to Nuke's Sharpen. The standard Nuke mask knobs (channels, mask, invert, (un)premult, mix) are mapped too.

Nuke knobs not in this list import as a knob of the same name, or are kept unchanged for export. See .nk import.

Examples

Open these from Help › Examples…, or from the ? menu in this node's Properties panel.

  • Sharpen (examples/filter/sharpen.oink): Sharpen subtracts a blurred copy to boost detail; amount scales the effect.

On this page