Paint.NET

Welcome to the Paint.NET forum!
It is currently Sun Nov 22, 2009 10:54 am

All times are UTC


Forum rules


Questions or problems with plugin installation? Click here.



Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Sharpen+ (Advanced Unsharp Mask) v3.1 (2008-12-24)
PostPosted: Tue Aug 14, 2007 2:07 pm 
Offline

Joined: Wed Aug 09, 2006 8:37 am
Posts: 177
I prefer to sharpen my photos with unsharp mask, because of finer results compared to built-in sharpen effect. So far I had to use other programs for that operation. Switching between programs is annoying - so I decided to learn the code and design a plugin with features I need. Hope you find it useful too.
Menu location: Effects > Photo.
Download as part of my plugin pack.

Image

Updated to version 3.1 (2008-12-24)!
Changes: few UI and code optimizations.


Updated to version 3 (2008-08-31)!
Changes: Threshold control is re-designed to have much better feel and control over the result. Previous threshold had strong impact already from very small values, while large values were quite useless. The new one is literally "zoomed in" to small values only, so it is easy to find good setting with scrollbar.


Updated to version 2 (2008-01-03)!
Changes:
- re-located the effect into Photo submenu
- added Review button (press & hold the button to see original image, release it to see changes)
- improved keyboard usability
- reduced default Radius to 1 which is more suitable for most of images, especially for screen size photos
- Color Mask has now some real impact on results: by aming strenght based on pixel color. Range is expanded to 0-200
- Tonal Range control in Highlights tab is reversed, in order to work in same direction as in Shadows tab: increasing the value expands the range
- Faster rendering after OK click, especially when image fits to window
- Code optimized for Paint.NET 3.2 (though it's still not a PropertyBasedEffect)
- Source code available (VS2005 express): sharpen+2src.zip



Using the plugin:
* use three main controls (on top) to achieve required effect
* use adjustment controls (in tabs) to fine-tune the result
* re-adjust any control if needed

Main controls
Those are traditional unsharp masking controls (learn more here):

Amount - percentage of sharpening to be applied
100 - 200 usually does the job.

Radius - width of area (pixels) around edges to be sharpened
1 is good for small (web) images; 2 - 3 for large (several MP) images.

Threshold - minimum level of pixel contrast (brightness difference between pixels) to be sharpened
Use it to prevent sharpening of even surfaces like sky or skin. Keep at zero if you want to sharpen fine details.

Adjustment controls
those naturally don't apply any additional effect, but rather adjust it's strength by percentage from main Amount:

Edge Balance
Bright Borders - Percent of amount applied to bright side of edge
Use it to reduce sharpening halo if it becomes too visible, or prevent oversharpening of bright fine detail, like sunlit hair.
Dark Borders - Percent of amount applied to dark side of edge
Use this to reduce dark halo (rarely needed).

Note: it is not recommended to use Bright and Dark controls together: it would effectively reduce overall amount of sharpening (setting both to 0 is equal to setting main amount to 0).

Shadows
Strength - percent of amount applied in shadows
Use it to reduce sharpening impact to image noise (noise is usually most pronounced in shadows).
Tonal Range - level of brightness (at 0 - 255 scale) where shadows adjustment will be applied
Range is "soft" control: strenght of sharpening rises gradually back to normal through 50 next levels above selected level.
Tip: set Strenght to 0, move around Range control to find the brightness level where noise kicks in, then re-adjust Strenght to appropriate amount.

Highlights
Strength - percent of amount applied in highlights
Tonal Range - level of brightness (at top of 0 - 255 scale) where highlights adjustment will be applied
Range is "soft" control: strenght of sharpening rises gradually back to normal through 50 next levels below selected level.

Color mask
Adjusts strength of effect based on pixel color

Notes
* Strength of controls is NOT equal to "other brand" sharpening tools (like USM in Photoshop or Gimp). For example radius 2 in this plugin is close to radius 1 in Gimp USM (due to differences in gaussian blur rendering). So don't apply settings recommended in Photoshop tutorials - better trust your own eyes.
* Sharpness (edge contrast) is increased through brightness channel only - thus no hue shift is caused (as far as color channels are not clipped); this is another difference from "other brand" USM tools.
* Shadow and highlight areas are detected from blurred grayscale image, to achieve more even output spread.

Alternative use:
Instead of sharpening you can use this plugin for local contrast enhancement - to give extra clarity to a flat, hazy image;
for example following settings: Amount 20, Radius 80, Threshold 0.
(Be patient with this one: the larger the radius, the slower the effect runs - due to gaussian blur function rendered in backround).

------------------
General recommendations for sharpening (collection of unwritten rules I try to follow)
* Sharpening only works on sharp images. Use it to remove lens softness or give 3d look to otherwise flat image.
* Don't try to fix blurry images with sharpening - it only makes things worse. Leave it blurry or shoot the photo again.
* Sharpening should be the very last image processing operation before save / print, as it actually distorts image detail for better appearance
(Generally my preferred workflow is: white balance -> noise reduction -> levels/curves/contrast -> saturation -> crop/resize -> sharpening).
* The best sharpening settings depends on output - whether it is web image, small print or large print - every kind has different needs. Do experiments to find most appropriate settings.
* For best output preview (to predict the results), use 100% zoom while sharpening a web image, use 50% zoom if sharpening for print.
* Images appear sharper on LCD monitors than CRTs. So be careful while using CRT.
* Mass production printers at photo stores automatically sharpen every jpg image (while they may keep tif's intact). So keep your settings modest or don't sharpen at all if you are going to use those services.


Last edited by Tanel on Wed Dec 24, 2008 5:05 pm, edited 6 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 3:31 pm 
Offline
2008 "Excellence in Signatures" Award Winner
User avatar

Joined: Mon Feb 12, 2007 12:48 am
Posts: 1836
Location: Michigan, USA
This is impressive! :shock:

I really like the UI, it's easy to understand and work with.

Rick, I definitely suggest that you consider including this in a later version!!

_________________
v An excellent open–source strategy game—highly recommended.
Image

"... Now at last they were beginning Chapter One of the Great Story which no one on earth
has read: which goes on for ever: in which every chapter is better than the one before."


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 4:09 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 2:13 pm
Posts: 603
Location: Denmark
Wow. I have to use some time to figure out all those controls. But this really dose the job very well.
Thank you for making this plug-in.

_________________
Image
My DA: http://leif-j.deviantart.com/
--------------
Some people seek justice so persistent, that they will do great injustice themselves.


Last edited by Leif on Tue Aug 14, 2007 5:07 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 5:04 pm 
Offline
User avatar

Joined: Fri Apr 06, 2007 10:22 pm
Posts: 346
Indeed impressive.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 5:39 pm 
Offline
Paint.NET Lead Developer
User avatar

Joined: Tue Jul 19, 2005 6:22 pm
Posts: 8878
Location: Kirkland, WA
Sticky'd

I've had people asking me for this one.

_________________
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html
Paint.NET Search Engine: http://searchpaint.net

Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 5:41 pm 
Offline
User avatar

Joined: Thu May 24, 2007 4:54 pm
Posts: 521
It's going to take me a whole day of playing with this before I figure out how much it can do...

Good stuff Tanel. Thanks very much!

_________________


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 6:42 pm 
Offline
User avatar

Joined: Tue Apr 10, 2007 3:40 am
Posts: 3090
Location: Ohio
Very nice! Thank you!

_________________
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former"
Image
[ dA Paint.NET Chat :: Yata on dA ]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 7:07 pm 
Offline
User avatar

Joined: Wed Feb 22, 2006 9:13 pm
Posts: 974
Location: Corpus Christi
This is simply a must use!

The fine-tuning your plugin has is outstanding! It's all about the details.

As moc426 stated: ...impressive!

Thank you much!

_________________
Image
- DO NOT contact me asking for the .pdn of my avatar or the PDN logo. Thank you. Have a nice day.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 8:40 pm 
Offline

Joined: Sat Feb 24, 2007 12:53 am
Posts: 1999
Location: Colorado
This looks really nice. It will take me a litte bit to get to know how to use everything in it really good though. Still, I can see this as becoming very useful. Great job!

_________________
Sig coming to celebrate post #2000!

so ill probably just disappear on post 1999


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 8:43 pm 
Offline
Forum Admin and 2008 "Proton Award" Winner
User avatar

Joined: Tue Feb 06, 2007 9:45 pm
Posts: 9483
Location: Indianapolis, IN (39°46′5.88″N 86°9′29.52″W)
Helio wrote:
impressive!


...Most impressive. :-)

I like it a lot. Keep 'em coming!

_________________


Last edited by david.atwell on Tue Aug 14, 2007 9:20 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 8:48 pm 
Offline
User avatar

Joined: Tue Jul 17, 2007 6:26 pm
Posts: 2129
Location: In a lobby....
Nice, really damn nice.

I see you've kept the tradition of +'s for better versions of Standard plug-in's.

_________________
Image
Thanks to Simon for the hosting of the php images


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 9:18 pm 
Offline
User avatar

Joined: Thu May 24, 2007 4:54 pm
Posts: 521
david.atwell wrote:
Helio wrote:
impressive!


...Most impressive. :-)

I like it a lot. Keep 'em coming!


That was vader's line, not palpatine's...followed by "...Obi-Wan has taught you well. But you are not a jedi yet..." (my little brother watched the original trilogy once a day for about 3 months...thank god it takes some time to rewind VHS tapes).

I'm getting some interesting results using this on gradients at very high values...this might turn out to be even more interesting for stuff it's not even meant to do :)

_________________


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 9:21 pm 
Offline
Forum Admin and 2008 "Proton Award" Winner
User avatar

Joined: Tue Feb 06, 2007 9:45 pm
Posts: 9483
Location: Indianapolis, IN (39°46′5.88″N 86°9′29.52″W)
Fixed. I'd completely forgotten...it's been way too long.

I am slightly overwhelmed with this huge range in the UI. Any chance a highly-motivated individual could post an explanation of what each does?

AHA. EDIT: Nevermind. I just saw the post I had ignored.

_________________


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 9:51 pm 
Offline
Site Admin, 2008 "Monet" Award Winner, and 2008 King of Paint.NET
User avatar

Joined: Fri Dec 22, 2006 8:29 am
Posts: 5708
Location: http://tinyurl.com/6kqz9v
Just tried it, very nice! :)
Thanks!!

_________________
Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 10:37 pm 
Offline
2008 "GE Award for Plugin Brilliance" Winner
User avatar

Joined: Tue Apr 17, 2007 10:51 pm
Posts: 7288
Location: Colorado
:shock:
You totally ripped off the "+"!

;)
:lol:

_________________
I'm Bike-Stick-Man and I approve this message I am right, so shut up.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: georgian and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by Forumer & phpBB

Get your Forumer™ today!

Adding a forum to your website is a great way to get return visitors.

» Get your own Free Forum!

Terms of Use

Privacy Policy

Report Abuse

Copyright © 2003-2009 Forumer. All Rights Reserved. | Copyright © paint.NET