This program supports the Image processing micon car production kit (M-S348).
Dependencies: GR-PEACH_video mbed
image_process.h
- Committer:
- TetsuyaKonno
- Date:
- 2018-10-30
- Revision:
- 0:00b6f7454ada
File content as of revision 0:00b6f7454ada:
//------------------------------------------------------------------//
//Supported MCU: RZ/A1H
//File Contents: Image Processing API ( Header file )
//Version number: Ver.1.00
//Date: 2018.10.30
//Copyright: Renesas Electronics Corporation
// Hitachi Document Solutions Co., Ltd.
//------------------------------------------------------------------//
//Struct
//------------------------------------------------------------------//
typedef struct {
volatile int p; //percent
volatile int x; //Point X
volatile int y; //Point Y
volatile double sdevi; //Standard_Deviation
double devi[100]; //Deviation
unsigned char binary[100]; //Binary
volatile int w; //Binary Width pixel
volatile int h; //Binary Height pixel
} ImagePartPattern;
//------------------------------------------------------------------//
//Prototype( Image process )
//------------------------------------------------------------------//
void ImageCopy( unsigned char *BuffAddrIn, int HW, int VW, unsigned char *BuffAddrOut, int Frame );
void Extraction_Brightness( unsigned char *BuffAddrIn, int HW, int VW, unsigned char *BuffAddrOut, int Frame );
void ImageReduction( unsigned char *BuffAddrIn, int HW, int VW, unsigned char *BuffAddrOut, double Percent );
void Binarization( unsigned char *BuffAddrIn, int HW, int VW, unsigned char *BuffAddrOut, int threshold );
//------------------------------------------------------------------//
//Prototype( Mark detection process )
//------------------------------------------------------------------//
void Image_part_Extraction( unsigned char *BuffAddrIn, int HW, int VW,
int CutPointX, int CutPointY, unsigned char *BuffAddrOut, int Xsize, int Ysize );
double Standard_Deviation( unsigned char *data, double *Devi, int Xsize, int Ysize );
double Covariance( double *Devi_A, double *Devi_B, int Xsize, int Ysize );
int Judgement_ImageMatching( double Covari, double SDevi_A, double SDevi_B );
void PatternMatching_process( unsigned char *BuffAddrIn, int HW, int VW,
ImagePartPattern *Temp, int Xs, int Xe, int Ys, int Ye );
//------------------------------------------------------------------//
// End of file
//------------------------------------------------------------------//