help-octave
[Top][All Lists]
Advanced

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

fresh install, bwmorph running into Index exceeds matrix dimension


From: Charlton Galvarino
Subject: fresh install, bwmorph running into Index exceeds matrix dimension
Date: Wed, 4 Nov 2009 13:14:22 -0500

Hi, list.

I'm brand new to Octave and am afraid that I don't have Matlab experience to 
back me up.  I have scoured the archives and googled around, but I haven't 
found any clear winners as to why a brand new Octave install fails as follows:

octave:2> BW = imread('/home/cpurvis/Temp/20091002fronts.gif');
octave:3> BW2 = bwmorph(BW,'thin');
error: A(I): Index exceeds matrix dimension.
error: called from:
error:   /usr/local/octave/share/octave/packages/image-1.0.10/applylut.m at 
line 44, column 4
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error:   /usr/local/octave/share/octave/packages/image-1.0.10/bwmorph.m at line 
551, column 5
octave:3>

This is a valid image, and I can even write it back out to a new .gif, and it 
looks fine.  The image stats are as follows:

Driver: GIF/Graphics Interchange Format (.gif)
Size is 2797, 2234
Coordinate System is `'
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 2234.0)
Upper Right ( 2797.0,    0.0)
Lower Right ( 2797.0, 2234.0)
Center      ( 1398.5, 1117.0)
Band 1 Block=2797x1 Type=Byte, ColorInterp=Palette
  Metadata:
    GIF_BACKGROUND=0
  Color Table (RGB with 4 entries)
    0: 255,255,255,255
    1: 206,206,206,255
    2: 0,0,0,255
    3: 0,0,0,255

I can printf the size of the image after it's loaded, no problem.  Converting 
it to .jpg results in the same error.

Am I missing something very obvious that is a result of me being an Octave 
newbie?  If so, I'm dreadfully sorry, and I can continue to printf debug 
messages as I work backwards.

My stats are as follows and my thanks is in advance!

----------------------------------------------------------------------
GNU Octave Version 3.2.3
GNU Octave License: GNU General Public License
Operating System: Linux 2.6.9-55.0.6.ELsmp #1 SMP Thu Aug 23 11:11:20 EDT 2007 
i686
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control *|  1.0.11 | /usr/local/octave/share/octave/packages/control-1.0.11
       image *|  1.0.10 | /usr/local/octave/share/octave/packages/image-1.0.10





Charlton Galvarino
1 (803) 233-6205 : voice
1 (803) 223-9579 :   fax
address@hidden

P.O. Box 50960
Columbia, SC 29250




reply via email to

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