Range of radius, sigma, amount, threshold...

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
lelldorin
Posts: 8
Joined: 2017-06-11T13:56:45-07:00
Authentication code: 1151

Range of radius, sigma, amount, threshold...

Post by lelldorin »

Hello all,

during testing imagemagick on Haiku (OS), i create a little GUI to store my learned knowledge. Here i use at the moment text fields for enter the numers for "radius", "sigma", "amond", "threshold"... I wanrt to use here sliders to set this numers, but i does not know the range for this widgets.

Iirc i read anythere that radius have -99.9 to +99.9.

Can you help me? I does not found any information in den docs about it.

Greetings Lelldorin
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Range of radius, sigma, amount, threshold...

Post by fmw42 »

You have not said what the operator is, but I suspect it is -unsharp. See http://www.imagemagick.org/script/comma ... hp#unsharp. I believe these are the limitations you want.

radius >= 0 (a negative radius make no sense)
sigma >= 0 (a negative sigma is like standard deviation makes no sense)
amount >= 0 (amount is like a gain, you may be able to use negative values, but you would get a weird result)
theshold between 0 and 1 (values are expressed as a fraction of the quantum range)

In Photoshop, they use sliders that may be limited to certain ranges, simply for convenience . But in ImageMagick, there are no sliders and one can usually put in an values.
lelldorin
Posts: 8
Joined: 2017-06-11T13:56:45-07:00
Authentication code: 1151

Re: Range of radius, sigma, amount, threshold...

Post by lelldorin »

Thanks fmw42,

it is correct that i does not said that operator, because i want to know it of all operators ;-). Is there any right lines for the operator settings like (factor, brightness...)?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Range of radius, sigma, amount, threshold...

Post by fmw42 »

lelldorin wrote: 2017-07-22T13:36:00-07:00 Thanks fmw42,

it is correct that i does not said that operator, because i want to know it of all operators ;-). Is there any right lines for the operator settings like (factor, brightness...)?
The -unsharp operator has no arguments called factor or brightness. Sorry, I do not understand your question. Each ImageMagick operator can accept any value, but only certain ones make sense. There are no standard values for all operator arguments.
lelldorin
Posts: 8
Joined: 2017-06-11T13:56:45-07:00
Authentication code: 1151

Re: Range of radius, sigma, amount, threshold...

Post by lelldorin »

Thanks for your reply
Post Reply