• Please use real names.

    Greetings to all who have registered to OPF and those guests taking a look around. Please use real names. Registrations with fictitious names will not be processed. REAL NAMES ONLY will be processed

    Firstname Lastname

    Register

    We are a courteous and supportive community. No need to hide behind an alia. If you have a genuine need for privacy/secrecy then let me know!
  • Welcome to the new site. Here's a thread about the update where you can post your feedback, ask questions or spot those nasty bugs!

How to Replicate Photohsop's Unsharp Mask

Itto Avital

New member
I want to replicate Photoshop's Unsharp Mask.
I know the basics.

Yet if someone think we could create exactly the affect it would be great.

Both using Layers and the tools inside Photoshop and Mathematically.

Thanks.
 

Asher Kelman

OPF Owner/Editor-in-Chief
I want to replicate Photoshop's Unsharp Mask.
I know the basics.

Yet if someone think we could create exactly the affect it would be great.

Both using Layers and the tools inside Photoshop and Mathematically.

Itto,

Is there some purpose to your quest or is it just for fun?

Asher
 

Itto Avital

New member
Just playing with some effects in Matlab.
I just want to replicate Photoshop's exact formula.

I managed to do it for the high pass.
Yet USM is a bit more tricky.

Thanks...
 

Doug Kerr

Well-known member
Hi, Itto,

Just playing with some effects in Matlab.
I just want to replicate Photoshop's exact formula.
I suspect that the Photoshop Unsharp Mask algorithm, is not publicly known.

There are Web sites on which the operation of the algorithm is discussed, with example images, but I have never been able to get any of those stories to completely fit together.

Best regards,

Doug
 

Doug Kerr

Well-known member

Itto Avital

New member
OK, I managed to write something and it seems to work well.
If someone knows better to get results like Photoshop, Please let me know.
Here it is:

Input and Parameters (Just Like in Photoshop): A - Original Image, Amout, Radius, Threshold.

B - Blur image A using Gaussian Blur with Radius.
C - abs(A - B)

Mask = 1 Where Pixels of C > Threshold, 0 otherwise.

Output = A + Mask * (Amount * C)

That's it.

I hope it would work for you.
For anything that would make it more Photoshop comparable, let me know.
 
Top