|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
fresh install, bwmorph running into Index exceeds matrix dimensionHi, 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 charlton@... P.O. Box 50960 Columbia, SC 29250 _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: fresh install, bwmorph running into Index exceeds matrix dimensionons, 04 11 2009 kl. 13:14 -0500, skrev Charlton Galvarino:
> 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> I cannot replicate this problem. Can you send the image to me or make it available somewhere on the internet so I can try? One problem might be that your image is not binary. What do you get when you run class (BW) you should get 'logical' if your image is indeed binary. Søren _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
RE: fresh install, bwmorph running into Index exceeds matrix dimension> One problem might be that your image is not binary. What do you get when
> you run > > class (BW) > > you should get 'logical' if your image is indeed binary. You hit the nail on the head. Once I made it monochrome, everything works wonderfully. Thank you for such a quick response. Charlton _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
| Free embeddable forum powered by Nabble | Forum Help |