Jump to content
How to Install Plugins ×

Majority Color Effect (ymd:100726)


MadJik

Recommended Posts

Majority Color Effect Plugin

What's this?

 

This plugin is added to the menu Effects, submenu Stylize.

In fact it was originally 99% made with CodeLab...(1% for external text editor, and for the icon).

This is based on the (french) cellular automat using the majority rule.

See the link for more... http://interstices.info/display.jsp?id=c_27035

The automate is based on boolean (0 or 1) cells. I had to adapt it for colors (0-255).

The principle is each cell will take the value of its neighbours that have the majority.

For each cell, I compute the average of the cell + its neighbours.

If the cell color is greater than the average then it takes the value of the greatest value found. Else it take the value of the lowest value found.

 

So there are 3 modes:

Keep original colors: use min/max values found separately for R,G & B.

Reduce to primal colors: use 0/255 separately for R,G & B.

Reduce to black and white: use min/max values found and take the average of RGB to have a grey color.

 

Download it!

Plugin Majority.dll

ar.pngHere is the DLLal.png

 

The MadJik's All plugins package is available !

http://forums.getpaint.net/index.php?showtopic=7186

 

 

How to install

Close Paint.net

 

Classic version of Paint.net

Unzip and (re)place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects

 

Microsoft Store version of Paint.net

Unzip and (re)place the DLL in your Effect folder usually: /My Documents/paint.net App Files/Effects/

You have to adapt for your language My Documents

 

 

The User interface

majorityUI.png

...Choose the color mode: see previous explanations.

...Radius of tolerance: how many row/column to compute from the single pixel. Big values could take a long time to render.

...Color tolerance level: color level to define the default average between low or high colors.

...Include transparent pixels:Check to apply the effect on alpha channel as well.

 

 

Some examples:

1. Original model from http://www.photo-libre.fr

http://photoslibre.free.fr/photoslibres/gens/people/10.jpg

...and abstract Nebulous (from Codelab)

model1.jpg  modelb1.jpg

2. mode=0, radius=4, tolerance=127 (applied on the model)

model2.jpg  modelb2.jpg

3. mode=1, radius=4, tolerance=127 (applied on the model)

model3.jpg  modelb3.jpg

4. mode=2, radius=4, tolerance=127 (applied on the model)

model4.jpg  modelb4.jpg

5. mode=1, radius=1, tolerance=127 (applied on the model)

+ (run again) mode=2, radius=1, tolerance=127

model5.jpg  modelb5.jpg

  • Upvote 1
Link to comment
Share on other sites

Another test of this plugin:

source:

http://photoslibre.free.fr/photoslibres/transport/12.jpg

Before:

model2a.jpg

 

After:

model2b.jpg

To do this I duplicate the layer 3 times and run the effect with differents settings, then cut out some dark/white sections to have a good (IMO)combination.

And for fun the 'Rick' effect:

model2c.jpg

Link to comment
Share on other sites

Hey, this is actually pretty cool. It might produce a good result if afterwards using the Oil Painting effect.

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

 

"I wish I had never been born," she said. "What are we born for?"

"For infinite happiness," said the Spirit. "You can step out into it at any moment..."

Link to comment
Share on other sites

You kinda have to look for the link for plug-in, but off hand without testing it I really like #3 & #5.

eatapeachhp5.png
Link to comment
Share on other sites

Yikes! :shock:

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

 

"I wish I had never been born," she said. "What are we born for?"

"For infinite happiness," said the Spirit. "You can step out into it at any moment..."

Link to comment
Share on other sites

It looks like an aneurysm! :shock: :( :shock: :( :shock: :( :shock: :( :shock:

 

Take responsibility for your own intelligence. 😉 -Rick Brewster

Link to comment
Share on other sites

@BBk:I think the pic in this article is not really safe for children.

No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio

Link to comment
Share on other sites

  • 6 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...