Hi
I found a bug in subpixel refinement of local maxima by parabolic
interpolation.
The amount of shift to each direction is same to that to the first
direction.

I suggest a solution:

in line 82,
w  = 1;
ws = w*cumprod([1; s(:)]); ## newly added

in line 89,
indminus1 = max(ind-ws(d),1); ## replace "w" with "ws(d)"
indplus1  = min(ind+ws(d),numel(immx)); ## replace "w" with "ws(d)"

Thank you
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to