16
Appendix I
‘FrameCapt.h’
/*
This program is based on a sample program called
"acq2host.c"/"acq2host.h"
produced by Data Translation.
Program grabs an image from camera (Pulnix TMC-7DSP connected to DT 3153
frame grabber board) and saves it into an 3D array. This array is transferred
into
Matlab using CMEX protocol. Program must be compiled and executed from Matlab.
Tranferred array must be processed in Matlab using matrix functions before it
can be handled as a normal RGB picture. See "Acquire.m".
Date: 11/29/04
Author: Sakari Kettunen
*/
#if !defined(FrameCapt_H__)
#define FrameCapt_H__ 1
#include <windows.h> /* required for all Windows applications
*/
#include <windowsx.h> /* some nice macros, etc. */
#include <assert.h> /* for asertion testing */
#include <stdlib.h> /* for atoi() prototype */
#include <memory.h> /* for _fmemset() */
#include <stdio.h> /* for sprintf() */
#include <ctype.h> /* for ascii test macros */
#include <string.h>
#include "olwintyp.h" /* standard DT-Open Layers data types
and symbolic constants */
#include "olimgapi.h" /* interface to DT-Open Layers Imaging
API */
#include "olfgapi.h" /* interface to DT-Open Layers Frame
Grabber API */
#include "olimgdev.h"
#include "olfg.h"
#include "dtColorSdk.h"
//#include "resource.h"
/* Assume C declarations for C++ callers */
#ifdef __cplusplus
extern "C" {
#endif
/* Data types used by app */
/* This structure holds information about the range of capabilities supported */
Comentarios a estos manuales