Template
69 lines
1.9 KiB
C
69 lines
1.9 KiB
C
/*!
|
|
*************************************************************************************
|
|
* \file fercOpenCVApi.h
|
|
*
|
|
* \brief
|
|
* Functions to use OpenCV library in JM Software
|
|
*
|
|
* \date
|
|
* 29.11.2011
|
|
*
|
|
* \author
|
|
* Jo�o Carreira
|
|
*
|
|
*************************************************************************************
|
|
*/
|
|
|
|
|
|
#ifndef _FERC_OPENCV_API_H
|
|
#define _FERC_OPENCV_API_H
|
|
|
|
|
|
#include "mbuffer.h"
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "global.h"
|
|
#include "mbuffer.h"
|
|
#include "memalloc.h"
|
|
|
|
|
|
|
|
|
|
typedef struct{
|
|
unsigned char *memory;
|
|
unsigned char **pY;
|
|
unsigned char **pU;
|
|
unsigned char **pV;
|
|
|
|
unsigned int width;
|
|
unsigned int heigh;
|
|
}T_FRAME;
|
|
|
|
enum Disparity{
|
|
LOAD = 0,
|
|
VAR = 1,
|
|
BM = 2,
|
|
SGBM = 3,
|
|
};
|
|
|
|
typedef enum filters{
|
|
NONE_FILTER = 0,
|
|
MEAN_FILTER = 1,
|
|
MEDIAN_FILTER = 2,
|
|
}CVFILTERTYPES;
|
|
|
|
extern int CheckOpenCVUsage(void);
|
|
|
|
extern void showStorablePicture(VideoParameters *p_Vid ,StorablePicture *Picture, int SymbolSize, int show_uv, char * WindowName, int wait);
|
|
extern void saveStorablePicture( VideoParameters *p_Vid, char *filename , StorablePicture *Picture , int SymbolSize, int save_uv );
|
|
|
|
extern void OpenCVCloseWindows (char *WindowName);
|
|
|
|
extern void cvResizeStorablePicture( VideoParameters *p_Vid , StorablePicture *p_Input, StorablePicture *p_Output );
|
|
extern void cvDisparity( VideoParameters *p_Vid , StorablePicture *Ref, StorablePicture *NonRef, StorablePicture *Disparity, int Method, int WindowRatio, int Direction );
|
|
extern void cvFindImageContours( VideoParameters *p_Vid , StorablePicture *InputImage, StorablePicture *OutputContours );
|
|
extern void cvImageFilter( VideoParameters *p_Vid , StorablePicture *InputImage, StorablePicture *OutputImage, CVFILTERTYPES Filter, int KernelSize );
|
|
extern void cvLoadStorablePicture( VideoParameters *p_Vid, char *filename , StorablePicture *Picture , int SymbolSize, int load_uv );
|
|
#endif
|