[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selecting elements in an image based on area
From: |
John Swensen |
Subject: |
Re: Selecting elements in an image based on area |
Date: |
Wed, 13 Jul 2011 11:28:26 -0400 |
On Jul 13, 2011, at 11:08 AM, Jordi Gutiérrez Hermoso wrote:
> 2011/7/13 Jordi Gutiérrez Hermoso <address@hidden>:
>> 2011/7/10 Samuel Setchell <address@hidden>:
>>> These are the errors I receive when trying to call bwlabel.m :
>>>
>>> octave-3.2.3:43> label=bwlabel(top)
>>> parse error near line 44 of file /Users/samsetchell/Desktop/BER10/bwlabel.m
>>>
>>> syntax error
>>>
>>>>>> function [im2,npix,bb] = bwlabel(im,...)
>>> ^
>>>
>>> parse error near line 44 of file /Users/samsetchell/Desktop/BER10/bwlabel.m
>>>
>>> invalid parameter list
>>
>> This is very strange. Can you post the bwlabel.m file you're using?
>> Where did you acquire it? Also please post the code you're running.
>
> Silly me, I just realised that Octave's bwlabel is an oct file, not an
> m-file. So you grabbed some bwlabel file from somewhere, not from
> Octave Forge's image package, and it doesn't work with Octave. Is that
> Matlab's bwlabel? It looks like you're using Mac OS X, is that right?
> Did you attempt to do "pkg install image-1.0.14.tar.gz" from Octave?
> Did it fail to compile?
>
> I'm not sure what's the easiest way to get the Octave-Forge packages
> installed on Mac OS X. They me be already packaged by Fink or Macports
> or one of those, but I doubt it. Try to install it as described above
> and see how far along we get.
>
> HTH,
> - Jordi G. H.
If you are OK using Octave 3.2.4, Macports already has a package octave-image.
If you want to use Octave 3.4.2, Macports also has a package octave-devel but
you will have to compile the image package yourself. However, I have found
that as long as I had developer tools set up properly to get the octave-devel
package to install properly then most of the packages from
octave.sourceforge.net compile also.
John Swensen
- Selecting elements in an image based on area, Samuel Setchell, 2011/07/01
- Re: Selecting elements in an image based on area, Jordi Gutiérrez Hermoso, 2011/07/01
- Message not available
- Re: Selecting elements in an image based on area, Jordi Gutiérrez Hermoso, 2011/07/07
- Re: Selecting elements in an image based on area, Samuel Setchell, 2011/07/10
- Re: Selecting elements in an image based on area, Jordi Gutiérrez Hermoso, 2011/07/13
- Re: Selecting elements in an image based on area, Jordi Gutiérrez Hermoso, 2011/07/13
- Re: Selecting elements in an image based on area, Samuel Setchell, 2011/07/13
- Re: Selecting elements in an image based on area, Jordi Gutiérrez Hermoso, 2011/07/13
- Re: Selecting elements in an image based on area, Jordi Gutiérrez Hermoso, 2011/07/13
- Re: Selecting elements in an image based on area, Samuel Setchell, 2011/07/16
- Re: Selecting elements in an image based on area,
John Swensen <=