help-octave
[Top][All Lists]
Advanced

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

Re: help with bwmorph on OS X


From: Søren Hauberg
Subject: Re: help with bwmorph on OS X
Date: Mon, 26 Oct 2009 11:32:36 +0100

man, 26 10 2009 kl. 11:19 +0700, skrev Justin MacCarthy:
> octave-3.2.3:5> pkg install image-1.0.10.tar.gz
> In file included from
> /Applications/Octave.app/Contents/Resources/include/jpeglib.h:24,
>                  from jpgwrite.cc:18:
> /Applications/Octave.app/Contents/Resources/include/jconfig.h:12:1:
> warning: "HAVE_STDLIB_H" redefined
> In file included from
> /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/oct.h:31,
>                  from jpgwrite.cc:11:
> /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/config.h:699:1:
> warning: this is the location of the previous definition
> In file included from
> /Applications/Octave.app/Contents/Resources/include/jpeglib.h:24,
>                  from jpgread.cc:49:
> /Applications/Octave.app/Contents/Resources/include/jconfig.h:12:1:
> warning: "HAVE_STDLIB_H" redefined
> In file included from
> /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/oct.h:31,
>                  from jpgread.cc:41:
> /Applications/Octave.app/Contents/Resources/include/octave-3.2.3/octave/config.h:699:1:
> warning: this is the location of the previous definition

I guess these warnings are okay to ignore, although it would be nice to
get rid of them.

> also when I go to use bwmorph I'm getting another error
> 
> octave-3.2.3:6>
> 
> error: `swap' undefined near line 550 column 10
> error: called from:
> error:   /Users/macarthy/octave/image-1.0.10/bwmorph.m at line 550, column 9
> error:   /Users/macarthy/octave/myscript.m at line 17, column 12
> octave-3.2.3:6>
> 
> do I need to add another package for that swap function ?

No, this seems to be a bug in the 'bwmorph' function. I've uploaded a
fix to SVN, so this will be corrected in the next version of the 'image'
package. Until this is released, you can create a function with the
following contents somewhere in your path

  function [a, b] = swap (b, a)
  endfunction

> Is there a why to find out what package adds what function?

You can go to 

  http://octave.sourceforge.net/doc/index.html

and browse the function names alphabetically. After each function name
you'll see a package name. For instance, after 'edge' on

  http://octave.sourceforge.net/doc/E.html#E

you'll see '[image]' which informs you that the 'edge' function is in
the 'image' package.

Søren



reply via email to

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