summaryrefslogtreecommitdiff
path: root/macros/integralKernel.sci
diff options
context:
space:
mode:
authorshamikam2017-01-16 02:56:17 +0530
committershamikam2017-01-16 02:56:17 +0530
commita6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch)
treee806e966b06a53388fb300d89534354b222c2cad /macros/integralKernel.sci
downloadFOSSEE_Image_Processing_Toolbox-a6df67e8bcd5159cde27556f4f6a315f8dc2215f.tar.gz
FOSSEE_Image_Processing_Toolbox-a6df67e8bcd5159cde27556f4f6a315f8dc2215f.tar.bz2
FOSSEE_Image_Processing_Toolbox-a6df67e8bcd5159cde27556f4f6a315f8dc2215f.zip
First CommitHEADmaster
Diffstat (limited to 'macros/integralKernel.sci')
-rw-r--r--macros/integralKernel.sci27
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/integralKernel.sci b/macros/integralKernel.sci
new file mode 100644
index 0000000..7276e27
--- /dev/null
+++ b/macros/integralKernel.sci
@@ -0,0 +1,27 @@
+function [ kernel ] = integralKernel(bbox, weights)
+// This function creates a filter to be used with integral images.
+//
+// Calling Sequence
+// results = intergralKernel(bbox, weight);
+//
+// Parameters
+// results: A structure kernel which contains bounding boxes, weights, filter coefficients, center of filter, size of filter, orientation of filter
+// bboxes: bounding boxes that define the filter
+// weights: weights corresponding to each of the bbox
+//
+// Description
+// Integral kernel creates box filter which can be used with integral images.
+//
+// Examples
+// bbox = [1 2 3 4; 5 6 7 8];
+// weights = [10 11];
+// results = integralKernel(bbox, weights);
+//
+// Authors
+// Tanmay Chaudhari
+
+ [t1 t2 t3 t4 t5] = opencv_integralKernel(bbox, weights)
+
+ kernel = struct("bbox",t1(1),"weights",t2,"coefficients",t3(1),"centre",t4(1),"filterSize",t5)
+
+endfunction