Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: GR-PEACH_video mbed
image_process.h
00001 //------------------------------------------------------------------// 00002 //Supported MCU: RZ/A1H 00003 //File Contents: Image Processing API ( Header file ) 00004 //Version number: Ver.1.00 00005 //Date: 2018.10.30 00006 //Copyright: Renesas Electronics Corporation 00007 // Hitachi Document Solutions Co., Ltd. 00008 //------------------------------------------------------------------// 00009 //Struct 00010 //------------------------------------------------------------------// 00011 typedef struct { 00012 volatile int p; //percent 00013 volatile int x; //Point X 00014 volatile int y; //Point Y 00015 volatile double sdevi; //Standard_Deviation 00016 double devi[100]; //Deviation 00017 unsigned char binary[100]; //Binary 00018 volatile int w; //Binary Width pixel 00019 volatile int h; //Binary Height pixel 00020 } ImagePartPattern; 00021 00022 //------------------------------------------------------------------// 00023 //Prototype( Image process ) 00024 //------------------------------------------------------------------// 00025 void ImageCopy( unsigned char *BuffAddrIn, int HW, int VW, unsigned char *BuffAddrOut, int Frame ); 00026 void Extraction_Brightness( unsigned char *BuffAddrIn, int HW, int VW, unsigned char *BuffAddrOut, int Frame ); 00027 void ImageReduction( unsigned char *BuffAddrIn, int HW, int VW, unsigned char *BuffAddrOut, double Percent ); 00028 void Binarization( unsigned char *BuffAddrIn, int HW, int VW, unsigned char *BuffAddrOut, int threshold ); 00029 00030 //------------------------------------------------------------------// 00031 //Prototype( Mark detection process ) 00032 //------------------------------------------------------------------// 00033 void Image_part_Extraction( unsigned char *BuffAddrIn, int HW, int VW, 00034 int CutPointX, int CutPointY, unsigned char *BuffAddrOut, int Xsize, int Ysize ); 00035 double Standard_Deviation( unsigned char *data, double *Devi, int Xsize, int Ysize ); 00036 double Covariance( double *Devi_A, double *Devi_B, int Xsize, int Ysize ); 00037 int Judgement_ImageMatching( double Covari, double SDevi_A, double SDevi_B ); 00038 void PatternMatching_process( unsigned char *BuffAddrIn, int HW, int VW, 00039 ImagePartPattern *Temp, int Xs, int Xe, int Ys, int Ye ); 00040 //------------------------------------------------------------------// 00041 // End of file 00042 //------------------------------------------------------------------//
Generated on Tue Jul 12 2022 14:24:03 by
1.7.2