登录
首页 » 图形图像 » 用如求直立主图统计程序。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 143
下载积分: 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 个回复

  • 计算机视觉应用与 C#
    从第二部分,本文介绍了一种跟踪算法。本文第二部分的质心跟踪不是实际上是一种跟踪算法而花哨的把戏。"追踪器"一直做的事情是找到的 backprojected 图像质心和放一个定界框周围 — — 这不跟踪的定义。所以本文介绍了一种非常有名的跟踪算法称为均值漂移跟踪的计算机视觉社区。这篇文章基于一系列的研究论文由 Comaniciu Et al.[1] [2] [3]。
    2022-06-16 01:28:16下载
    积分:1
  • drawing of a five
    画了一个五角星并添充了颜色,还用微分画直线法,和bresenham法画直线-drawing of a five-pointed star and Tim added color, differential line drawing, and painting straight bresenham France
    2022-08-16 03:20:21下载
    积分:1
  • maching cube的vc源代码,可以参考下做法,做算法用
    maching cube的vc源代码,可以参考下做法,做算法用-maching cube of vc source code, can refer to the next practice, make algorithm
    2022-03-18 08:12:01下载
    积分:1
  • 三次NURBS曲线曲面矩阵式的求导计算
    三次NURBS曲线曲面矩阵形式的求导计算-nurbs
    2023-02-07 23:05:03下载
    积分:1
  • 数字处理演示程序
    数字图像处理演示程序-Digital Image Processing Demonstration Program
    2023-08-19 22:50:03下载
    积分:1
  • Polygon clipping is one of those humble tasks computers do all the time. It s a...
    Polygon clipping is one of those humble tasks computers do all the time. It s a basic operation in creating graphic output of all kinds. There are several well-known polygon clipping algorithms, each having its strengths and weaknesses. The oldest one (from 1974) is called the Sutherland-Hodgman algorithm. In its basic form, it is relatively simple. It is also very efficient in two important cases, one being when the polygon is completely inside the boundaries, and the other when it s completely outside.
    2022-09-16 13:35:03下载
    积分:1
  • OpenGL高级编程与可视化系统开发(高级编程篇)的随书源码
    OpenGL高级编程与可视化系统开发(高级编程篇)的随书源码-4,学习OpenGL的好东西-OpenGL Programming and Advanced Visualization System (Advanced Programming Part 1) the source-4 with books, learning the good stuff OpenGL -OpenGL high-level programming and visualization systems development (high-level programming chapter)-4 of the source with the book, learning OpenGL good things-OpenGL Programming and Advanced Visualization System (Advanced Programming Part 1) the source-4 with books, learning the good stuff OpenGL
    2023-08-13 10:35:03下载
    积分:1
  • 用于实现16个拒绝做的,高显示程序,想学习…
    用turboC实现的16位dos下的高色彩显示程序,想学学底层图形模式的朋友可以来看看。主要是中断的使用。-used to achieve the 16 dos, the high color display program, would like to learn the underlying graphics mode can be a friend to look at. The main use is broken.
    2022-01-25 22:32:16下载
    积分:1
  • 用于获得其他程序界面的色彩值
    用于获得其他程序界面的色彩值-other procedures used to obtain the color value interface
    2022-03-24 21:52:14下载
    积分:1
  • 嵌入式下使用C++编写的mp3播放器
    自己写的mp3播放器,可以通过交叉编译下载到开发板中,然后加入相应的音频文件,然后就可以播放了。整个界面很美观,而且操作也很方便。这个可以作为自己的一个小项目来操作,相应大家可以得到很大的收获。整个源代码内容很详细,里面有详细注解,相信大家看了会有很大的收获。
    2022-07-06 14:49:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载