summaryrefslogtreecommitdiff
path: root/macros/cvHoughLines.sci
diff options
context:
space:
mode:
authorshamikam2017-01-16 02:56:17 +0530
committershamikam2017-01-16 02:56:17 +0530
commita6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch)
treee806e966b06a53388fb300d89534354b222c2cad /macros/cvHoughLines.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/cvHoughLines.sci')
-rw-r--r--macros/cvHoughLines.sci29
1 files changed, 29 insertions, 0 deletions
diff --git a/macros/cvHoughLines.sci b/macros/cvHoughLines.sci
new file mode 100644
index 0000000..cdf7d59
--- /dev/null
+++ b/macros/cvHoughLines.sci
@@ -0,0 +1,29 @@
+function [points] = cvHoughLines(image,theta,rho)
+// Cartesian co-ordinates of points defined by rho and theta pairs.
+//
+// Calling Sequence
+// points = cvHoughLines(image, theta, rho)
+//
+// Parameters
+// image : input image matrix
+// theta : vector of values of theta that represent the input line
+// rho : vector of values of theta that represent the input line
+// points : It is an MX4 matrix containing the points of intersection of the line(represented by rho and theta) with the image boundary.
+//
+// Description
+//
+// The function returns the points of intersection of the line defined by rho and theta pairs with the image boundary. Image boundary refers to the left and right vertical boundary and top and bottom horizontal boundary.
+//
+// Examples
+// //Load an image
+// I = imread('lena.jpeg');
+// // Calculate the points of intersection
+// points = cvHoughLines(I,[pi/3 pi/6],[5 9]);
+//
+// Authors
+// Asmita Bhar
+//
+
+ img = mattolist(image);
+ points = opencv_HoughLines(img,theta,rho);
+endfunction