Jump to content

Tanel

Members
  • Posts

    205
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Tanel

  1. Hello All,

    I have an image of a locomotive for MS Train Simulator that I want to convert from blue to red. I thought that this plugin would be perfect for this job, but I have not found a way to precisely control the result I am looking for. The main part of the image has a HSV of 203-85-63 and I want that converted to HSV 343-100-73.

    It does a very good job converting all the colors and I can get my main color close, but I can't hit it precisely or consistently. I notice that the color picker in PdN uses HSV format, but this plugin uses HSL. I am assuming that this is throwing me off because the color picker H range is 0-360, S range is 0-100, and V range is 0-100. The plugin H range is -180 to 180, the S range is 0-200, and L range is -100 to 100.Ted

    You have wrong understanding of this plugin. Use Conditions panel to define which color you want to change (Conditions panel = color wheel and 4 sliders beneath it). Then in Action panels you define the nature of changes to be performed on your selected color range. There are + and - ranges in Action panels because by editing you can either increase or decrease those parameters.

    If it still doesn't serve you well enough, you could alternatively try "Color to Alpha" plugin to separate your object from backround.

  2. This plugin (LCE for short) allows to clarify flat or hazy looking photos. It also adds depth or three-dimensional look sometimes. For most of photos you won't need it, but sometimes it's very useful: for distant landscapes or clouds for example. By default the effect is very subtle - to provide enhanced, but still natural looking result.

    Menu location: Effects > Photo.

    Download as part of my plugin pack.

     

    localcontrast-screen.png

     

    Updated to version 1.2 (2008-12-24)!

    Changes: few UI and code optimizations.

    Updated to version 1.1 (2008-08-31)!

    - Compatibility fix for paint.net 3.36

    Controls:

    Amount - percentage of contrast to be added

    Radius - width of contrast detection area

    Smoothing - reduces the effect gradually at extreme shadows and highlights, to avoid overprocessed look or color clipping.

    Amount 10-30 should be sufficient for natural result.

    Radius should be chosen according to image size. There is no rule here but generally: the larger the image, the greater radius you may need. 60 is about optimal for screen size image. 90 or more for large (>3MP) images. 30 for web size images.

    Smoothing at default setting 5 prevents color clipping in extreme shadows and highlights. Increasing it mutes the effect in shadows and highlights even further. Reducing to zero turns shadows/highlights preserving off.

    Notes:

    Similar effect was possible with Sharpen+ plugin, but this one is specially configured for contrast enhancement and is twice faster.

    Contrast is applied to pixel's brightness only, preserving original hue and saturation.

    Try also special contrast effects: with several (3-4) passes at reducing radius and growing amount (for example Amount/Radius: 10/60->20/30->30/10).

    Below are some links to tutorials describing the LCE technique using Photoshop's Unsharp Mask.

    This plugin does the same, but avoids color shift and clipping problems noted in those pages.

    <!-- m -->http://www.cambridgeincolour.com/tutori ... cement.htm<!-- m -->

    <!-- m -->http://www.earthboundlight.com/phototip ... -mask.html<!-- m -->

    <!-- m -->http://www.luminous-landscape.com/tutor ... ment.shtml<!-- m -->

    <!-- m -->http://www.lonestardigital.com/photoshop_quicktips.htm<!-- m -->

    (note: radius 50 in Photoshop is about equal to radius 100 in Paint.NET)

    Samples:

     

    lce-sample1.jpg1st pic - original

    2nd pic - LCE, defaults

    Resized to 40% for web sample.

     

    lce-sample2.jpg

     

    1st pic - original

    2nd pic - Advanced Greyscale plugin: R 100, G 50, B 0

    3rd pic - LCE, 4 passes: Amount/Radius 10/60->20/30->30/10->40/5 (Smoothing always 5).

    Resized to 33% for web sample.

    Remember the look of good old b/w photos?

    Enjoy! 😎

  3. I have rewritten this effect from scratch. The effect now shows up in the Effects > Object submenu.

    It now includes a third slider to control the strength of the effect:

    FeatherUI.png

    Suggestion: please rename the Amount control to "Radius" or "Width" to be more intuitive.

    I think words Amount and Strength have too similar meaning and this is confusing for occasional users.

  4. Hi,

    I have made few improvements, please upgrade!

    Download link in 1st post.

    Changes in v2:

    1) Effect is now located in Adjustments menu.

    2) Fixed a bug caused by PDN's Gaussian Blur misbehaviour. Semitransparent areas are now feathered correctly.

    3) Added check box "Override Original Alpha". This controls how to handle originally transparent/semitransparent pixels:

    - unchecked (default) -> transparent pixels remain transparent, even if pixel's color match your selected color.

    - checked -> transparent pixels turn opaque if pixel's color match your selected color.

    This is useful if a layer contains erased areas: you can decide wheter to keep those intact or not.

    BTW, note that Feather, Base Opacity and Invert Alpha can be also used independently from color controls (with unchecked Hue/Sat/Brigh); so you may find alternative uses:

    - Feather (without mishandling semitransparent areas -> bug in current Feather and Gaussian Blur Channel effects)

    - Base Opacity to "un-erase" erased areas

    - Invert Alpha to invert opacity

  5. The simpliest way is to use Curves+ plugin.

    Choose Advanced mode, in: Red, out: Alpha.

    Default curve shape (straight line from bottom left to top right) represents 1:1 conversion from red to alpha as you described (R255->A255). You may want to bend the curve to adjust the effect. Reversed curve (top left to bottom right) converts in opposite direction (R255->A0).

    Color to Alpha plugin may be too difficult to set up for that task. Thanks for publicity, though. :wink:
  6. Check this out, linked screenshots show what happened to 200x200 image (zoomed in 4x):

    original

    rotated

    Apparently 180 degrees rotated image is placed into coordinates 1;1 instead of 0;0 (gap appears on left and top edge);

    90 degrees rotated image is placed into coordinates 0;1 instead of 0;0 (gap appears on top edge);

    -90 degrees rotated image is placed into coordinates 1;0 instead of 0;0 (gap appears on left edge).

  7. just a thing what about an UI like the Conditional Hue\Saturation?

    you know with the color wheel to show the range..

    I'm a fan of that color wheel - angle control too, but this is Evan's own creation and I don't want to rip off his code.
    oh yeah and Adjustments menu too, if you don't mind...
    I tend to agree on Adjustments menu, seems to be more relevant than Effects. I will change it together with other possible fixes in a week or so.
  8. This plugin extracts a color range from image, by leaving pixels of selected color opaque and making the rest transparent. Only alpha values are altered, color remains intact.

    It is useful if you need to edit certain colors on your image separately: duplicate the image layer and run the plugin to get color-based "selection" for further editing.

    It is more flexible than Magic Wand or Curves+ which could provide similar results but not always exactly as needed.

     

    Menu location: Effects > Photo.

    Download as part of my plugin pack.

    colortoalpha_ss2.png

     

    Updated to version 2.2 (2008-12-24)!

    Changes: few UI and code optimizations; moved to Color submenu.

     

    Updated to version 2.1 (2008-08-31)!

    - Compatibility fix for paint.net 3.36

     

    Changes in v2 (2008-01-23):

    - Effect is now located in Adjustments menu

    - Added check box "Override Original Alpha" (see details below)

    - Few minor bugfixes

     

    Use the six color controls (on top) to define your color selection,

    and three adjustment controls (on bottom) to adjust the output.

    For ease of use, the default color range is defined around primary color. So I suggest to use color picker tool before starting the plugin.

     

    Check box near each color control defines whether you restrict color by this parameter or not. Unchecking equals to selecting the full range.

    Tolerance control makes alpha to fade off gradually, based on color's similarity to selected color. Max tolerance makes full alpha gradient from selected color to it's opposite (for example from full bright to full dark, if brightness from 255 to 255 is selected).

    Feather control softens edges by blurring alpha channel by selected radius. I recommended to adjust this after all other controls are set, due to heavy impact on processing speed.

    Base Opacity control adjusts alpha of "non-selected" color.

    Invert Alpha check box inverts final alpha.

    Override Original Alpha check box controls how to handle originally transparent/semitransparent pixels:

    - unchecked (default) -> transparent pixels remain transparent, even if pixel's color match your selected color

    - checked -> transparent pixels turn opaque if pixel's color match your selected color

    Reset button returns to default setting (that is: color range from primary color and other controls zero).

     

    Note: greyscale pixels are also treated as color, defined by Hue=0, Saturation=0.

     

    Example:

    here I attempted to extract skin tones from the photo. I started with color picker tool and clicked in the middle of his raised arm to get a good color sample. Then opened the plugin, adjusted the color range a bit, finally feathered by amount of 4. Screenshot:

    colortoalpha_s1.jpg

     

    You can learn the behaviour of this plugin on my test image, containing hue, saturation and brightness gradients:

    link.

     

    Tip: Feather, Base Opacity and Invert Alpha can be also used independently from color controls (with unchecked Hue/Sat/Brigh); so you may find alternative uses:

    - Feather

    - Base Opacity: to "un-erase" erased areas

    - Invert Alpha: to invert opacity

     

    Enjoy!

     

    • ...
      * Fixed: The Unfocus effect was not handling alpha values properly.
      ...

    Sorry to discover this so late but:

    Unfocus effect now handles color values of semi-transparent pixels inproperly.

    Also, Gaussian Blur handles alpha AND color values of semi-transparent pixels inproperly.

    Check this sample with color picker:

    1728_3a9659c23d55352ad1e2c7688bae1c38

    Original rectangle on the left is uniform color but bottom side's alpha is reduced to 85 for testing purpose.

    Unfocus seems to reduce semitransparent pixel's Value,

    while Gaussian Blur reduces both Value and Alpha.

    Please kindly fix this.

×
×
  • Create New...