




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、会计学1数字图像处理图像特征提取数字图像处理图像特征提取23颜色形状纹理;n而对于灰度信息处理,主要讲述直方图技术。45HSV色彩空间YUV色彩空间RGB色彩空间Lab色彩空间XYZ色彩空间678原始彩色图像红色分量图像绿色分量图像蓝色分量图像910111213原始彩色图像色调分量图像饱和度分量图像亮度分量图像141516原始彩色图像Y(亮度)分量图像U(色度)分量图像V(浓度)分量图像1718原始彩色图像X分量图像Y分量图像Z分量图像192021原始彩色图像L分量图像a分量图像b分量图像2223CTArray CImageProcessing:Histogram_of_gray_image(
2、 const CTMatrix& gray_image )const long dimension = 256; / 直方图维数CTArray histogram( dimension ); / 构造直方图for( int index = 0; index dimension; index + ) / 直方图遍历histogram index = 0; long image_height = gray_image.Get_height(); / 图像高度long image_width = gray_image.Get_width(); / 图像宽度for( int row = 0; row
3、image_height; row + )for( int column = 0; column image_width; column + ) histogram gray_imagerowcolumn +; return histogram; / 返回直方图242526272829CTMatrix CImageProcessing:Histogram_equalization( const CTMatrix& gray_image, long equal_scale )long image_height = gray_image.Get_height();long image_width
4、= gray_image.Get_width();CTMatrix result_image( image_height, image_width );CTArray histogram = Normalize_histogram( Histogram_of_gray_image( gray_image ) );for( int index = 1; index histogram.GetDimension(); index + )histogram index += histogram index - 1 ;for( int index = 0; index histogram.GetDim
5、ension(); index + )histogram index = long( long( histogram index * equal_scale ) * ( 256.0 / double( equal_scale ) ) );histogram index = max( 0, histogram index );histogram index = min( 255, histogram index );for( int row = 0; row image_height; row + )for( int column = 0; column image_width; column
6、+ )result_image row column = BYTE( histogram gray_image row column );return result_image;30原始图像3132333435n部特征(如直线段、圆弧、角点、高曲率点等),以解决遮挡问题。3637Hu不变矩傅里叶描述子Hough变换Zernike不变矩Radon变换383940414243444546474849505152535455CTArray CImageProcessing:Position_from_binary_image( const CTMatrix& binary_image, BlackW
7、hite object_color )long number_of_objects = 0;long image_height = binary_image.Get_height();long image_width = binary_image.Get_width();for( int row = 0; row image_height; row + )for( int column = 0; column image_width; column + )if( binary_image row column = object_color )number_of_objects +;CTArra
8、y array_of_positions( number_of_objects );number_of_objects = 0;for( int row = 0; row image_height; row + )for( int column = 0; column image_width; column + )if( binary_image row column = object_color )array_of_positions number_of_objects .m_re = row;array_of_positions number_of_objects .m_im = colu
9、mn;number_of_objects +;return array_of_positions;56CTMatrix CImageProcessing:Binary_image_from_position( const CTArray& array_of_positions, long image_height, long image_width, BlackWhite object_color )CTMatrix binary_image( image_height, image_width );for( int row = 0; row image_height; row + )for(
10、 int column = 0; column image_width; column + )binary_image row column = ( object_color = White ? Black : White );long dimension = array_of_positions.GetDimension();for( int index = 0; index dimension; index + )long row = long( array_of_positions index .m_re );long column = long( array_of_positions index .m_im );if( binary_image.Is_point_valid( CImagePoint(
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年汽车买卖合同正规版本范文
- 鱼菜共生系统知到课后答案智慧树章节测试答案2025年春宁夏大学
- 202x手绘毕业答辩模板
- 2025《合同管理规程》联合签署
- 2025街头小吃摊位租赁合同
- 2025汽车销售代理合同示范文本格式
- 2024年清远市公安局选调事业编制人员真题
- 女方非婚生子抚养协议(2025年版)
- 深圳注册公司合同范本
- 2024年福建宁德职业技术学院招聘真题
- 全国计算机等级考试二级Python编程真题及答案解析(共10套真题)
- 合同顺延确认函
- 2024年高中历史 第14课 当代中国的外交说课稿 部编版选择性必修1
- 【MOOC】人工智能:模型与算法-浙江大学 中国大学慕课MOOC答案
- Q/CSG 1 0007-2024电力设备预防性试验规程
- 2024年10月自考00067财务管理学试题及答案
- 中西面点工艺基础知识单选题100道及答案解析
- 第47 届世界技能大赛商品展示技术项目技术文件
- DB11∕T 3023-2019 公路养护作业安全设施设置规范
- 四年级数学下册 第1讲 平移、旋转和轴对称学生版(知识梳理+典例分析+举一反三+阶梯训练)(苏教版)
- 2024年重庆高考化学试题卷(含答案解析)
评论
0/150
提交评论