summaryrefslogtreecommitdiff
path: root/macros/integralFilter.sci
diff options
context:
space:
mode:
authorshamikam2017-01-16 02:56:17 +0530
committershamikam2017-01-16 02:56:17 +0530
commita6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch)
treee806e966b06a53388fb300d89534354b222c2cad /macros/integralFilter.sci
downloadFOSSEE_Image_Processing_Toolbox-master.tar.gz
FOSSEE_Image_Processing_Toolbox-master.tar.bz2
FOSSEE_Image_Processing_Toolbox-master.zip
First CommitHEADmaster
Diffstat (limited to 'macros/integralFilter.sci')
-rw-r--r--macros/integralFilter.sci29
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