摘要
图像属于位图图形,作为人类感知世界的视觉基础,是人类获取信息、表达信息和传递信息的重要手段。它实际上是一个像素的二维数组。给出了3种彩色图像进行黑白处理的方法:最大值法、平均值法、加权平均值法,并在C++Builder6.0环境下编程实现,最后对其结果进行了一定的分析。
The image belongs to the bitmap graph,as visual foundation of human sensation world, is the important mean that the human gains the information, expresses the information and transmits the information. It is a two-dimension array of picture element actually. This paper explains how to express the color of each picture element in the computer, and which information should be contained when the image files will be stored. After having had these elementary knowledge, use a series of graphic objects which C++ Builder providing, can carry on some processing operation to each kind of image files easily. This paper proposes and realizes three algorithms: Maximum value method,Mean value method and Mean weighted value method, in C++ Builder 6.0 environment, has also carried on certain analysis to its result Finally.It enable the reader to know how to change color images into black and white images and have a further understanding about images.
出处
《软件导刊》
2008年第10期94-96,共3页
Software Guide
关键词
图像
位图图形
RGB
最大值法
平均值法
加权平均值
Image
Bitmap Graph
RGB
Maximum Value Method
Mean Value Method
Mean Weighted Value Method