摘要
随着数字图像处理对于快速性、实时性的要求越来越高,寻求快速有效的图像灰度化处理方法成为急待解决的问题。介绍了三种基于GDI+的图像灰度化实现方法:直接读写像素法、色彩变换法和直接读写内存图像数据法。并对这三种方法进行了性能、实现复杂度等方面的比较。可以得出:直接读写像素法处理过程缓慢,不能满足实际图像处理需要;色彩变换法处理速度快,处理速度是直接读写像素法处理速度的60倍以上;直接读写内存图像数据法处理速度最快,处理速度是色彩变换法处理速度的2.3倍左右,可以满足大部分情况下的实际图像处理需要。
With the ever- higher demand of speed for digital image processing, it's urgent to look for fast and effective method for image gray processing. Introduces three programming method for gray processing based on GDI + : the method by directly reading/writing pixel data, the method by transformational color matrix, and the method by directly reading/writing image data in memory. The performance and programming complexity of those method is compared. The major conclusion is: the speed of processing by method one is very slow, can't meet the demand of practical image processing; the speed of processing by method two is more than 60 times faster than method one' s;method three is the latest one, its speed is about 2.3 times faster than method two' s, the gray processing by method three can meet the demand of practical image processing in mast cases.
出处
《计算机技术与发展》
2009年第7期73-75,79,共4页
Computer Technology and Development
基金
中石化集团公司科研资助项目(305051)
关键词
GDI+
灰度化
实现方法
性能
GDI +
gray processing
programming method
performance