Pulnix TMC-7DSP Manuel d'utilisateur Page 23

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 32
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 22
22
Appendix II
‘FrameCapt.c’
/*
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
*/
/* Let's use strict type checking in the example */
#define STRICT
#define GLOBAL__
#include <math.h>
#include "FrameCapt.h"
#include "mex.h" /*
Matlab Executable library */
#define NDIMS 3
#define TOTAL_ELEMENTS 1228800//307200// 921600
#define TRIGGER_EXTERNAL_LINE 2
static HINSTANCE hInst;
static BOOL RGBDataFlag =0;
static HBITMAP image;
static BOOL init;
GLOBAL DEVINFO CurDevInfo EQU({0});
BOOL freeMemory();
// These have been moved from Acquire to this place for Drawing RGB data , hence
they need
// to be initialised in Acquire
ULNG ulHeight = 0L;
ULNG ulWidth = 0L;
HGLOBAL hAcquireBuf = NULL;
HPUCHR hpAcquireBuf = NULL;
OLT_FG_FRAME_ID FrameId = 0;
OLT_FG_FRAME_INFO *Frame;
Vue de la page 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 31 32

Commentaires sur ces manuels

Pas de commentaire