Jump to content
How to Install Plugins ×

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




Example pics:





The source code is available here:


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.



Added Clustering Modes and Linked Sliders



Initial Release


Edited by The Number e
Plugin Update
  • Upvote 4
Link to comment
Share on other sites

Welcome to the forum, 2.7182818 etc.:)


Good idea for a plugin, thanks for sharing.

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


Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings



Link to comment
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.

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...