API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBITMAPFX_FILTER()

Brew Release
Brew MP 1.0.2
See Also
None.
Description
This function filters the input image. There are 6 types of filters that can be applied to an input image.
1) BLUR : It'll result in the blurring of the input image 2) SHARPEN: It'll result in the sharpening of the input image 3) GAUSSIAN : It'll add a gaussian blur to the input image 4) UNIFORM : It'll add a uniform blur to the input image
The blurring is done in incrementally. The blur window specifies the rectangular area which is blurred at a time. The blur window can range from [ 3 .. 0.5 * min (input height, width)] It will do nothing when nfilter = 0 ,nBlurWindow =9 and nfilter = 0 ,nBlurWindow =30.
Params
me
[in]:
Pointer to me Interface.
inImage
[in]:
Pointer to the input image. outImage[in/out]: Pointer to the output image
filter
[in]:
Type of filtering operation to be applied to the input image
nBlurWindow
[in]:
Size of the blurring Window
Interface
Prototype
  •     int IBitmapFX_Filter
        (
          IBitmapFX * me,
          IBitmap* inImage,
          IBitmap* outImage,
          int32 nfilter,
          int32 nBlurWindow
        )
    
Return
  • Returns AEEError codes
    AEE_SUCCESS, if the function completed successfully EBADPARM, if the filter type is not one of the permitted values or the blur Window falls outside the range
Side Effect
  • None.
Comments
The size of the output image should be the same size as the input image The colorScheme of the output image needs to be set by the user.