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/SURFPoints.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/SURFPoints.sci')
-rw-r--r-- | macros/SURFPoints.sci | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/macros/SURFPoints.sci b/macros/SURFPoints.sci new file mode 100644 index 0000000..ac305d1 --- /dev/null +++ b/macros/SURFPoints.sci @@ -0,0 +1,33 @@ +function varargout=SURFPoints(varargin) +// This function returns a SURFPoints struct for storing SURF interest points. +// +// Calling Sequence +// myStruct = SURFPoints(Location of Interest Points) +// +// Parameters +// results: SURFPoints struct which contains Location, Orientation, Metric, SignOfLaplacian, Scale and Count. +// Location: Location of Interest Point. +// +// Description +// This function returns a SURFPoints struct with default values. +// +// Examples +// image = imread('sample.jpg'); +// results = detectSURFFeatures(image); +// myStruct = SURFPoints(results.KeyPoints); +// +// Authors +// Shashank Shekhar + [lhs rhs]=argn(0); + if lhs<1 then + error(msprintf(" Not enough output arguments. One expected")) + elseif lhs>1 then + error(msprintf(" Too many output arguments. One expected")) + end + if rhs>1 then + error(msprintf(" Too many input arguments. One expected")) + end + [a b c d e f] = ocv_SURFPoints(varargin(1)); + varargout(1) = struct('KeyPoints', a, 'Orientation', b, 'Metric', c ,'SignOfLaplacian', d,'Scale', e, 'Count', f ); +endfunction + |