Drazick Posted August 5, 2010 Share Posted August 5, 2010 (edited) Hello. Has anyone succeeded to replicate Photoshop's Unsharp Mask and willing to share. I'm trying to write an algorithm which uses it and I want to replicate it. I encountered several Method, yet I'm not sure they are the same. Thanks. Edited August 6, 2010 by Drazick Quote Link to comment Share on other sites More sharing options...
yellowman Posted August 5, 2010 Share Posted August 5, 2010 Unsharp Mask plugin Quote My GalleryMy YouTube Channel "PDN Tutorials" Link to comment Share on other sites More sharing options...
Drazick Posted August 5, 2010 Author Share Posted August 5, 2010 (edited) Unsharp Mask plugin Well, I need the recipe how the math is done to do my own tool. Thanks. Edited August 5, 2010 by Drazick Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted August 5, 2010 Share Posted August 5, 2010 You're writing a Paint.NET plugin? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Drazick Posted August 5, 2010 Author Share Posted August 5, 2010 Actually I'm just prototyping something on Matlab. If it works I could try write it for Paint.Net. Hence I just need the basic Math behind it. I saw many algorithms for USM, yet I need something similar to Phothsop / Gimp (With the Threshols Parameter). If you remember, I asked you once in your blog if you could ever link between the two. Thanks. Quote Link to comment Share on other sites More sharing options...
Drazick Posted August 6, 2010 Author Share Posted August 6, 2010 (edited) 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 - 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 / Gimp comparable, let me know. Thanks. Edited August 6, 2010 by Drazick Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.