diff options
author | shamikam | 2017-01-16 02:56:17 +0530 |
---|---|---|
committer | shamikam | 2017-01-16 02:56:17 +0530 |
commit | a6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch) | |
tree | e806e966b06a53388fb300d89534354b222c2cad /macros/integralFilter.sci | |
download | FOSSEE_Image_Processing_Toolbox-master.tar.gz FOSSEE_Image_Processing_Toolbox-master.tar.bz2 FOSSEE_Image_Processing_Toolbox-master.zip |
Diffstat (limited to 'macros/integralFilter.sci')
-rw-r--r-- | macros/integralFilter.sci | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/macros/integralFilter.sci b/macros/integralFilter.sci new file mode 100644 index 0000000..1e7e19f --- /dev/null +++ b/macros/integralFilter.sci @@ -0,0 +1,29 @@ +function [out]=integralFilter(intimage,bbox,weights,filterSize) +// Integral Image based Filter. +// +// Calling Sequence +// filter = integralFilter(intimage,bbox,weights,filterSize); +// +// Parameters +// intimage: Integral Image, which can be obtained from the function integralImage. +// bbox: Bounding box of the filter object, which can be obtained from integralKernel function. +// weight: Weights of the bounding box, which can be obtained from integralKernel function. +// filterSize: Size of the filter, which can be obtained from integralKernel function. +// +// Description +// This function filters image using box filters and integral images. +// +// Examples +// i = imread("lena.jpg"); +// intImg = integralImage(i); +// kernel = integralKernel([2 2 11 11], 1/51); +// filter = integralKernel(intImg, kernel.bbox, kernel.weights, kernel.filterSize); +// +// Authors +// Tanmay Chaudhari + + inputimage1=mattolist(inputimage); + a=opencv_integralFilter(inputimage1,bbox,weights,filterSize); + out(:,:,1)=a(1); + +endfunction |