简体   繁体   中英

Removing the background from an image using C#

i am trying to create an application that remove the background of an image on a click of a button, can anyone give me any direction on how to build it.

the photos are like passport photos i need to remove the white background from them

i am a beginner C# developer and i could use all the help :)

You can implement an edge detection algorithm, and have that scan the image. Then start in the upper-left and upper-right corners of the picture, and turn every pixel transparent until you meet and edge, where you stop.

That should keep you from making people's teeth and eyes disappear. White hair might be out of luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM