Sign in to follow this  
Followers 0
BoltBait

Gaussian Blur+ (previously Channel Blur Plugin)

32 posts in this topic

Gaussian Blur+ Plugin

Forgot to post this one...

Tanel asked for a Gaussian Blur function where the user could specify a different amount of blur for each channel (Red, Green, Blue, and Alpha). Here is my take on the problem.

The Idea

My thought was to modify the Gaussian Blur code to blur only the selected channel. I started with the Code that Illnab1024 sent me and just started making changes. I used CodeLab so that I wouldn't have to worry too much about a UI. The rest came easy. I'm familiar enough with the Gaussian Blur code at this point that these changes only took me about 15 minutes.

Please note that this effect shows up under the Effects > Blurs sub menu.

The Effect DLL

If you like it, you can download the precompiled effect here: BoltBait's Plugin Pack

Instructions for Use

To use this plugin, simply select the channel you want to blur, then the amount of blur:

    GaussianBlurPlusUI.png

Then, click OK to finalize your image.

Samples

    GaussianBlurPlusDemo.jpg

Final Thoughts

Tanel was happy with the plugin. In fact, he's written at least one tutorial using it (along with my Transparency Adjustment plugin).

I hope you enjoy it too.

0

Share this post


Link to post
Share on other sites

Thank you boltbait! Ive been waiting for something like this for a long time now. :D :D

0

Share this post


Link to post
Share on other sites
Thank you boltbait! Ive been waiting for something like this for a long time now. :D :D

Well, I made this a month ago. I just forgot to make a post for it in the Plugin forum.

0

Share this post


Link to post
Share on other sites
You should replace the slider with check boxes.

True. Which is why I wrote, "I know this could use a better UI, but it was just a quick hack. Maybe I'll revisit this later."

0

Share this post


Link to post
Share on other sites

Could you make induvidual sliders for red, green, blue and alpha

0

Share this post


Link to post
Share on other sites
Could you make induvidual sliders for red, green, blue and alpha

No. The way the code is structured, that would require too much work.

Besides, no one ever uses it for anything except Alpha blur. :P

0

Share this post


Link to post
Share on other sites
Could you make induvidual sliders for red, green, blue and alpha

I think that it would make the whole thing a lot slicker than what it is at the moment, but I know nothing about coding so this could be totally impossible as far as I know....

0

Share this post


Link to post
Share on other sites

Paint.net has a lot of blur filters and or effects, I was wondering if someone could create a blur tool.

0

Share this post


Link to post
Share on other sites
Could you make induvidual sliders for red, green, blue and alpha

No. The way the code is structured, that would require too much work.

Besides, no one ever uses it for anything except Alpha blur. :P

Let us see the code... :roll:

(no way = impossible; impossible is not french!)

0

Share this post


Link to post
Share on other sites
Paint.net has a lot of blur filters and or effects, I was wondering if someone could create a blur tool.

Nope. Plugins can't do tools. Take a look at the PdN roadmap...it's coming eventually.

Let us see the code...

(no way = impossible; impossible is not french!)

I thought "impossible" was french...another way of saying "Ca n'est pas possible!"

Then again, I'd be a millionaire if I had a dollar for every time "I thought" was met with a "you're wrong..."

EDIT: Why am I arguing this with someone from Lille?

0

Share this post


Link to post
Share on other sites
Besides, no one ever uses it for anything except Alpha blur. :P

I use it :)

Ash uses all tools.....maybe not red eye remove... :lol:

0

Share this post


Link to post
Share on other sites

How the bloody potato do you get by without using red-eye remover? ;-)

On-topic: Is there some sort of workaround that we could use to blur by channel?

0

Share this post


Link to post
Share on other sites
EDIT: Why am I arguing this with someone from Lille?
'cos it's possible as we are both discussing other this forum! :P
0

Share this post


Link to post
Share on other sites

It's better than Franglais. :-)

0

Share this post


Link to post
Share on other sites

BoltBait,

it seems that there is a bug:

if original pixel is semi-transparent (with alpha whatever between 0 - 255) then Alpha Blur reduces original alpha before blurring. For example: evenly semi-transparent area with alpha 127 becomes to alpha 62 (the lower the radius, the lower it goes).

Can you fix it so that original alpha would remain untouched?

P.S. Can you also increase max radius to 200?

Thanks,

Tanel

0

Share this post


Link to post
Share on other sites

Feature Request:

Expand supported channels to include Hue, Saturation and Value? The only one I need is Value, but the others wouldn't hurt.

0

Share this post


Link to post
Share on other sites
Feature Request:

Expand supported channels to include Hue, Saturation and Value? The only one I need is Value, but the others wouldn't hurt.

Probably not.

I'll look, but don't hold your breath waiting for an update.

0

Share this post


Link to post
Share on other sites
but don't hold your breath waiting for an update.
You should have told me sooner...I've already fainted twice! :D
0

Share this post


Link to post
Share on other sites
Feature Request:

Expand supported channels to include Hue, Saturation and Value? The only one I need is Value, but the others wouldn't hurt.

Probably not.

I'll look, but don't hold your breath waiting for an update.

The pyrochild.effects.common.dll (included with Gradient mapping) has a Color class that provides quick and automatic access to Luminosity, RGB, HSV, CMYK, and Alpha values, if you want to use that...

0

Share this post


Link to post
Share on other sites

I know how to access the H, S, and V of a color. The problem is bluring them.

0

Share this post


Link to post
Share on other sites

Oh, wait. That shouldn't be too much of a problem.

I don't have the source code on this computer, but give me a day or so and I should have an update.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0