c# + [login to view URL] small background removal script

Closed Posted 6 years ago Paid on delivery
Closed Paid on delivery

Important: with C# + [url removed, login to view] ONLY (no imagemagick command line or wrapper)

Objective is to improve the magicwand-like background removal in my small app

[url removed, login to view] is very powerfull already. This is probably between 5 and 10 lines of code for who knows [url removed, login to view] ... but I don't know it enough.

My code does a selection with some %threshold and makes that zone 100% transparent.

The objective is to add a 2nd parameter, that would smooth the edges of this selected zone.

This additionnal parameter would be an amount of pixels = the WIDTH of the transition zone, ranging over these pixels between fully transparent and fully opaque.

Of course it works only with image formats having an alpha channel.

For guidance, some examples are given in the original imagemagic docs ( [url removed, login to view] ). The question is to translate the ideas for thre chatper "Recovering Semi-Transparent Edges" into [url removed, login to view], as said above with additional 2nd parameter

My basic existing code:

MagickImage image = new MagickImage(some_Source_Path_here);

Percentage BackgroundThreshold = new Percentage(some_int_value_here);

[url removed, login to view] = BackgroundThreshold;

[url removed, login to view]([url removed, login to view], 0, 0); // start filling "image" with transparency, starting from top corner

You are free to use other method, as long as it is with [url removed, login to view] only + at least these two parameters

.NET C# Programming

Project ID: #14171886

About the project

4 proposals Remote project Active 6 years ago

4 freelancers are bidding on average €42 for this job

ieota

We at IEOTA TECHNOLOGIES have lot of exposure and experience in development for past 4 years served for several clients across the globe. We have fabulous developers who have extreme knowledge in coding and vast experi More

€23 EUR in 1 day
(0 Reviews)
0.0
techlogics4

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have More

€27 EUR in 6 days
(0 Reviews)
0.0