2

MatLab Toolbox for Camera Calibration and Simulation

I found a cool toolbox!!

I tried the basic functions for synthesize images with different parameters. It runs faster than my MatLab code! I’ll dive into the code for more detail, especially how to apply intrinsic/extrinsic parameters and lens distortion to known object such as a chessboard.

A function dibuja_ptos() renders either control points or a chessboard. This switching is done by menu Calibration points->Chessboard (only coplanar), calling a function menu_board_T_Callback(), and Calibration points->Calibration points, calling a function menu_puntos_genera_T_Callback().
Unfortunately, dibuja_ptos() is not what I expected… The function

  1. first apply intrinsic/extrinsic parameters and lens distortion to control points
  2. then render either the points or corresponding rectangle on a plot

Therefore, I cannot apply the transformation to an arbitrary input image.

Hmm, should I go back to PovRay then?

Advertisements
3

K-SVD toolbox installation

This is a memo how to install K-SVD toolbox provided by Ron Rubinstein.

For K-SVD toolbox installation, we need OMP toolbox. Thus, installation needs 2 steps, OMP installation and then K-SVD installation.

  1. OMP toolbox installation
    1. Change directory to a private directory inside the uncompressed zip file ompbox10.
    2. Run make.
    3. Set path to the above directory ompbox10.
  2. K-SVD toolbox installation
    1. Change directory to a private directory inside the uncompressed zip file ksvdbox13.
    2. Run make.
    3. Set path to the above directory ksvdbox13.
3

CurveLab installation

This post is memo telling how to install CurveLab in MatLab.

CurveLab is a toolbox the Fast Discrete Curvelet Transform both in MatLab and C++. You can find the detail from the website. Current version is 2.1.2.

Installation is very simple. All we have to do is compilation and path setting. You can find the detail of the installation from the user’s guide.

  1. Before installation
    The implementation has 2 types, the wrapping-based transform and the USFFT-based one. These 2 versions are separated by directory setting as a directory fdct_wrapping_matlab and a directory fdct_usfft_matlab. Your task as described hereinbelow should be done for each.
  2. Path setting
    In a directory fdct_***_matlab, there is a path setting function fdct_***_path. By running the function, path setting is done.
    Note: fdct_wrapping_matlab directory doesn’t have fdct_wrapping_path function. You should create the file by copy & paste from the USFFT one.
0

WaveLab installation

This post is memo telling how to install WaveLab850 in MatLab.

WaveLab is a collection of MatLab functions of wavelet analysis related algorithms such as wavelet transform and matching pursuit. You can find the detail from the website. Current version is 850, meaning probably 8.50.

Installation is very simple. All we have to do is just path setting by running a function WavePath that is located in the compressed file as
WavePath;
Once the path setting is done, a message “Welcome to WaveLab” appears on the command window.

Let me note 2 issues of WaveLab850.
In the function WavePath, a path to WaveLab is defined as
  WAVELABPATH=strcat(matlabroot,’\toolbox\Wavelab850\’)
at line 31 for Windows in WavePath.m. If you locate the unpacked zip file at another place, path setting fails. One solution is to locate the unpacked zip file at [matlabroot ‘\toolbox\Wavelab850\’]. Otherwise, you should modify the path at line 31 according to the right location.

The other issue is missing file. As far as I know, a function CircularShift is missing. You can find the file on the web.