Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Extract logo from the images

$
0
0
Hi,
I am trying to get rid of the background color of the image and extract the logo in that image. Sample image looks like Image

I tried with code
 using (MagickImage image = new MagickImage(@"E:\Development\DOTNET\LOGOExtracter\LOGOExtracterSample\SampleApp\images-input\19045997.PCX"))
            {

                WritablePixelCollection p = image.GetWritablePixels();
                Pixel pp = p.GetPixel(1,2);

                MagickColor c = pp.ToColor();
                MagickColor fill = new MagickColor(255, 255, 255);
                image.Opaque(c, fill);
                image.ClassType = ImageMagick.ClassType.Pseudo;
                
                image.Write(@"E:\Development\DOTNET\LOGOExtracter\LOGOExtracterSample\SampleApp\images-output\19045997.jpg");
                image.Dispose();
            }
please help

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>