###################################################################### GIOTTO PACKAGE ###################################################################### Author: Branislav Micusik, ------ Center for Machine Perception, Czech Technical University in Prague micusb1@cmp.felk.cvut.cz http://cmp.felk.cvut.cz Date: 2 May 2001 ----- Description: ------------ Giotto package is tool for acquisition images from Giotto parallel CMOS sensor directly from Matlab. Compiling note: --------------- First you must set default C++ compiler as Microsoft Visual C++ compiler. Go to ~matlab/bin directory and write mex -setup. Choose specific compiler. Then you must change file mexopts.bat from your profile directory. This file is different for most computers. Find this file and copy it to the home directory. Find specific row and add the option /NODEFAULTLIB:LIBC as follow: set LINKFLAGS=/dll /export:mexFunction /MAP %LIB_NAME%1.lib %LIB_NAME%2.lib /implib:%LIB_NAME%.lib /NODEFAULTLIB:LIBC For compiling run compile.m. IMPORTANT: ---------- IT IS IMPORTANT to have set path to a directory where calimage.data file is located!!! Without this file, grabed image is always white. Using: ------ write in Matlab: devinfo=giottoopen('LPT1'); giottocal(devinfo); //only if you want to calibrate the camera image=giottograb(devinfo); //for acquisition another asquisition: image=giottograb(devinfo); //for acquisition Note: ----- For calibrating the CMOS sensor is good to use half of white Ping-Pong ball.