Sign in to follow this  
The Number e

Cluster Clear Plugin

Recommended Posts

I made this plugin to get rid of random ink blots on scanned pages.

There are two modes, one builds clusters of pixels outside tolerance of the secondary color, the other builds clusters of pixels within tolerance of the primary color. If the cluster is within the size thresholds, it is painted over with the secondary color.

It's found under Effects/Noise

Download: 

ClusterClearEffect.zip

 

Example pics:

gOmMsXr.png

KyHYcx5.png

nM3YBhp.png

RbN2BRW.png

The source code is available here:

https://github.com/edwardx999/PaintDotNetClusterClear

This is my first plugin (my first C# project, in fact) so it's not very advanced yet.

If you have any suggestions please tell.

Also, I couldn't find the formula Paint.Net uses to calculate tolerance, so if you know it, please tell me.

 

7/16/17

Added Clustering Modes and Linked Sliders

 

7/15/17

Initial Release

 

Edited by The Number e
Plugin Update
  • Upvote 4

Share this post


Link to post
Share on other sites

Welcome to the forum, 2.7182818 etc.:)

 

Good idea for a plugin, thanks for sharing.

Suggestions:
State that it is found under Effects/Object (though it works on opaque Secondary color backgrounds).
You could link the max and min sliders tooexample code

Share this post


Link to post
Share on other sites

This plugin reminds me of Scan Tailor application witch I have been using for 8 years.
It would be extremely helpful if it considered the shades of gray.
Thank you.

Share this post


Link to post
Share on other sites

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.

Sign in to follow this