车牌识别源代码.pdfVIP

  • 8
  • 0
  • 约2.54万字
  • 约 22页
  • 2023-08-22 发布于上海
  • 举报
// #include vcl.h #include math.h #pragma hdrstop #include Unit1.h // #pragma package(smart_init) #pragma resource *.dfm TForm1 *Form1; Graphics::TBitmap *bitmap1; //定义 bitmap1 和 bitmap2 是 TBitmap Graphics::TBitmap *bitmap2; Graphics::TBitmap *bitmap3; struct COLOUR //定义颜色结构体 ,有 r,g,b(红 ,绿 ,蓝 )三分量 { Byte r; Byte g; Byte b; }; COLOUR **col; // - //彩色图象转灰度图象 , col 是原图象彩色象素数组 ,w 是图象宽度 ,h 是图象高度 Byte **ColorToGray(COLOUR **col,int w,int h) { int i,j,k; double y; Byte **result=(Byte**)malloc((unsigned) h*sizeof(Byte*))

文档评论(0)

1亿VIP精品文档

相关文档