开发者

C# Using Emgu to crop an image by pixel color

Hey i was wondering if anyone had any insight on how to crop an image by pixel color using the开发者_开发问答 Emgu Wrapper.

I have it already turn the image grayscale for processing and all the image that i don't need is black. Is there any way to crop these pixels out? Now I'm not talking about making them transparent, i physically want to make the output image smaller.

Thanks!


It's really simple... all you have to do is set your input image ROI property on the non black pixels using a rectangle, then you create the destination image with image equals to ROI size and use Copy() method on your input image choosing as destination your dest image. HTH, Luca

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜