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

  • Direct3D9初级指南
    Direct3D9初级教程-Direct3D9 primary Guide
    2022-01-28 20:44:01下载
    积分:1
  • 这个光盘资料里面包含ARX编程基础和创建编辑基本对象的原程序...
    这个光盘资料里面包含ARX编程基础和创建编辑基本图形对象的原程序-This CD-ROM which contains ARX programming foundation and basic graphics editor to create the original object program
    2023-07-13 02:45:03下载
    积分:1
  • Use vc to realize Canny arithmetic to detect the edge, and get the good result o...
    用vc实现的canny算法提取边缘,达到很好的提取边缘的效果-Use vc to realize Canny arithmetic to detect the edge, and get the good result of extracting the edge.
    2023-06-06 16:20:03下载
    积分:1
  • java 学原代码集锦
    java 图形学原代码集锦-source Collection
    2022-02-05 16:40:36下载
    积分:1
  • contourlet马尔科夫变换工具箱,用以实现contourlet马尔科夫变换编码
    contourlet马尔科夫变换工具箱,用以实现contourlet马尔科夫变换编码-Markov transform Contourlet toolbox to realize Contourlet Markov transform coding
    2022-05-30 10:41:19下载
    积分:1
  • delphi_平面内任意三角网络算法
    delphi_平面内任意三角形网络算法-delphi_ plane arbitrary triangular network algorithm
    2022-04-02 07:44:11下载
    积分:1
  • Sun and earth lighting effects
    演示太阳如何在地球和太阳之间的距离内旋转,并提供照明效果要显示地球和太阳之间的差异,可以使用鼠标单击查看旋转
    2023-04-15 20:55:02下载
    积分:1
  • matlab实现识别中时钟的时间
    Hough变换是一种使用表决原理的参数估计技术。其原理是利用图像空间和Hough参数空间
    2022-02-10 01:44:22下载
    积分:1
  • 用matlab 实现的 噪声添加函数代码。
    用matlab 实现的 噪声添加函数代码。-Matlab implementation of the noise used to add function code.
    2023-01-26 19:45:03下载
    积分:1
  • 将一个彩色之间的颜色表示。
    Convert a color image between color representations. B = COLORSPACE(S,A) converts the color representation of image A where S is a string specifying the conversion. S tells the source and destination color spaces, S = destdest . Supported color spaces are RGB R G B Red Green Blue (ITU-R BT.709 gamma-corrected) YPbPr Luma (ITU-R BT.601) + Chroma YCbCr / YCC Luma + Chroma ("digitized" version of Y PbPr) YUV NTSC PAL Y UV Luma + Chroma YIQ NTSC Y IQ Luma + Chroma YDbDr SECAM Y DbDr Luma + Chroma JPEGYCbCr JPEG-Y CbCr Luma + Chroma HSV / HSB Hue Saturation Value/Brightness HSL / HLS / HSI Hue Saturation Luminance/Intensity XYZ CIE XYZ Lab CIE L*a*b* (CIELAB) Luv CIE L*u*v* (CIELUV) Lch CIE L*ch (CIELCH)-Convert a color image between color representations. B = COLORSPACE (S, A) converts the color representation of image A where S is a string specifying the conversion. S tells the source and destin
    2023-02-24 07:00:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载