• 大小: 0.06M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 色差计算  

资源简介

将RGB转换成Lab,使用CIE2000公式计算色差

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Demo
{
    public partial class Form1 : Form
    {
        private double[] M = {
            0.412453 0.357580 0.180423
            0.212671 0.715160 0.072169
            0.019334 0.119193 0.950227
        };
        public Form1()
        {
            InitializeComponent();
        }

        private void btnRGBToLab_Click(object sender EventArgs e)
        {
            byte[] RGB = { Convert.ToByte(txtRGB_R.Text) Convert.ToByte(txtRGB_G.Text) Convert.ToByte(txtRGB_B.Text) };
            double[] Lab 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-02 18:08  Demo\
     目录           0  2019-07-02 18:08  Demo\.vs\
     目录           0  2019-07-02 18:08  Demo\.vs\Demo\
     目录           0  2019-07-02 18:08  Demo\.vs\Demo\v14\
     文件       38912  2019-07-02 20:28  Demo\.vs\Demo\v14\.suo
     目录           0  2019-07-02 20:28  Demo\Demo\
     文件         979  2019-07-02 18:08  Demo\Demo.sln
     文件         187  2019-07-02 18:08  Demo\Demo\App.config
     目录           0  2019-07-02 18:08  Demo\Demo\bin\
     目录           0  2019-07-02 18:18  Demo\Demo\bin\Debug\
     文件       14336  2019-07-02 20:27  Demo\Demo\bin\Debug\Demo.exe
     文件         187  2019-07-02 18:08  Demo\Demo\bin\Debug\Demo.exe.config
     文件       24064  2019-07-02 20:27  Demo\Demo\bin\Debug\Demo.pdb
     文件       22696  2019-08-11 00:58  Demo\Demo\bin\Debug\Demo.vshost.exe
     文件         187  2019-07-02 18:08  Demo\Demo\bin\Debug\Demo.vshost.exe.config
     文件         490  2018-04-12 07:35  Demo\Demo\bin\Debug\Demo.vshost.exe.manifest
     文件        3833  2019-07-02 18:18  Demo\Demo\Demo.csproj
     文件        4722  2019-07-02 20:28  Demo\Demo\Form1.cs
     文件       11996  2019-07-02 19:28  Demo\Demo\Form1.Designer.cs
     文件        5817  2019-07-02 19:28  Demo\Demo\Form1.resx
     目录           0  2019-07-02 18:08  Demo\Demo\obj\
     目录           0  2019-07-02 20:14  Demo\Demo\obj\Debug\
     文件         744  2019-08-11 00:58  Demo\Demo\obj\Debug\Demo.csproj.FileListAbsolute.txt
     文件        1012  2019-07-02 20:14  Demo\Demo\obj\Debug\Demo.csproj.GenerateResource.Cache
     文件        2360  2019-07-02 18:18  Demo\Demo\obj\Debug\Demo.csprojResolveAssemblyReference.cache
     文件       14336  2019-07-02 20:27  Demo\Demo\obj\Debug\Demo.exe
     文件         180  2019-07-02 20:14  Demo\Demo\obj\Debug\Demo.Form1.resources
     文件       24064  2019-07-02 20:27  Demo\Demo\obj\Debug\Demo.pdb
     文件         180  2019-07-02 18:18  Demo\Demo\obj\Debug\Demo.Properties.Resources.resources
     文件         864  2019-07-02 18:08  Demo\Demo\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7160  2019-07-02 18:09  Demo\Demo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略11个文件信息

评论

共有 条评论

相关资源