from
FireWire Vision Tools
by Frank Wornle
A simple MATLAB interface to "FireWire Digital Cameras" and the Color Machine Vision algorithms "CMV
|
| cc.m |
[myInstPath myFileName dummy dummy] = fileparts(pwd);
% determine driver installation -- assumed to be in folder _CMU1394
%myDriverPath = 'C:\Documents and Settings\fwornle\My Documents\_cProgs\FireWire\__CMU1394\';
currPath = pwd;
cd(fullfile(myInstPath , '_CMU1394', '.'));
myDriverPath = pwd;
cd(currPath);
clear currPath
myInclude = fullfile(myDriverPath, 'include');
myLib = fullfile(myDriverPath, 'lib', '1394camera.lib');
myMexCommand = ['mex -v -I"' myInclude '" ' myFileName '.cpp cmvision.cpp "' myLib '"'];
% clear old driver
eval(['clear ' myFileName ' mex'])
% recompile
disp(['Compiling using: ' myMexCommand])
eval(myMexCommand);
|
|
Contact us at files@mathworks.com