From: <car...@us...> - 2011-12-16 20:33:15
|
Revision: 9415 http://octave.svn.sourceforge.net/octave/?rev=9415&view=rev Author: carandraug Date: 2011-12-16 20:33:08 +0000 (Fri, 16 Dec 2011) Log Message: ----------- normxcorr2: new function is wrapper for xcorr2 from signal package Modified Paths: -------------- trunk/octave-forge/main/image/DESCRIPTION trunk/octave-forge/main/image/INDEX trunk/octave-forge/main/image/NEWS Added Paths: ----------- trunk/octave-forge/main/image/inst/normxcorr2.m Modified: trunk/octave-forge/main/image/DESCRIPTION =================================================================== --- trunk/octave-forge/main/image/DESCRIPTION 2011-12-16 20:32:15 UTC (rev 9414) +++ trunk/octave-forge/main/image/DESCRIPTION 2011-12-16 20:33:08 UTC (rev 9415) @@ -9,7 +9,7 @@ The package also provides functions for feature extraction, image statistics, spatial and geometric transformations, morphological operations, linear filtering, and much more. -Depends: octave (>= 3.4.0) +Depends: octave (>= 3.4.0), signal Autoload: yes License: GPL version 2 or later Url: http://octave.sf.net Modified: trunk/octave-forge/main/image/INDEX =================================================================== --- trunk/octave-forge/main/image/INDEX 2011-12-16 20:32:15 UTC (rev 9414) +++ trunk/octave-forge/main/image/INDEX 2011-12-16 20:33:08 UTC (rev 9415) @@ -16,6 +16,7 @@ hough_line hough_circle immaximas + normxcorr2 rangefilt regionprops stdfilt Modified: trunk/octave-forge/main/image/NEWS =================================================================== --- trunk/octave-forge/main/image/NEWS 2011-12-16 20:32:15 UTC (rev 9414) +++ trunk/octave-forge/main/image/NEWS 2011-12-16 20:33:08 UTC (rev 9415) @@ -18,6 +18,7 @@ iptchecknargin iptcheckstrs iptnum2ordinal + normxcorr2 ** The following functions have been deprecated in previous releases of the image package and have now been removed: Added: trunk/octave-forge/main/image/inst/normxcorr2.m =================================================================== --- trunk/octave-forge/main/image/inst/normxcorr2.m (rev 0) +++ trunk/octave-forge/main/image/inst/normxcorr2.m 2011-12-16 20:33:08 UTC (rev 9415) @@ -0,0 +1,31 @@ +## Copyright (C) 2011 Carnë Draug <car...@gm...> +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, see <http://www.gnu.org/licenses/>. + +## -*- texinfo -*- +## @deftypefn {Function File} {@var{cc} =} normxcorr2 (@var{template}, @var{img}) +## @deftypefn {Function File} {@var{cc} =} normxcorr2 (@var{template}, @var{img}) +## Compute the normalized 2D cross correlation. +## +## The output matrix @var{cc} shows the correlation coefficients of @var{template} +## for each position in @var{img}. +## @seealso{conv2, corr2, xcorr2} +## @end deftypefn + +function cc = normxcorr2 (temp, img) + if (nargin != 2) + print_usage; + endif + cc = xcorr2 (img, temp, "coeff"); +endfunction This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |