Search found 3 matches

by Bery0za
2017-12-23T12:37:55-07:00
Forum: Magick.NET
Topic: Set "compose:clamp" to "off"
Replies: 5
Views: 15616

Re: Set "compose:clamp" to "off"

So here we go (click for full res)

Original
https://thumb.ibb.co/keGRvR/orig.jpg

Gaussian blur and subtracting, R = 2, sigma ≈ 1/3 * R
https://thumb.ibb.co/dfHYaR/hpblur.jpg

Convolution, R = 2, Gain = 1
https://thumb.ibb.co/b7r4h6/hpconvolve1.jpg

Convolution, R = 2, Gain = 5
https://thumb ...
by Bery0za
2017-12-23T10:39:44-07:00
Forum: Magick.NET
Topic: Set "compose:clamp" to "off"
Replies: 5
Views: 15616

Re: Set "compose:clamp" to "off"

Thanks for your advice. HDRI version of Magick.NET realy solves the problem. Clamping can be set to off with SetArtifact method of MagickImage class. Final result:
public MagickImage HighPass(MagickImage src, double radius = 2)
{
MagickImage dst = (MagickImage)src.Clone();

dst.GaussianBlur ...
by Bery0za
2017-12-22T01:12:59-07:00
Forum: Magick.NET
Topic: Set "compose:clamp" to "off"
Replies: 5
Views: 15616

Set "compose:clamp" to "off"

Hey,

I'm trying to implement photoshop-like high-pass filter. One of the steps is subtracting blurred image from it`s original, but composing operation should keep values below zero. In ImageMagick this can be done with "-set option:compose:clamp=off". How can I do this in Magick.NET?

public ...