...
apbase = actxserver('apbaseCom.ApBase');
camera = apapbase.Create(0);
camera.LoadIniPreset('', '');
raw = camera.GrabFrame;
rgb = camera.ColorPipe(raw);
...
...
apbase = actxserver('apbaseCom.ApBase');
camera = apapbase.Create(0);
camera.LoadIniPreset('', '');
raw = camera.GrabFrame;
rgb = camera.ColorPipe(raw);
...