tor, 26 03 2009 kl. 16:09 +0200, skrev Kustaa Nyholm:
> I'm trying to run the "Camera Calibration Toolbox for Matlab"
> 
> http://www.vision.caltech.edu/bouguetj/calib_doc/
> 
> (in Mac OS X (Leopard) using MacPorts)
> 
> with Octave and IMO been rather successful. Kudos to Octave,
> octave-forge and all the good people who support it.

Yeah this toolbox works quite well with Octave unless you want the GUI.
Octave does not have any of the GUI function for creating buttons etc.,
and getting them might be some work. Perhaps the jHandles graphics
backend has some support for for simple things like buttons, etc., but
I'm not sure.

I have used the toolbox extensively in industrial settings with Octave
(for automated calibration), and it worked quite well.

> One or two gremlins in the works though.
> 
> 1) zoom on;
> 
> In one or two places in the .m there is a statement:
> 
> zoom on;
> 
> which the octave forge (no op) compatibility function does not recognize

You could also create a function called 'zoom' that does nothing.

> No problem, I've just commented this out, but looking at the
> Toolbox instructions I suspect that this is used (under Matlab) to
> kind of "pause until right click" -effect. Can anyone tell me if
> this is so and suggest a Octave alternative.

I just think the zoom function allows you to enable/disable the zoom
button in Matlab. I'd say it's safe to ignore this.

> 2) rotate3d on;

I think this is like the zoom function in that 'rotate3d' just
enables/disables a button in the Matlab GUI. I think it's safe to ignore
it.

> 3) uicontrol
> 
> 
> I don't seem to be able to find 'uicontrol'.

Yeah, as I said above this would require some work to get running. I'd
recommend just not running 'calib_gui' and instead call the relevant
functions from the prompt.

> 4) .m or .mat
> 
> The camera calibration parameters are saved into a text file
> ('Calib_Results.mat") . Except that the code when run
> under Octave saved the file with the extension '.m'
> Have not investigated this in detail yet, but is there
> some incompatibility and if so any words of wisdom on this issue?

This sounds odd. I haven't experienced that. Sounds like a bug, but I
think you would have to narrow it down a bit. What happens if you do

  my_var = []
  save my_file my_var

What is the name of the resulting file? Is it called 'my_file.mat' or 
'my_file.m'?

> This (Camera Calibration Toolbox) is quite useful package for anyone
> interested in Camera Calibration and seems to be 99.9% compatible with
> Octave so I would like to make it 100% compatible with both Matlab
> and Octave. Any pointers to the right direction would be appreciated.

I think it's just the GUI stuff that's missing. Everything else seems to
work very well with this package. Making GUI stuff work is, however, a
fairly large task since it requires not using gnuplot. If you really
want to invest the time to make this happen, then you should start a
thread on [email protected]

Søren


------------------------------------------------------------------------------
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to