I am using Octav3.6.2 with image package 2.0.0 on Windows. I noticed that the houghtf will call hough_line, but the latter is missing from the folder share\octave\packages\image-2.0.0
Carnë Draug
2012-12-12
How did you install the image package? The file should be there. Note that hough_line was written in C++ and so should be an oct file, not in the same directory as the other .m files.
golchen
2012-12-13
-I used pkg install image-2.0.0.tar.gz (and other packages it depends)-When I tried next commands:
a=imread('someimage'); houghtf(a);
I got error msg:
error: `hough_line' undefined near line 94 column 21 error: called from: error: c:\program files\octave-3.6.2\share\octave\packages\image-2.0.0\houghtf.m at line 94, column 19
Do I need to add path of the oct file you mentioned? Unfortunately I cannot find oct file named hough_line.
Thank you
Carnë Draug
2012-12-14
Seems to me you may need to reinstall the image package. Are you using the MSVS or the MinGW version of Octave in windows? Did you had to load the image package to make houghtf available? Or did you use addpath?
golchen
2012-12-14
I am using MSVS version (octave-3.6.2-vs2010-setup.exe) with image package (image-2.0.0.tar.gz); I used addpath before call houghtf
pkgpath=genpath('c:\program files\octave-3.6.2\share\octave\packages') addpath(pkgpath)
Carnë Draug
2012-12-14
Yeah! You're doing it wrong. You need to load the package, not add its path. If the package is indeed installed correctly (I have my doubts, see below) pkg list will display the image package and show it as version 2.0.0. In that case, use pkg load image at the Octave prompt.
Anyway, I was under the impression that pkg install didn't even worked in windows. Are you sure that pkg install did not return a bunch of errors? As far as I know, no one has built the new version of the image package for MSVS yet. If you need it, you better ask on the mailing list.
Carnë Draug
2012-12-14
golchen
2012-12-14
Command "pkg install" did not give any warning, next is copied from console:
octave-3.6.2.exe:6> pkg install -auto E:\xx\Downloads\Octave\image-2.0.0.tar.gz For information about changes from previous versions of the image package, run 'news ("image")'.
When used "pkg list", it did diaplay the packages I installed; next is the print-out:
octave-3.6.2.exe:12> pkg list Package Name | Version | Installation directory ---------------+---------+----------------------- control *| 2.4.1 | C:\Program Files\Octave-3.6.2\share\octave\packages\control-2.4.1 general *| 1.3.2 | C:\Program Files\Octave-3.6.2\share\octave\packages\general-1.3.2 image *| 2.0.0 | C:\Program Files\Octave-3.6.2\share\octave\packages\image-2.0.0 java | 1.2.8 | C:\Program Files\Octave-3.6.2\share\octave\packages\java-1.2.8 miscellaneous *| 1.2.0 | C:\Program Files\Octave-3.6.2\share\octave\packages\miscellaneous-1.2.0 optim *| 1.2.2 | C:\Program Files\Octave-3.6.2\share\octave\packages\optim-1.2.2 signal *| 1.2.0 | C:\Program Files\Octave-3.6.2\share\octave\packages\signal-1.2.0 specfun *| 1.1.0 | C:\Program Files\Octave-3.6.2\share\octave\packages\specfun-1.1.0 struct *| 1.0.10 | C:\Program Files\Octave-3.6.2\share\octave\packages\struct-1.0.10
I also tried to use pkg load image, it report errors.
octave-3.6.2.exe:5> pkg load image warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name warning: autoload: `__control_slicot_functions__.oct' is not an absolute file name
Carnë Draug
2012-12-14
As I said, my understanding is that installing a package using pkg does not work properly in windows. Hence the reason for the individual installers. You are probably just facig a case where it does not work. My guess is that warnings you are getting from the control is another such case.
Anyway, the hough_line function is the package, your example works just fine for me with the image package. You should ask on the help mailing list if someone can help you with this problem. I certainly can't help you with windows problems.