zhaojiahai / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Support for the alpha channel in convolution filters #264

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

See forum discussion here:
http://www.aforgenet.com/forum/viewtopic.php?f=2&t=2416

Currently the convolution filter merely copies the alpha channel. For some 
convolution filters like the GaussianBlur it would be useful if the alpha 
channel was treated the same way as the red/green/blue channels.

Since this would "break" some other convolution filters a property on the 
convolution filter base class might make sense. That way the user can specify 
if he wants to process the alpha channel or not.

Thanks, Max

Original issue reported on code.google.com by stma...@gmail.com on 17 Nov 2011 at 7:57

GoogleCodeExporter commented 8 years ago
Convolution filter is extended to support processing of alpha channel for 32 
bpp and 64 bpp images, which is controlled by ProcessAlpha property (set to 
false by default). For filters like Blur, Mean and GaussianBlur the property is 
set to true by default, so the alpha channel gets blurred also.

Committed in revision 1634. Will be released in version 2.2.3.

Original comment by andrew.k...@gmail.com on 22 Nov 2011 at 9:21

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 12 Dec 2011 at 9:17