登录
首页 » 图形图像 » 用如求直立主图统计程序。RGB有3个座标,分别是R,G,B,其值从0-255。把0-255分成4段,那么每个座标有4种取值,共可以表示4*4*4=64种颜色。程...

用如求直立主图统计程序。RGB有3个座标,分别是R,G,B,其值从0-255。把0-255分成4段,那么每个座标有4种取值,共可以表示4*4*4=64种颜色。程...

于 2022-10-26 发布 文件大小:15.88 kB
0 36
下载积分: 2 下载次数: 1

代码说明:

用如求直立主图统计程序。RGB有3个座标,分别是R,G,B,其值从0-255。把0-255分成4段,那么每个座标有4种取值,共可以表示4*4*4=64种颜色。程序中主要是histogram函数,它有两个参数,第1个参数是一个64位数组,每一位表示一种颜色,其值是该颜色出现的次数。另外两个函数numbercolor是对每个像素计算它的颜色值,fenduan是对参数x返回0-255中的某一段。主函数测试一副图片的颜色直方图的统计。-Used as the main map for vertical statistical procedures. RGB has three coordinates, namely R, G, B, its value from 0-255. The 0-255 is divided into 4, then there are four kinds of each coordinates value, can indicate a total of 4* 4* 4 = 64 kinds of colors. Process is mainly histogram function, it has two parameters, the first a parameter is a 64-digit group, each and every one expressed a different color, its value is the number of the color appears. The other two function numbercolor is calculated for each pixel its color value, fenduan of parameters x the return of a certain period of 0-255. The main function to test a picture of the color histogram statistics.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Paintlib是移植可用于的加载、存储和处理。
    paintlib是一个可移植的用于图像加载、保存和处理的C++类库。可从BMP, GIF, JPEG, PCX, PGM, PICT, PNG, PSD, TGA, TIFF和WMF文件中加载图像,且可保存为BMP, JPEG, PNG和TIFF格式。既可通过在过滤器类中执行过滤, 也可通过直接访问位图来进行图像处理。提供了完整的C++源码。-paintlib is a transplant can be used to image loading, storage and handling of the C library. From BMP, GIF, JPEG, PCX, PGM, PICT, PNG, PSD, TGA, TIFF, and WMF files to load images and the retention of BMP, JPEG, PNG and TIFF formats. Both filters through the implementation of category filters, are also available via direct access to Bitmap image processing. For a complete C source code.
    2022-01-22 01:30:11下载
    积分:1
  • 有用的复原算法
    有用的图像复原算法-useful algorithm for image restoration
    2022-03-25 11:32:07下载
    积分:1
  • smooth graphics scaling, and the proportion, quite good!
    图形的平滑缩放,以及比例的计算,比较不错!-smooth graphics scaling, and the proportion, quite good!
    2022-03-13 19:13:14下载
    积分:1
  • 在RichEdit控件中显示
    在RichEdit控件中显示图片-in RichEdit controls showed pictures
    2022-11-11 19:00:02下载
    积分:1
  • matlab code
    Whitens the data (row vectors) and reduces dimension. Returns the whitened vectors (row vectors), whitening and dewhitening matrices.-matlab code
    2023-08-05 20:00:03下载
    积分:1
  • graphical data format conversion
    图形的数据格式转换-graphical data format conversion
    2022-06-01 23:50:29下载
    积分:1
  • 城市代码,按F1
    城市3D场景代码,按F1-F8就可以在城市里以各种视角进行观光(有直升机、车外、车内等视角) -city code, according to F1-F8 on the city in various angles sightseeing (with helicopters, cars, car, etc. Perspective)
    2022-04-08 22:55:15下载
    积分:1
  • 3dx的作业,一个不错的程序,难度易
    3dx的作业,一个不错的程序,难度易-3dx operations, it is a good procedure, the difficulty Yi
    2022-10-22 20:20:03下载
    积分:1
  • 这是Ganzalez书上的一个示例程序,用来实现直方的线性运算处理。...
    这是Ganzalez书上的一个示例程序,用来实现直方图的线性运算处理。-This is a book Ganzalez sample procedures used for linear histogram processing.
    2022-03-29 21:21:15下载
    积分:1
  • plural domain filtering image
    复数域内图象扩散滤波程序,用MAPLAB语言编写-plural domain filtering image-proliferation process with MAPLAB language
    2022-01-25 17:17:39下载
    积分:1
  • 696524资源总数
  • 103957会员总数
  • 51今日下载