|
From: | Przemek Klosowski |
Subject: | Re: Implementing SIFT algorithm |
Date: | Wed, 17 Aug 2011 10:04:45 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110707 Thunderbird/5.0 |
On 08/17/2011 02:18 AM, pavan padmashali wrote:
error: subscript indices must be positive integers or logicals error: called from : error:C:\Octave\3.2.4_gcc-4.4.0\bin\appendimages.m at line 14, column 22
...
code in appendimages.m which causes error : line 11 :if (rows1 < rows2) line 12 : image1(rows2,1) = 0; line 13 :else line 14 : image2(rows1,1) = 0; line 15 :end
So, it appears that an index in line 14 is not positive. I bet you that rows1 is zero or negative; confirm that this is indeed the case by either running the octave debugger and breaking in line 14, or by inserting disp(rows1) in that line, and track down why it is so, presumably by looking at the first 10 lines of appendimages.m because it is not passed as a parameter, so it must be calculated in there
(it could also be a global variable).
[Prev in Thread] | Current Thread | [Next in Thread] |