octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46160] image package: normxcorr2 returns comp


From: Hartmut
Subject: [Octave-bug-tracker] [bug #46160] image package: normxcorr2 returns complex values sometimes
Date: Wed, 21 Oct 2015 18:43:23 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Follow-up Comment #4, bug #46160 (project octave):

If someone fixes this, could you please also change the first sentence in the
doc string. It reads currently:


     Returns the the cross-correlation coefficient of matrices TEMPLATE
     and IMG, a matrix of the same size as IMG with values ranging
     between -1 and 1.


This is incorrect, since the resulting matrix is BIGGER than the image,
because the image is padded. This behavior is totally fine and Matlab
compatible, just the doc string is misleading here. How about this one
instead:


     Returns the the cross-correlation coefficient of matrices TEMPLATE
     and IMG, a matrix of (roughly) the same size as IMG with values ranging
     between -1 and 1.

    [... the rest of the doc string ... somewhere at the end finally:]

    The size of the cross-correlation matrix is slightly bigger than IMG
    because the input image is padded during the process.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46160>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]