http://www.cambridgeincolour.com/tutori ... p-mask.htm
http://www.cambridgeincolour.com/tutori ... cement.htm
-unsharp has three parameters
- radius & sigma (area function)
- amount/gain
- threshold
- The input image.
- A higher contrast version of the input image.
- A mask identifying the edges.
How is the higher contrast version created? Amount specifies how much contrast. I used to imagine it was something like applying -level 10,90% to the original image. But it seems like colors are shifted away from the local average (sigma also used here?) in testing, which makes sense.
Finally, the three images are combined. My guess is
convert original high_contrast_copy edge_mask -compose Over -composite sharpened_output
It seems the channels are processed separately. -channel works, so HSL or Lab colorspace could easily be used when sharpening.