summaryrefslogtreecommitdiff
path: root/macros/genCheckerboardPoints.sci
diff options
context:
space:
mode:
authorshamikam2017-01-16 02:56:17 +0530
committershamikam2017-01-16 02:56:17 +0530
commita6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch)
treee806e966b06a53388fb300d89534354b222c2cad /macros/genCheckerboardPoints.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/genCheckerboardPoints.sci')
-rw-r--r--macros/genCheckerboardPoints.sci26
1 files changed, 26 insertions, 0 deletions
diff --git a/macros/genCheckerboardPoints.sci b/macros/genCheckerboardPoints.sci
new file mode 100644
index 0000000..53528bc
--- /dev/null
+++ b/macros/genCheckerboardPoints.sci
@@ -0,0 +1,26 @@
+function [ worldPoints ] = genCheckerboardPoints(boardSize, squareSize)
+// This function returns list of checkerboard corner points.
+//
+// Calling Sequence
+// worldPoints = genCheckerboardPoints(boardSize, squareSize);
+//
+// Parameters
+// worldPoints: A list of size N-by-2 matrix containing x and y co-ordinates of the checkerboard corner points. The origin is set to lower-right corner of the top-left square.
+// boardSize: Size of the checkerboard.
+// squareSize: Size of each of square in the checkerboard.
+//
+// Description
+// Return a list of size N-by-2, which contains the corner points of all squares of a checkerboard.
+//
+// Examples
+// boardSize = [10 10];
+// squareSize = 8;
+// worldPoints = genCheckerboardPoints(boardSize, squareSize);
+//
+// Authors
+// Tanmay Chaudhari
+
+ a=opencv_genCheckerboardPoints(boardSize, squareSize);
+ worldPoints(:,:,1)=a(1);
+
+endfunction