unsharp parameters: GIMP -> IM
Posted: 2013-07-12T11:58:27-07:00
Does anyone know how to translate the parameters from GIMP'S Unsharp Mask to IM's -unsharp operation?
IM's unsharp operation has the parameters radius, sigma, gain, and threshold.
http://www.imagemagick.org/script/comma ... hp#unsharp
radius (default=0 to calculate based on sigma, rarely needs to be set)
sigma
gain (default=1.0)
threshold (default=0.05)
GIMP's unsharp has the parameters radius, amount, and threshold.
radius = 0.1-500.0 (default=5.0)
amount = 0.00-10.00 (default=0.50)
threshold = 0-255 (default=0)
Threshold seems obvious, simply divide by 255. But the others?
First I found
http://www.imagemagick.org/Usage/resize/#resize_unsharp
which suggested that
im_radius = gimp_radius
im_sigma = gimp_amount
This doesn't appear to be correct.
Then I found
http://www.imagemagick.org/Usage/blur/#unsharp
which states that
im_sigma = gimp_radius + 1 (or maybe sqrt(gimp_radius))
im_gain = gimp_amount
This appears closer, but still not correct.
I experimented a little but didn't find an obvious relationship. Does anyone already know, or have an idea on the best way to continue experimenting? I am new to sharpening.
I have read that Photoshop and GIMP use the same parameters, but I don't have Photoshop to verify.
GIMP 2.8.6
ImageMagick 6.8.6-3
IM's unsharp operation has the parameters radius, sigma, gain, and threshold.
http://www.imagemagick.org/script/comma ... hp#unsharp
radius (default=0 to calculate based on sigma, rarely needs to be set)
sigma
gain (default=1.0)
threshold (default=0.05)
GIMP's unsharp has the parameters radius, amount, and threshold.
radius = 0.1-500.0 (default=5.0)
amount = 0.00-10.00 (default=0.50)
threshold = 0-255 (default=0)
Threshold seems obvious, simply divide by 255. But the others?
First I found
http://www.imagemagick.org/Usage/resize/#resize_unsharp
which suggested that
im_radius = gimp_radius
im_sigma = gimp_amount
This doesn't appear to be correct.
Then I found
http://www.imagemagick.org/Usage/blur/#unsharp
which states that
im_sigma = gimp_radius + 1 (or maybe sqrt(gimp_radius))
im_gain = gimp_amount
This appears closer, but still not correct.
I experimented a little but didn't find an obvious relationship. Does anyone already know, or have an idea on the best way to continue experimenting? I am new to sharpening.
I have read that Photoshop and GIMP use the same parameters, but I don't have Photoshop to verify.
GIMP 2.8.6
ImageMagick 6.8.6-3