[go: up one dir, main page]

CN111324986A - Optimized color sample set obtaining method and device and color gamut index obtaining method and device - Google Patents

Optimized color sample set obtaining method and device and color gamut index obtaining method and device Download PDF

Info

Publication number
CN111324986A
CN111324986A CN202010098025.5A CN202010098025A CN111324986A CN 111324986 A CN111324986 A CN 111324986A CN 202010098025 A CN202010098025 A CN 202010098025A CN 111324986 A CN111324986 A CN 111324986A
Authority
CN
China
Prior art keywords
color
color sample
sample set
lightness
samples
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010098025.5A
Other languages
Chinese (zh)
Inventor
廉玉生
胡晓婕
胡永乐
金杨
黄蓓青
魏先福
黄敏
刘瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Graphic Communication
Original Assignee
Beijing Institute of Graphic Communication
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Institute of Graphic Communication filed Critical Beijing Institute of Graphic Communication
Priority to CN202010098025.5A priority Critical patent/CN111324986A/en
Publication of CN111324986A publication Critical patent/CN111324986A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • G06F18/2135Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods based on approximation criteria, e.g. principal component analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Spectrometry And Color Measurement (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The application provides an optimized color sample set obtaining method and device, a color gamut index obtaining method and device, and the optimized color sample set obtaining method comprises the following steps: acquiring color appearance parameters of various color samples in a large sample set; matching the lightness of each color sample with different lightness layers to obtain color samples of different lightness layers; matching the color samples of all lightness layers with different hue areas to obtain color samples positioned in the different hue areas; selecting a color sample with the maximum saturation in each hue region to form an initial high-saturation color sample set; clustering the color samples in the initial high-saturation color sample set to obtain a color sample cluster set of a plurality of color sample categories; and taking the respective clustering centers of the color sample clustering sets corresponding to the color sample categories as representative color samples of the color sample clustering sets of the color sample categories to obtain an optimized color sample set.

Description

优化色样集获取方法及装置,色域指数获取方法及装置Method and device for obtaining optimized color sample set, and method and device for obtaining color gamut index

技术领域technical field

本申请涉及光源评价技术领域,具体而言,涉及一种优化色样集获取方法,优化色样集获取装置,色域指数获取方法,色域指数获取装置,电子设备及非易失性可读存储介质。The present application relates to the technical field of light source evaluation, and in particular, to a method for obtaining an optimized color sample set, a device for obtaining an optimized color sample set, a method for obtaining a color gamut index, a device for obtaining a color gamut index, an electronic device and a non-volatile readable storage medium.

背景技术Background technique

光源的色域指数可以用于评价光源实现被照物体具有更高的色彩鲜艳程度的能力,是近年来研究照明光源颜色质量的一大热点。一些光源,尤其是具有尖峰光谱的LED光源,能够准确地再现低饱和度的颜色,但对具有高饱和度的色样的颜色再现能力表现很差。因此,需就光源对具有高饱和度的样本的颜色的再现能力进行评价。光源色域指数,用于表征光源对高饱和度的样本的颜色的再现能力,是光源显色性评价的重要指标。现有的方法在利用光源色域指数进行光源显色性评价时,评价所需的色样的筛选多是在平面色域中完成,这使得筛选出的色样的适用性有限,即,利用所筛选出的色样对不同明度的色样饱和度(也即光源显色性)进行评价时存在不同程度的损失,影响评价的准确性。The color gamut index of the light source can be used to evaluate the ability of the light source to achieve a higher degree of color vividness of the illuminated object. Some light sources, especially LED light sources with a peaked spectrum, can accurately reproduce low-saturation colors, but perform poorly on color samples with high saturation. Therefore, the ability of the light source to reproduce the color of the sample with high saturation needs to be evaluated. The color gamut index of the light source is used to characterize the color reproduction ability of the light source to the sample with high saturation, and is an important index for evaluating the color rendering of the light source. When the existing methods use the light source color gamut index to evaluate the color rendering of the light source, the screening of the color samples required for the evaluation is mostly completed in the plane color gamut, which makes the applicability of the screened color samples limited. The selected color samples have different degrees of loss when evaluating the saturation of color samples with different lightness (that is, the color rendering of the light source), which affects the accuracy of the evaluation.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请的目的在于提供一种优化色样集获取方法,优化色样获取及装置,色域指数获取方法,色域指数获取装置,电子设备及非易失性可读存储介质,用于使得筛选出来的色样的适用性提高,进而提升利用筛选出来的色样进行光源显色性评价时的准确性。In view of this, the purpose of this application is to provide a method for obtaining an optimized color sample set, an optimized color sample obtaining and device, a method for obtaining a color gamut index, a device for obtaining a color gamut index, an electronic device and a non-volatile readable storage medium, It is used to improve the applicability of the screened color samples, thereby improving the accuracy of evaluating the color rendering of light sources by using the screened color samples.

本申请提供一种优化色样集获取方法,包括:获取大样本集中各色样的色貌参数,所述色貌参数包括明度;将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到;将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中,不同色调区域通过将色调角按照等色调角间隔划分得到;选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;对所述初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集;将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集。The present application provides a method for obtaining an optimized color sample set, including: obtaining color appearance parameters of each color sample in a large sample set, where the color appearance parameters include lightness; The color samples of the lightness layer, wherein the different lightness layers are obtained by dividing the lightness at equal intervals; the color samples of each lightness layer are matched with the hue angle range of the different hue areas to obtain the color samples located in the different hue areas, wherein the different hues are The area is obtained by dividing the hue angle according to the interval of equal hue angle; selecting the color sample with the maximum saturation in each hue area to form an initial high-saturation color sample set; clustering the color samples in the initial high-saturation color sample set, Obtain the color swatch clustering sets of multiple color swatch categories; take the respective cluster centers of the color swatch clustering sets corresponding to each color swatch category as the representative color swatches of the color swatch clustering sets of the color swatch category, and obtain the optimized color swatch set .

本申请提供的优化色样集获取方法,通过将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样;将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样;选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;对初始高饱和度色样集中的色样进行聚类,得到多个色样类别的色样聚类集;以及将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集,使得最终得到的优化色样集能够适用于对不同明度的色样饱和度(也即光源显色性)进行评价,进而一定程度上提升评价准确性。In the method for obtaining an optimized color sample set provided by the present application, the color samples of different lightness layers are obtained by matching the lightness of each color sample with the lightness range of different lightness layers; Perform matching to obtain color samples located in different hue regions; select the color samples with the highest saturation in each hue region to form an initial high-saturation color sample set; cluster the color samples in the initial high-saturation color sample set to obtain A color sample cluster set of multiple color sample categories; and the respective cluster centers of the color sample cluster sets corresponding to each color sample category are used as the representative color samples of the color sample cluster set of the color sample category, and an optimized color sample set is obtained. , so that the finally obtained optimized color sample set can be suitable for evaluating the saturation of color samples with different lightness (that is, the color rendering of light source), thereby improving the evaluation accuracy to a certain extent.

进一步地,所述获取初始色样集中各色样的色貌参数,包括:获取所述大样本集中各色样的光谱数据;基于所述大样本集中各色样的光谱数据,通过色貌模型得到所述大样本集中各色样的色貌参数。Further, the acquiring the color appearance parameters of each color sample in the initial color sample set includes: acquiring the spectral data of each color sample in the large sample set; and obtaining the color appearance model based on the spectral data of each color sample in the large sample set. Color appearance parameters for each color sample in a large sample set.

本申请大样本集能够保证最终筛选出的优化色样集中色样的种类多样性,一定程度上保证了最终筛选出的优化色样集能够适用于对不同明度的色样饱和度(也即光源显色性)进行评价,提升了优化色样集的适用性。The large sample set of this application can ensure the variety of color samples in the final screened optimized color sample set, and to a certain extent ensure that the final screened optimized color sample set can be applied to the color sample saturation of different lightness (that is, the light source Color rendering) was evaluated, which improved the applicability of the optimized color swatch set.

进一步地,所述对所述初始高饱和色样集中的色样进行聚类,得到多个色样类别的色样聚类集,包括:对所述初始高饱和色样集中各色样的光谱数据降维处理,得到合计贡献率达到阈值的主要光谱数据;将所述主要光谱数据与所述色貌参数融合形成融合数据;基于所述融合数据对所述初始高饱和色样集中的色样进行聚类,得到所述多个色样类别的色样聚类集。Further, performing the clustering on the color samples in the initial high-saturation color sample set to obtain a color sample clustering set of multiple color sample categories includes: spectral data of each color sample in the initial high-saturation color sample set Dimensionality reduction processing to obtain the main spectral data whose total contribution rate reaches the threshold; the main spectral data and the color appearance parameter are fused to form fusion data; based on the fusion data, the color samples in the initial high saturation color sample set are processed Clustering to obtain a color sample cluster set of the plurality of color sample categories.

本申请通过对所述初始高饱和色样集中各色样的光谱数据降维处理,得到合计贡献率达到阈值的主要光谱数据;将所述主要光谱数据与所述色貌参数融合形成融合数据;以及基于所述融合数据对所述初始高饱和色样集中的色样进行聚类,得到所述多个色样类别的色样聚类集,使得在聚类时兼顾了色貌参数和光谱数据,避免同色异谱现象,进一步提升最终得到的优化色样集的适用性并进一步提升利用最终的优化色样集进行光源显色性评价时的评价效果;另外,通过对光谱数据降维能够简化计算过程,减少计算量。The present application obtains the main spectral data whose total contribution rate reaches a threshold by reducing the dimension of the spectral data of each color sample in the initial high-saturation color sample set; fuses the main spectral data and the color appearance parameter to form fusion data; and Based on the fusion data, the color samples in the initial high-saturation color sample set are clustered to obtain the color sample cluster sets of the multiple color sample categories, so that the color appearance parameters and the spectral data are taken into account during the clustering, Avoid the phenomenon of metamerism, further improve the applicability of the final optimized color sample set and further improve the evaluation effect when using the final optimized color sample set to evaluate the color rendering of the light source; in addition, the dimensionality reduction of the spectral data can simplify the calculation. process to reduce the amount of computation.

进一步地,所述将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,包括:将各色样类别的所有色样的融合数据分别求均值;将与所述均值的绝对误差之和最小的色样作为代表色样。Further, using the respective cluster centers of the color sample cluster sets corresponding to each color sample category as the representative color samples of the color sample cluster sets of the color sample category includes: merging the fusion data of all color samples of each color sample category. Calculate the mean value respectively; take the color sample with the smallest sum of absolute errors with the mean value as the representative color sample.

本申请中通过将各色样类别的所有色样的融合数据分别求均值;将与所述均值的绝对误差之和最小的色样作为代表色样,能够较好地解决不能直接得到聚类中心或聚类中心并非对应的色样聚类集中实际存在的点的情况。In this application, by calculating the average value of the fusion data of all the color samples of each color sample category, and taking the color sample with the smallest sum of absolute errors with the average value as the representative color sample, it can better solve the problem that the cluster center or the cluster center cannot be directly obtained. A case where the cluster center is not a point that actually exists in the corresponding color sample cluster set.

本申请还提供一种色域指数获取方法,包括:获取大样本集中各色样的色貌参数,所述色貌参数包括明度;将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到;将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中不同色调区域通过将色调角按照等色调角间隔划分得到;选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;对所述初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集;将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集;及根据所述优化色样集得到光源的色域指数。The present application also provides a method for obtaining a color gamut index, including: obtaining color appearance parameters of each color sample in a large sample set, where the color appearance parameters include lightness; The color samples of the lightness layer, wherein, the different lightness layers are obtained by dividing the lightness at equal intervals; the color samples of each lightness layer are matched with the hue angle range of the different tone areas to obtain the color samples located in the different tone areas, wherein the different tone areas are Obtained by dividing the hue angle according to the interval of equal hue angle; selecting the color sample with the highest saturation in each hue area to form an initial high-saturation color sample set; clustering the color samples in the initial high-saturation color sample set to obtain Color sample cluster sets of multiple color sample categories; take the respective cluster centers of the color sample cluster sets corresponding to each color sample category as the representative color samples of the color sample cluster sets of the color sample category, and obtain an optimized color sample set; and obtaining the color gamut index of the light source according to the optimized color sample set.

本申请提供的色域指数获取方法,通过将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样;将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样;选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;对初始高饱和度色样集中的色样进行聚类,得到多个色样类别的色样聚类集;以及将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集,使得最终得到的优化色样集能够适用于对不同明度的色样饱和度(也即光源显色性)进行评价,而通过根据优化色样集得到光源的色域指数然后依据所得到色域指数对光源显色性进行评价能够在一定程度上提升评价准确性,即提升评价精度。The color gamut index acquisition method provided by the present application obtains color samples of different lightness layers by matching the lightness of each color sample with the lightness range of different lightness layers; Match to obtain color samples located in different hue regions; select the color samples with the highest saturation in each hue region to form an initial high-saturation color sample set; cluster the color samples in the initial high-saturation color sample set to obtain multiple color swatch clustering sets of each color swatch category; and using the respective cluster centers of the color swatch clustering sets corresponding to each color swatch category as the representative color swatches of the color swatch clustering sets of the color swatch category, to obtain an optimized color swatch set, The final optimized color sample set is suitable for evaluating the saturation of color samples of different lightness (that is, the color rendering of the light source), and the color gamut index of the light source is obtained according to the optimized color sample set, and then the color gamut index is obtained according to the obtained color gamut index. The evaluation of the color rendering of the light source can improve the evaluation accuracy to a certain extent, that is, improve the evaluation accuracy.

本申请还提供一种优化色样集获取装置,包括:获取模块,用于获取大样本集中各色样的色貌参数,所述色貌参数包括明度;匹配模块,用于将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到,以及将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中,不同色调区域通过将色调角按照等色调角间隔划分得到;选取模块,用于选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;聚类模块,用于对所述初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集;所述选取模块,还用于将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集。The present application also provides a device for obtaining an optimized color sample set, comprising: an obtaining module for obtaining color appearance parameters of each color sample in a large sample set, the color appearance parameters including lightness; a matching module for comparing the lightness of each color sample with the lightness of each color sample The lightness ranges of different lightness layers are matched to obtain color samples of different lightness layers, wherein the different lightness layers are obtained by dividing the lightness at equal intervals, and the color samples of each lightness layer are matched with the hue angle range of the different tonal regions to obtain Color samples located in different hue areas, where the different hue areas are obtained by dividing the hue angles according to equal hue angle intervals; the selection module is used to select the color samples with the highest saturation in each hue area to form the initial high-saturation color samples The clustering module is used to cluster the color samples in the initial high-saturation color sample set to obtain color sample cluster sets of multiple color sample categories; the selection module is also used to The respective cluster centers of the color sample cluster sets are used as the representative color samples of the color sample cluster sets of the color sample category, and the optimized color sample set is obtained.

进一步地,所述获取模块用于获取所述大样本集中各色样的光谱数据,以及基于所述大样本集中各色样的光谱数据,通过色貌模型得到所述大样本集中各色样的色貌参数。Further, the acquisition module is used to acquire the spectral data of each color sample in the large sample set, and based on the spectral data of each color sample in the large sample set, obtain the color appearance parameters of each color sample in the large sample set through a color appearance model. .

进一步地,所述聚类模块用于对所述初始高饱和色样集中各色样的光谱数据降维处理,得到合计贡献率达到阈值的主要光谱数据,将所述主要光谱数据与所述色貌参数融合形成融合数据,以及基于所述融合数据对所述初始高饱和色样集中的色样进行聚类,得到所述多个色样类别的色样聚类集。Further, the clustering module is used for dimensionality reduction processing of the spectral data of each color sample in the initial high-saturation color sample set, to obtain the main spectral data whose total contribution rate reaches a threshold value, and the main spectral data is compared with the color appearance. The parameters are fused to form fusion data, and based on the fusion data, the color samples in the initial high-saturation color sample set are clustered to obtain a color sample cluster set of the plurality of color sample categories.

进一步地,所述选取模块还用于将各色样类别的所有色样的融合数据分别求均值,以及将与所述均值的绝对误差之和最小的色样作为代表色样。Further, the selection module is further configured to calculate the average value of the fusion data of all the color samples of each color sample category, and use the color sample with the smallest sum of absolute errors with the mean value as the representative color sample.

本申请还提供一种色域指数获取装置,包括:获取模块,用于获取大样本集中各色样的色貌参数,所述色貌参数包括明度;匹配模块,用于将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到,以及将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中不同色调区域通过将色调角按照等色调角间隔划分得到;选取模块,用于选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;聚类模块,用于对所述初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集;所述选取模块,还用于将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集;及计算模块,用于根据所述优化色样集得到光源色域指数。The present application also provides a color gamut index acquisition device, comprising: an acquisition module for acquiring color appearance parameters of each color sample in a large sample set, the color appearance parameters including lightness; a matching module for comparing the lightness of each color sample with the difference The lightness ranges of the lightness layers are matched to obtain color samples of different lightness layers, wherein the different lightness layers are obtained by dividing the lightness at equal intervals, and the color samples of each lightness layer are matched with the hue angle ranges of the different tonal regions to obtain the Color samples of different hue areas, wherein the different hue areas are obtained by dividing the hue angle according to the interval of equal hue angles; the selection module is used to select the color samples with the highest saturation in each hue area to form an initial high-saturation color sample set; The clustering module is used for clustering the color samples in the initial high-saturation color sample set to obtain color sample cluster sets of multiple color sample categories; the selection module is also used for color samples corresponding to each color sample category The respective cluster centers of the cluster sets are used as the representative color samples of the color sample cluster sets of the color sample category to obtain an optimized color sample set; and a calculation module is used for obtaining the light source color gamut index according to the optimized color sample set.

本申请还提供一种电子设备,包括处理器及存储器,所述存储器存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行上述优化色样集获取方法或上述色域指数获取方法。The present application also provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the above-mentioned optimized color sample set The acquisition method or the above-mentioned gamut index acquisition method.

本申请还提供一种存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被处理器执行时,使得所述处理器执行上述优化色样集获取方法或上述色域指数获取方法。The present application further provides a non-volatile readable storage medium storing computer-readable instructions, the computer-readable instructions, when executed by a processor, cause the processor to execute the above-mentioned method for obtaining an optimized color sample set or the above-mentioned color swatch set acquisition method. Domain index get method.

本申请的其他特征和优点将在随后的说明书阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请实施例了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be set forth in the description which follows, and, in part, will be apparent from the description, or may be learned by practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description, claims, and drawings.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following drawings will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1为本申请一实施例提供的优化色样集获取方法的流程示意图。FIG. 1 is a schematic flowchart of a method for obtaining an optimized color sample set provided by an embodiment of the present application.

图2为本申请一实施例提供的色域指数获取方法的流程示意图。FIG. 2 is a schematic flowchart of a method for obtaining a color gamut index according to an embodiment of the present application.

图3为本申请一实施例提供的优化色样集获取装置的结构框图。FIG. 3 is a structural block diagram of an apparatus for obtaining an optimized color sample set provided by an embodiment of the present application.

图4为本申请一实施例提供的色域指数获取装置的结构框图。FIG. 4 is a structural block diagram of an apparatus for obtaining a color gamut index provided by an embodiment of the present application.

图5为本申请一实施例提供的电子设备的结构框图。FIG. 5 is a structural block diagram of an electronic device provided by an embodiment of the present application.

图标:优化色样集获取装置10;获取模块11;匹配模块12;选取模块13;聚类模块14;色域指数获取装置20;计算模块15;电子设备100;处理器101;非易失性存储介质102;内存储器103;输入装置104;显示屏105;扫描装置106;网络接口107;系统总线108。Icon: Optimized color sample set acquisition device 10; acquisition module 11; matching module 12; selection module 13; clustering module 14; color gamut index acquisition device 20; calculation module 15; electronic equipment 100; Storage medium 102; Internal memory 103; Input device 104; Display screen 105; Scanning device 106; Network interface 107;

具体实施方式Detailed ways

下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

请参阅图1,本申请一实施例提供一种优化色样集获取方法。该方法包括以下步骤。Referring to FIG. 1 , an embodiment of the present application provides a method for obtaining an optimized color sample set. The method includes the following steps.

步骤S101,获取大样本集中各色样的色貌参数,所述色貌参数包括明度。Step S101, acquiring color appearance parameters of each color sample in the large sample set, where the color appearance parameters include lightness.

本实施例中,大样本集可以包括自然界中实际测量得到的色样数据集中全部或部分色样,和/或包括人工合成的色样光谱数据集中的全部或部分色样光谱数据。可选地,大样本集中包括10万个以上的色样。大样本集能够保证最终筛选出的优化色样集中色样的种类多样性,一定程度上保证了最终筛选出的优化色样集能够适用于对不同明度的色样饱和度(也即光源显色性)进行评价,提升了优化色样集的适用性。In this embodiment, the large sample set may include all or part of the color samples in the color sample data set actually measured in nature, and/or include all or part of the color sample spectral data in the artificially synthesized color sample spectral data set. Optionally, the large sample set includes more than 100,000 color samples. The large sample set can ensure the diversity of color samples in the final screened optimized color sample set, and to a certain extent ensure that the final screened optimized color sample set can be applied to the color sample saturation of different lightness (that is, the color rendering of the light source). performance), which improves the applicability of the optimized color swatch set.

本实施例中,色貌参数可以包括明度J’,红绿度a’,黄蓝度b’等。In this embodiment, the color appearance parameters may include brightness J', red-green degree a', yellow-blue degree b', and the like.

本实施例中,可以通过获取大样本集中各色样的光谱数据;然后,基于大样本集中各色样的光谱数据,通过色貌模型得到大样本集中各色样的色貌参数。In this embodiment, the spectral data of each color sample in the large sample set can be obtained; then, based on the spectral data of each color sample in the large sample set, the color appearance parameters of each color sample in the large sample set can be obtained through a color appearance model.

具体地,获取大样本集中各色样的高维光谱反射率,然后将大样本集中各色样的高维光谱反射率,参考光源的光谱数据及标准观察者函数(2°视场,或10°视场等)输入到色貌模型中计算大样本集中各色样的色貌参数。可以理解,利用色貌模型计算色样的色貌参数为已知技术,在此不对其具体过程进行详细描述。Specifically, the high-dimensional spectral reflectance of each color sample in the large sample set is obtained, and then the high-dimensional spectral reflectance of each color sample in the large sample set is obtained by referring to the spectral data of the light source and the standard observer function (2° field of view, or 10° field of view). field, etc.) into the color appearance model to calculate the color appearance parameters of each color sample in the large sample set. It can be understood that it is a known technology to use the color appearance model to calculate the color appearance parameters of the color sample, and the specific process thereof will not be described in detail here.

本实施例中,色貌模型可以选用CAM16色貌模型(内嵌CAT16色适应和CAM16-UCS色空间)。可以理解,其他实施例中,色貌模型也可以选用其他色貌模型,本申请并不以此为限。In this embodiment, the CAM16 color appearance model (with built-in CAT16 color adaptation and CAM16-UCS color space) can be selected as the color appearance model. It can be understood that, in other embodiments, the color appearance model can also be selected from other color appearance models, and the present application is not limited to this.

步骤S102,将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度的等间隔划分得到。Step S102: Match the lightness of each color sample with the lightness range of different lightness layers to obtain color samples of different lightness layers, wherein the different lightness layers are obtained by dividing the lightness at equal intervals.

本实施例中,预先将明度(明度的)按照等明度间隔划分为多个不同的明度层。每个明度层对应不同的明度范围。划分所依据的明度间隔的选取可根据需要设定。In this embodiment, the brightness (of brightness) is divided into a plurality of different brightness layers according to equal brightness intervals. Each brightness layer corresponds to a different brightness range. The selection of the brightness interval on which the division is based can be set as required.

在通过步骤S101得到大样本集中各色样的色貌参数之后,将各色样的明度与不同明度层的明度范围进行匹配,在确定色样的明度位于一明度层的明度范围内时,即认为该色样为该明度层的色样,从而得到不同明度层的色样。可以理解,各明度层的色样数量可以不等。After obtaining the color appearance parameters of each color sample in the large sample set through step S101, the lightness of each color sample is matched with the lightness range of different lightness layers, and when it is determined that the lightness of the color sample is within the lightness range of one lightness layer, it is considered that the lightness of each color sample is within the lightness range of one lightness layer. The color sample is the color sample of the lightness layer, so as to obtain color samples of different lightness layers. It can be understood that the number of color samples of each brightness layer may vary.

步骤S103,将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中,不同色调区域通过将色调角的按照等色调角间隔划分得到。Step S103: Match the color samples of each lightness layer with the hue angle ranges of different hue regions to obtain color samples in different hue regions, wherein the different hue regions are obtained by dividing the hue angle according to equal hue angle intervals.

本实施例中,在预先将明度按照等明度间隔划分为多个不同的明度层之后,预先将各明度层的色调(色调角的)按照等色调角间隔划分为多个不同的色调区域。每个色调区域对于不同的色调角范围。划分所依据的色调角间隔的选取可以根据需要进行设定。In this embodiment, after the brightness is pre-divided into multiple different brightness layers at equal brightness intervals, the hue (of hue angle) of each brightness layer is pre-divided into multiple different hue regions at equal hue angle intervals. Each hue region is for a different hue angle range. The selection of the hue angle interval on which the division is based can be set as required.

在通过步骤S102得到各明度层的色样之后,将各色样的色调角与不同色调区域的色调角范围进行匹配,在确定色样的色调角位于一色调区域的色调角范围内时,即认为该色样为该色调区域的色样,从而得到不同色调区域的色样。各色样的色调角可以基于色貌参数中的红绿度a’和黄蓝度b’通过公式色调角h=arctan(黄蓝度b’/红绿度a’)得到。可以理解,各色调区域的色样数量可以不等。After obtaining the color samples of each lightness layer through step S102, the hue angle of each color sample is matched with the hue angle range of different hue regions, and when it is determined that the hue angle of the color sample is within the hue angle range of a hue region, it is considered that The color swatch is the color swatch of the hue area, thereby obtaining color swatches of different hue areas. The hue angle of each color sample can be obtained by the formula hue angle h=arctan (yellow-blue degree b'/red-green degree a') based on the red-green degree a' and the yellow-blue degree b' in the color appearance parameter. It can be understood that the number of color samples in each tone area may vary.

步骤S104,选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集。Step S104, selecting the color sample with the highest saturation in each hue area to form an initial high-saturation color sample set.

本实施例中,可以通过公式:彩度C=(红绿度a’^2+黄蓝度b’^2)^0.5选取各色调区域中的饱和度最大的色样。各明度层的各色调区域中的饱和度最大的色样共同形成初始高饱和度色样集。In this embodiment, the color sample with the highest saturation in each hue region can be selected by the formula: chroma C=(red and green degree a'^2+yellow and blue degree b'^2)^0.5. The most saturated color swatches in each hue region of each lightness layer together form an initial set of highly saturated color swatches.

步骤S105,对所述初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集。Step S105: Cluster the color samples in the initial high-saturation color sample set to obtain color sample cluster sets of multiple color sample categories.

本实施例中,对初始高饱和色样集中的色样进行聚类,得到多个色样类别的色样聚类集可以通过如下方式进行。In this embodiment, the color swatches in the initial high-saturation color swatch set are clustered to obtain a color swatch clustering set of multiple color swatch categories in the following manner.

首先,对初始高饱和色样集中各色样的光谱数据进行降维处理,得到合计贡献率达到阈值的主要光谱数据;接着,将主要光谱数据与色貌参数融合形成融合数据,融合数据包括由主要光谱数据与色貌参数形成的多维度数据;然后,基于融合数据对初始高饱和色样集中的色样进行聚类,得到多个色样类别的色样聚类集。本实施例中,通过对初始高饱和色样集中各色样的光谱数据降维处理,能够简化聚类的计算过程,减少计算量,而通过基于由主要光谱数据与色貌参数融合形成的融合数据进行聚类,能够在聚类时兼顾了色貌参数和光谱数据,避免同色异谱现象,进一步提升最终得到的优化色样集的适用性并进一步提升利用最终的优化色样集进行光源显色性评价时的评价效果。可以理解,其他实施例中,也可以省去对初始高饱和色样集中各色样的光谱数据进行降维处理的步骤,直接将色样的光谱数据与色貌参数融合形成融合数据。First, the spectral data of each color sample in the initial high-saturated color sample set is dimensionally reduced to obtain the main spectral data whose total contribution rate reaches the threshold; then, the main spectral data and the color appearance parameters are fused to form fusion data. Multi-dimensional data formed by spectral data and color appearance parameters; then, based on the fusion data, the color samples in the initial high-saturation color sample set are clustered to obtain a color sample cluster set of multiple color sample categories. In this embodiment, by reducing the dimensionality of the spectral data of each color sample in the initial high-saturation color sample set, the calculation process of clustering can be simplified and the amount of calculation can be reduced. Clustering can take into account the color appearance parameters and spectral data during clustering, avoid metamerism, further improve the applicability of the final optimized color sample set, and further improve the use of the final optimized color sample set for light source color rendering The effect of evaluation in sexual evaluation. It can be understood that, in other embodiments, the step of performing dimension reduction processing on the spectral data of each color sample in the initial high-saturation color sample set can also be omitted, and the spectral data of the color sample and the color appearance parameters can be directly fused to form fusion data.

本实施例中,可以采用主成分分析光谱降维法对初始高饱和色样集中各色样的光谱数据降维处理,由于该降维方法可以通过matlab代码实现,为已知技术,在此不对其具体过程进行详细描述。In this embodiment, the principal component analysis spectral dimensionality reduction method can be used to reduce the dimensionality of the spectral data of each color sample in the initial high-saturation color sample set. Since the dimensionality reduction method can be realized by matlab code, it is a known technology, and it is not described here. The specific process is described in detail.

本实施例中,合计贡献率达到阈值的主要光谱数据是指降维处理之后排在前列且合计贡献率达到阈值的光谱数据。阈值可以根据需要设定,本实施例中,阈值为95%。In this embodiment, the main spectral data whose total contribution rate reaches the threshold refers to the spectral data that are ranked in the front row after the dimensionality reduction process and whose total contribution rate reaches the threshold. The threshold can be set as required, and in this embodiment, the threshold is 95%.

本实施例中,基于融合数据对初始高饱和色样集中的色样进行聚类可以根据需要选用K均值聚类算法,层次聚类算法,近邻传播聚类算法,自组织映射神经网络聚类等聚类算法。聚类时,可以综合考虑融合数据中的由三维色貌参数(明度,红绿度,黄蓝度)及主要光谱数据形成的多维度数据进行聚类。利用上述聚类算法进行聚类的具体过程为已知技术,在此不对其具体过程进行赘述。可以理解,其他实施例中,可以为根据色样的明度,红绿度,黄蓝度及主要光谱数据为不同的色样分配不同的索引号,索引号与色样的明度,红绿度,黄蓝度及主要光谱数据形成对应关系,聚类结束后,可以通过索引号与色样的明度,红绿度,黄蓝度及主要光谱数据之间的对应关系,找到对应的色样并获知色样的明度,红绿度,黄蓝度及主要光谱数据等信息。In this embodiment, the color samples in the initial high-saturation color sample set can be clustered based on the fusion data, and K-means clustering algorithm, hierarchical clustering algorithm, neighbor propagation clustering algorithm, self-organizing mapping neural network clustering, etc. can be selected as required. Clustering Algorithm. When clustering, multi-dimensional data formed by three-dimensional color appearance parameters (lightness, red-green degree, yellow-blue degree) and main spectral data in the fusion data can be comprehensively considered for clustering. The specific process of clustering using the above-mentioned clustering algorithm is a known technology, and the specific process is not described in detail here. It can be understood that, in other embodiments, different index numbers may be assigned to different color samples according to the lightness, red-green degree, yellow-blue degree and main spectral data of the color sample. The yellow-blueness and the main spectral data form a corresponding relationship. After the clustering is completed, the corresponding color sample can be found and obtained through the corresponding relationship between the index number and the lightness, red-greenness, yellow-blueness and the main spectral data of the color sample. The lightness, red-green, yellow-blue and main spectral data of the color sample.

步骤S106,将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集。In step S106, the respective cluster centers of the color swatch cluster sets corresponding to each color swatch category are used as the representative color swatches of the color swatch cluster sets of the color swatch category to obtain an optimized color swatch set.

本实施例中,为较好地解决不能直接得到聚类中心或聚类中心并非对应的色样聚类集中实际存在的点的情况,可以通过如下方式将各色样类别的聚类中心作为代表色样。首先,将各色样类别的所有色样的融合数据分别求均值;然后,将与均值的绝对误差之和最小的色样作为代表色样。In this embodiment, in order to better solve the situation that the cluster center cannot be directly obtained or the cluster center is not the actual point in the corresponding color sample cluster set, the cluster center of each color sample category can be used as the representative color in the following way Sample. First, average the fusion data of all color samples of each color sample category; then, take the color sample with the smallest sum of absolute errors from the mean as the representative color sample.

所有色样类别各自的代表色样共同形成优化色样集。The respective representative swatches of all swatch categories together form the optimized swatch set.

本实施例提供的优化色样集获取方法,通过将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样;将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样;选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;对初始高饱和度色样集中的色样进行聚类,得到多个色样类别的色样聚类集;以及将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集,使得最终得到的优化色样集能够适用于对不同明度的色样饱和度(也即光源显色性)进行评价,进而一定程度上提升评价准确性。In the method for obtaining an optimized color sample set provided in this embodiment, the color samples of different lightness layers are obtained by matching the lightness of each color sample with the lightness range of different lightness layers; Match the range to obtain color samples located in different hue regions; select the color samples with the highest saturation in each hue region to form an initial high-saturation color sample set; cluster the color samples in the initial high-saturation color sample set, Obtaining a color sample clustering set of multiple color sample categories; and using the respective cluster centers of the color sample clustering sets corresponding to each color sample category as the representative color sample of the color sample clustering set of the color sample category, and obtaining an optimized color sample set, so that the finally obtained optimized color sample set can be suitable for evaluating the saturation of color samples with different lightness (that is, the color rendering of light source), thereby improving the evaluation accuracy to a certain extent.

请参阅图2,基于同一发明构思,本申请一实施例还提供一种色域指数获取方法。该色域指数获取方法在前述优化色样集获取方法的基础上,在步骤S106之后,还包括步骤S107:根据所述优化色样集得到光源的色域指数。本实施例中,根据所述优化色样集通过色域指数计算公式得到光源的色域指数。可以理解,基于色样集通过色域指数公式得到光源的色域指数的具体过程为已知技术,在此不再赘述。Referring to FIG. 2 , based on the same inventive concept, an embodiment of the present application further provides a method for obtaining a color gamut index. On the basis of the foregoing method for obtaining the optimized color swatch set, the method for obtaining the color gamut index further includes step S107 after step S106: obtaining the color gamut index of the light source according to the optimized color sample set. In this embodiment, the color gamut index of the light source is obtained by using the color gamut index calculation formula according to the optimized color sample set. It can be understood that the specific process of obtaining the color gamut index of the light source through the color gamut index formula based on the color sample set is a known technology, and details are not described herein again.

本申请提供的色域指数获取方法,通过将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样;将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样;选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;对初始高饱和度色样集中的色样进行聚类,得到多个色样类别的色样聚类集;以及将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集,使得最终得到的优化色样集能够适用于对不同明度的色样饱和度(也即光源显色性)进行评价,而通过根据优化色样集得到光源的色域指数然后依据所得到色域指数对光源显色性进行评价能够在一定程度上提升评价准确性,即提升评价精度。The color gamut index acquisition method provided by the present application obtains color samples of different lightness layers by matching the lightness of each color sample with the lightness range of different lightness layers; Match to obtain color samples located in different hue regions; select the color samples with the highest saturation in each hue region to form an initial high-saturation color sample set; cluster the color samples in the initial high-saturation color sample set to obtain multiple color swatch clustering sets of each color swatch category; and using the respective cluster centers of the color swatch clustering sets corresponding to each color swatch category as the representative color swatches of the color swatch clustering sets of the color swatch category, to obtain an optimized color swatch set, The final optimized color sample set is suitable for evaluating the saturation of color samples of different lightness (that is, the color rendering of the light source), and the color gamut index of the light source is obtained according to the optimized color sample set, and then the color gamut index is obtained according to the obtained color gamut index. The evaluation of the color rendering of the light source can improve the evaluation accuracy to a certain extent, that is, improve the evaluation accuracy.

接下来结合一具体示例对利用优化色样集得到光源的色域指数进行光源显色性评价的技术效果进行说明。Next, the technical effect of using the color gamut index of the light source to obtain the color gamut index of the light source to evaluate the color rendering of the light source will be described with reference to a specific example.

本示例中,大样本集包括实际测得的自然界中存在的色样数据及人工合成的光谱数据,且大样本集所包括的色样数量大于10万。以CIE1964标准色度系统的10°标准观察者为标准观察者函数,以D65光源为参考光源计算CAM16-UCS色空间,内嵌CAT16色适应下大样本集中各色样的色貌参数(明度J’,红绿度a’,及黄蓝度b’)。预先以明度间隔为1等间隔划分明度得到多个明度层,以色调角间隔为1°等间隔划分色调得到多个色调区域。通过前述方法所描述的方式获得初始高饱和度色样集Ωg。该初始高饱和度色样集Ωg包含高饱和度色样24843个。对24843个色样的81维光谱(对于光波长380nm-780nm,按照间隔为5nm进行等间隔划分,得到81维光谱)进行主成分光谱降维,得到贡献率分别为80.58%,12.15%和4.68%,且合计贡献率超过97%的前3维主要光谱数据。将主要光谱数据(三维数据)与色貌参数(明度,红绿度和黄蓝度三维数据)进行融合得到6维的融合数据。对融合数据进行自组织映射神经网络聚类。对融合数据进行自组织映射神经网络聚类的具体过程大致如下:In this example, the large sample set includes actually measured color sample data existing in nature and artificially synthesized spectral data, and the large sample set includes more than 100,000 color samples. The 10° standard observer of the CIE1964 standard chromaticity system is used as the standard observer function, the D65 light source is used as the reference light source to calculate the CAM16-UCS color space, and the color appearance parameters (lightness J' , red and green degrees a', and yellow and blue degrees b'). A plurality of lightness layers are obtained by dividing the lightness at equal intervals with a lightness interval of 1 in advance, and a plurality of hue regions are obtained by dividing the hue at equal intervals with a hue angle interval of 1°. The initial high-saturation color sample set Ωg is obtained in the manner described in the previous method. The initial high-saturation color sample set Ωg contains 24,843 high-saturation color samples. The 81-dimensional spectrum of 24,843 color samples (for light wavelengths 380nm-780nm, divided at equal intervals with an interval of 5nm to obtain an 81-dimensional spectrum) is subjected to principal component spectral dimension reduction, and the contribution rates are 80.58%, 12.15% and 4.68 %, and the total contribution rate exceeds 97% of the first 3-dimensional main spectral data. The main spectral data (three-dimensional data) and color appearance parameters (lightness, red-green and yellow-blue three-dimensional data) are fused to obtain 6-dimensional fusion data. Self-organizing map neural network clustering on fused data. The specific process of self-organizing mapping neural network clustering for fusion data is roughly as follows:

1)初始化:每个节点(色样)随机初始化自身参数(本实施例中,自身参数即为由色貌参数及3维主要光谱数据形成的6维融合数据中的每一维度的数据)。每个节点的参数个数与输入的维度相同。1) Initialization: each node (color sample) randomly initializes its own parameters (in this embodiment, the own parameters are the data of each dimension in the 6-dimensional fusion data formed by the color appearance parameters and the 3-dimensional main spectral data). The number of parameters for each node is the same as the dimension of the input.

2)对于每一个输入数据,找到与其最相配的节点。假设输入是D维数据,即X={xi,i=1,2,...,D},则通过判别函数为欧几里得距离找到与其最相配的节点:2) For each input data, find the node that best matches it. Assuming that the input is D-dimensional data, that is, X={xi, i=1,2,...,D}, the most matching node is found for the Euclidean distance through the discriminant function:

Figure BDA0002385737670000121
Figure BDA0002385737670000121

其中,j代表第j个节点,wji表示第j个节点的第i个维度的数据。Among them, j represents the jth node, and wji represents the data of the ith dimension of the jth node.

3)找到激活节点I(x)之后,更新与其邻近的节点。令Sij表示节点i和j之间的距离,对于与I(x)邻近的节点,为其分配更新权重。更新权重

Figure BDA0002385737670000122
随节点与激活节点I(x)之间的距离的增大而减小。更新权重可以通过下式表示。3) After finding the active node I(x), update its adjacent nodes. Let S ij denote the distance between nodes i and j, and assign update weights to nodes adjacent to I(x). update weights
Figure BDA0002385737670000122
It decreases as the distance between the node and the active node I(x) increases. The update weight can be expressed by the following equation.

Figure BDA0002385737670000123
Figure BDA0002385737670000123

其中,

Figure BDA0002385737670000124
是I(x)相邻节点的更新权值,Sj,I(x)代表第j个节点和第I(x)个节点之间的距离,
Figure BDA0002385737670000125
其中,t是时间,σ0是适当选取的常数。in,
Figure BDA0002385737670000124
is the updated weight of the adjacent nodes of I(x), S j, I(x) represents the distance between the jth node and the I(x)th node,
Figure BDA0002385737670000125
where t is time and σ0 is an appropriately chosen constant.

4)按照梯度下降法更新节点的参数:4) Update the parameters of the node according to the gradient descent method:

Δwji=η(t).Tj,I(x)(t).(xi-wji)Δw ji =η(t).T j, I(x) (t).(x i -w ji )

其中,Δwji是权值修改量;η(t)是学习率,

Figure BDA0002385737670000126
其中,t为时间;xi表示第i个维度的数据;wji表示第j个节点的第i个维度的数据。Among them, Δw ji is the weight modifier; η(t) is the learning rate,
Figure BDA0002385737670000126
Among them, t is time; xi represents the data of the ith dimension; w ji represents the data of the ith dimension of the jth node.

然后,迭代,直到收敛或者达到最大的迭代次数。Then, iterate until convergence or the maximum number of iterations is reached.

通过自组织映射神经网络对融合数据进行聚类最终得到16个色样类别的色样聚类集,分别将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到包含16个高饱和度优化色样的优化色样集Θg。The fused data is clustered through the self-organizing mapping neural network, and finally the color swatch clustering sets of 16 color swatch categories are obtained, and the respective cluster centers of the color swatch clustering sets corresponding to each color swatch category are used as the color swatches of the color swatch category. The representative color samples of the sample cluster set are obtained, and the optimized color sample set Θg containing 16 high-saturation optimized color samples is obtained.

本示例中,在对光源显色性进行评价时,选用现有的光源色域指数中的色域指标Rg作为评价指标。以包含16个高饱和度优化色样的优化色样集Θg,CES色样(IES-TM-30(IES体系)中的色域指标Rg,使用目前较均匀的颜色空间CAM02-UCS和99个标准色样,记为CES色样)和原始大样本集分别作为测试色样,对不同色温的LED,荧光灯,传统光源等1200多种照明光源进行实际计算,分别比较通过优化色样集Θg及CES色样计算得到的Rg与通过原始大样本集计算得到的Rg之间的差值,并计算平均绝对误差MAD。如表1所示,优化色样集Θg的平均绝对误差MAD较小,且小于CES色样的MAD,说明通过优化色样集获取光源的色域指数对光源显色性进行评价时,准确度更高;且通过优化色样集Θg计算得到的色域指标Rg值更接近通过原始大色样集计算得到的色域指标Rg。In this example, when evaluating the color rendering of the light source, the color gamut index Rg in the existing light source color gamut index is selected as the evaluation index. With the optimized color sample set Θg containing 16 high-saturation optimized color samples, the color gamut index Rg in the CES color sample (IES-TM-30 (IES system), using the current relatively uniform color space CAM02-UCS and 99 The standard color sample, recorded as CES color sample) and the original large sample set are used as test color samples respectively, and the actual calculation is carried out on more than 1,200 lighting sources such as LEDs, fluorescent lamps, and traditional light sources with different color temperatures, and the optimized color sample sets Θg and The difference between the Rg calculated by the CES color sample and the Rg calculated by the original large sample set, and the mean absolute error MAD is calculated. As shown in Table 1, the average absolute error MAD of the optimized color sample set Θg is small and smaller than the MAD of the CES color sample. higher; and the color gamut index Rg value calculated through the optimized color sample set Θg is closer to the color gamut index Rg calculated through the original large color sample set.

表1Θg/CES和大样本集计算得到的Rg的平均绝对误差Table 1 Θg/CES and mean absolute error of Rg calculated with large sample set

Figure BDA0002385737670000131
Figure BDA0002385737670000131

请参阅图3,基于同一发明构思,本申请一实施例还提供一种优化色样集获取装置10,该优化色样获取装置10包括获取模块11,匹配模块12,选取模块13,及聚类模块14。Referring to FIG. 3 , based on the same inventive concept, an embodiment of the present application further provides a device 10 for obtaining an optimized color sample set. The device 10 for obtaining an optimized color sample includes an obtaining module 11 , a matching module 12 , a selection module 13 , and a clustering module 11 . module 14.

获取模块11用于获取大样本集中各色样的色貌参数,色貌参数包括明度。一实施例中,获取模块11用于获取大样本集中各色样的光谱数据,以及基于大样本集中各色样的光谱数据,通过色貌模型得到大样本集中各色样的色貌参数。The obtaining module 11 is used to obtain the color appearance parameters of each color sample in the large sample set, and the color appearance parameters include lightness. In one embodiment, the acquisition module 11 is configured to acquire spectral data of each color sample in the large sample set, and obtain color appearance parameters of each color sample in the large sample set through a color appearance model based on the spectral data of each color sample in the large sample set.

匹配模块12,用于将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到,以及将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中,不同色调区域通过将色调角按照等色调角间隔划分得到;The matching module 12 is used to match the lightness of each color sample with the lightness range of different lightness layers to obtain color samples of different lightness layers, wherein the different lightness layers are obtained by dividing the lightness at equal intervals, and the color samples of each lightness layer are divided. Matching with the hue angle ranges of different hue areas to obtain color samples located in different hue areas, wherein the different hue areas are obtained by dividing hue angles according to equal hue angle intervals;

选取模块13用于选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集。The selection module 13 is used to select the color sample with the highest saturation in each hue area to form an initial high-saturation color sample set.

聚类模块14用于对初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集。一实施例中,聚类模块14用于对初始高饱和色样集中各色样的光谱数据降维处理,得到合计贡献率达到阈值的主要光谱数据,将主要光谱数据与色貌参数融合形成融合数据,以及基于融合数据对初始高饱和色样集中的色样进行聚类,得到多个色样类别的色样聚类集。The clustering module 14 is used for clustering the color samples in the initial high-saturation color sample set to obtain color sample cluster sets of multiple color sample categories. In one embodiment, the clustering module 14 is used to reduce the dimension of the spectral data of each color sample in the initial high-saturation color sample set, obtain the main spectral data whose total contribution rate reaches a threshold, and fuse the main spectral data with the color appearance parameters to form fusion data , and clustering the color samples in the initial high-saturation color sample set based on the fusion data to obtain a color sample clustering set of multiple color sample categories.

本实施例中,选取模块13还用于将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集。一实施例中,选取模块13还用于将各色样类别的所有色样的融合数据分别求均值,以及将与均值的绝对误差之和最小的色样作为代表色样。In this embodiment, the selection module 13 is further configured to use the respective cluster centers of the color swatch cluster sets corresponding to each color swatch category as the representative color swatches of the color swatch cluster sets of the color swatch category to obtain an optimized color swatch set. In one embodiment, the selection module 13 is further configured to calculate the average value of the fusion data of all the color samples of each color sample category, and use the color sample with the smallest sum of absolute errors from the mean value as the representative color sample.

可以理解,本申请提供的优化色样集获取装置与本申请提供的优化色样集获取方法对应,为使说明书简洁,相同或相似部分可以参阅优化色样集获取方法部分的内容,在此不再赘述。It can be understood that the optimized color sample set acquisition device provided by this application corresponds to the optimized color sample set acquisition method provided by this application. Repeat.

请参阅图4,基于同一发明构思,本申请一实施例还提供一种色域指数获取装置20,该色域指数获取装置20在前述优化色样集获取装置10的基础上,还包括计算模块15,用于根据优化色样集得到光源色域指数。一实施例中,计算模块15用于根据所述优化色样集通过色域指数计算公式得到光源的色域指数。Referring to FIG. 4 , based on the same inventive concept, an embodiment of the present application further provides a color gamut index acquisition device 20 , the color gamut index acquisition device 20 further includes a calculation module on the basis of the aforementioned optimized color sample set acquisition device 10 15, used to obtain the color gamut index of the light source according to the optimized color sample set. In one embodiment, the calculation module 15 is configured to obtain the color gamut index of the light source through the color gamut index calculation formula according to the optimized color sample set.

可以理解,本申请提供的色域指数获取装置20以前述优化色样集获取装置10为基础,且与本申请提供的色域指数获取方法对应,为使说明书简洁,相同或相似部分可以参阅优化色样集获取装置10及色域指数获取方法部分的内容,在此不再赘述。It can be understood that the color gamut index obtaining device 20 provided by the present application is based on the aforementioned optimized color sample set obtaining device 10, and corresponds to the color gamut index obtaining method provided by the present application. The content of the color sample set obtaining apparatus 10 and the color gamut index obtaining method will not be repeated here.

上述优化色样集获取装置和/或色域指数获取装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于服务器中的处理器中,也可以以软件形式存储于服务器中的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。Each module in the above-mentioned optimized color sample set acquisition device and/or color gamut index acquisition device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in or independent of the processor in the server in the form of hardware, or may be stored in the memory in the server in the form of software, so that the processor can call and execute operations corresponding to the above modules. The processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, or the like.

上述优化色样集获取方法和/或优化色样集获取装置和/或色域指数获取方法和/或色域指数获取装置可以实现为一种计算机可读指令的形式,计算机可读指令可以在如图5所示的电子设备上运行。The above-mentioned optimized color sample set acquisition method and/or optimized color sample set acquisition device and/or color gamut index acquisition method and/or color gamut index acquisition device can be implemented as a form of computer-readable instructions, and the computer-readable instructions can be in the form of run on the electronic device shown in Figure 5.

本申请实施例还提供的一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,该处理器执行该程序时实现上述优化色样集获取方法和/或上述色域指数获取方法。An electronic device further provided by an embodiment of the present application includes a memory, a processor, and a computer-readable instruction stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned method for obtaining an optimized color sample set is implemented. And/or the above-mentioned color gamut index acquisition method.

图5为根据本申请一实施例的电子设备的内部结构示意图,电子设备可以为手机,平板电脑等。请参阅图5,该电子设备100包括通过系统总线108连接的处理器101、非易失性存储介质102、内存储器103、输入装置104、显示屏105、扫描装置106和网络接口107。其中,该电子设备100的非易失性存储介质可存储操作系统和计算机可读指令,该计算机可读指令被执行时,可使得处理器101执行本申请各实施例的一种优化色样集获取方法和/或色域指数获取方法,优化色样集获取方法的具体实现过程可参考图1的具体内容,色域指数获取方法的具体实现过程可参考图2的具体内容,在此不再赘述。该电子设备100的处理器101用于提供计算和控制能力,支撑整个电子设备100的运行。该内存储器103中可储存有计算机可读指令,该计算机可读指令被处理器101执行时,可使得处理器101执行一种优化色样集获取方法和/或色域指数获取方法。电子设备100的输入装置104用于各个参数的输入,电子设备100的显示屏105用于进行显示,电子设备100的扫描装置106用于扫描图形码,电子设备100的网络接口107用于进行网络通信。本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。FIG. 5 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, and the electronic device may be a mobile phone, a tablet computer, or the like. Referring to FIG. 5 , the electronic device 100 includes a processor 101 , a non-volatile storage medium 102 , an internal memory 103 , an input device 104 , a display screen 105 , a scanning device 106 and a network interface 107 connected through a system bus 108 . The non-volatile storage medium of the electronic device 100 can store an operating system and computer-readable instructions. When the computer-readable instructions are executed, the processor 101 can be made to execute an optimized color sample set according to the embodiments of the present application. The specific implementation process of the acquisition method and/or the color gamut index acquisition method, the specific implementation process of the optimized color sample set acquisition method can refer to the specific content of FIG. 1, and the specific implementation process of the color gamut index acquisition method can refer to the specific content of FIG. Repeat. The processor 101 of the electronic device 100 is used to provide computing and control capabilities to support the operation of the entire electronic device 100 . The internal memory 103 may store computer-readable instructions, and when executed by the processor 101, the computer-readable instructions may cause the processor 101 to execute an optimized color sample set acquisition method and/or a color gamut index acquisition method. The input device 104 of the electronic device 100 is used for inputting various parameters, the display screen 105 of the electronic device 100 is used for displaying, the scanning device 106 of the electronic device 100 is used for scanning graphic codes, and the network interface 107 of the electronic device 100 is used for network communication. Those skilled in the art can understand that the structure shown in FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may be Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

基于同一发明构思,本申请实施例提供的一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述优化色样集获取方法和/或上述色域指数获取方法。Based on the same inventive concept, a computer-readable storage medium provided by an embodiment of the present application stores computer-readable instructions thereon, and when the computer-readable instructions are executed by a processor, realizes the above-mentioned method for obtaining an optimized color sample set and/or The above-mentioned color gamut index acquisition method.

此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。Any reference to a memory, storage, database or other medium as used herein may include non-volatile. Suitable nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.

在本申请所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.

另外,作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。In addition, units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

再者,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。Furthermore, each functional module in each embodiment of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.

以上所述仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are merely examples of the present application, and are not intended to limit the protection scope of the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.

Claims (10)

1.一种优化色样集获取方法,其特征在于,包括:1. an optimized color sample set acquisition method, is characterized in that, comprises: 获取大样本集中各色样的色貌参数,所述色貌参数包括明度;obtaining the color appearance parameters of each color sample in the large sample set, where the color appearance parameters include lightness; 将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到;Match the lightness of each color sample with the lightness range of different lightness layers to obtain color samples of different lightness layers, wherein the different lightness layers are obtained by dividing the lightness at equal intervals; 将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中,不同色调区域通过将色调角按照等色调角间隔划分得到;Matching the color samples of each lightness layer with the hue angle ranges of different hue areas to obtain color samples located in different hue areas, wherein the different hue areas are obtained by dividing hue angles according to equal hue angle intervals; 选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;Select the color sample with the highest saturation in each hue area to form the initial high-saturation color sample set; 对所述初始高饱和色样集中的色样进行聚类,得到多个色样类别的色样聚类集;Clustering the color samples in the initial high-saturation color sample set to obtain a color sample clustering set of multiple color sample categories; 将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集。The optimized color swatch set is obtained by taking the respective cluster centers of the color swatch clustering sets corresponding to each color swatch category as the representative color swatches of the color swatch clustering sets of the color swatch category. 2.根据权利要求1所述的优化色样集获取方法,其特征在于,所述获取初始色样集中各色样的色貌参数,包括:2. The method for obtaining an optimized color sample set according to claim 1, wherein the obtaining the color appearance parameters of each color sample in the initial color sample set, comprising: 获取所述大样本集中各色样的光谱数据;acquiring spectral data of each color sample in the large sample set; 基于所述大样本集中各色样的光谱数据,通过色貌模型得到所述大样本集中各色样的色貌参数。Based on the spectral data of each color sample in the large sample set, the color appearance parameters of each color sample in the large sample set are obtained through a color appearance model. 3.根据权利要求1所述的优化色样集获取方法,其特征在于,所述对所述初始高饱和色样集中的色样进行聚类,得到多个色样类别的色样聚类集,包括:3 . The method for obtaining an optimized color sample set according to claim 1 , wherein the color samples in the initial high-saturation color sample set are clustered to obtain a color sample clustering set of multiple color sample categories. 4 . ,include: 对所述初始高饱和色样集中各色样的光谱数据降维处理,得到合计贡献率达到阈值的主要光谱数据;Dimensionality reduction processing is performed on the spectral data of each color sample in the initial high-saturation color sample set to obtain the main spectral data whose total contribution rate reaches a threshold; 将所述主要光谱数据与所述色貌参数融合形成融合数据;fusing the main spectral data and the color appearance parameters to form fusion data; 基于所述融合数据对所述初始高饱和色样集中的色样进行聚类,得到所述多个色样类别的色样聚类集。The color samples in the initial high-saturation color sample set are clustered based on the fusion data to obtain a color sample cluster set of the multiple color sample categories. 4.根据权利要求1所述的优化色样集获取方法,其特征在于,所述将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,包括:4. The method for obtaining an optimized color swatch set according to claim 1, wherein the respective cluster centers of the color swatch clustering sets corresponding to each color swatch category are used as the Representing color swatches, including: 将各色样类别的所有色样的融合数据分别求均值;Calculate the average value of the fusion data of all color samples of each color sample category; 将与所述均值的绝对误差之和最小的色样作为代表色样。The color sample with the smallest sum of absolute errors from the mean value is taken as the representative color sample. 5.一种色域指数获取方法,其特征在于,包括:5. a color gamut index acquisition method, is characterized in that, comprises: 获取大样本集中各色样的色貌参数,所述色貌参数包括明度;obtaining the color appearance parameters of each color sample in the large sample set, where the color appearance parameters include lightness; 将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到;Match the lightness of each color sample with the lightness range of different lightness layers to obtain color samples of different lightness layers, wherein the different lightness layers are obtained by dividing the lightness at equal intervals; 将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中不同色调区域通过将色调角按照等色调角间隔划分得到;Matching the color samples of each lightness layer with the hue angle ranges of different hue regions to obtain color samples located in different hue regions, wherein the different hue regions are obtained by dividing hue angles according to equal hue angle intervals; 选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;Select the color sample with the highest saturation in each hue area to form the initial high-saturation color sample set; 对所述初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集;Clustering the color samples in the initial high-saturation color sample set to obtain a color sample clustering set of multiple color sample categories; 将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集;及Taking the respective cluster centers of the color sample cluster sets corresponding to each color sample category as the representative color samples of the color sample cluster sets of the color sample category, an optimized color sample set is obtained; and 根据所述优化色样集得到光源的色域指数。The color gamut index of the light source is obtained according to the optimized color sample set. 6.一种优化色样集获取装置,其特征在于,包括:6. A device for obtaining an optimized color sample set, comprising: 获取模块,用于获取大样本集中各色样的色貌参数,所述色貌参数包括明度;an acquisition module, configured to acquire color appearance parameters of each color sample in the large sample set, where the color appearance parameters include lightness; 匹配模块,用于将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到,以及将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中,不同色调区域通过将色调角按照等色调角间隔划分得到;The matching module is used to match the brightness of each color sample with the brightness range of different brightness layers, and obtain the color samples of different brightness layers, wherein the different brightness layers are obtained by dividing the brightness at equal intervals, and the color samples of each brightness layer and The hue angle ranges of different hue regions are matched to obtain color samples located in different hue regions, wherein the different hue regions are obtained by dividing hue angles according to equal hue angle intervals; 选取模块,用于选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;The selection module is used to select the color sample with the highest saturation in each hue area to form an initial high-saturation color sample set; 聚类模块,用于对所述初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集;a clustering module, configured to perform clustering on the color samples in the initial high-saturation color sample set to obtain color sample cluster sets of multiple color sample categories; 所述选取模块,还用于将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集。The selection module is further configured to use the respective cluster centers of the color sample cluster sets corresponding to each color sample category as the representative color samples of the color sample cluster sets of the color sample category to obtain an optimized color sample set. 7.根据权利要求6所述的优化色样集获取装置,其特征在于,所述聚类模块用于对所述初始高饱和色样集中各色样的光谱数据降维处理,得到合计贡献率达到阈值的主要光谱数据,将所述主要光谱数据与所述色貌参数融合形成融合数据,以及基于所述融合数据对所述初始高饱和色样集中的色样进行聚类,得到所述多个色样类别的色样聚类集。7. The device for obtaining an optimized color sample set according to claim 6, wherein the clustering module is used to perform dimension reduction processing on the spectral data of each color sample in the initial high-saturation color sample set, and obtain a total contribution rate of up to 100%. The main spectral data of the threshold value, the main spectral data and the color appearance parameter are fused to form fusion data, and the color samples in the initial high-saturation color sample set are clustered based on the fusion data to obtain the plurality of A set of swatch clusters for swatch categories. 8.一种色域指数获取装置,其特征在于,包括:8. A color gamut index acquisition device, characterized in that, comprising: 获取模块,用于获取大样本集中各色样的色貌参数,所述色貌参数包括明度;an acquisition module, configured to acquire color appearance parameters of each color sample in the large sample set, where the color appearance parameters include lightness; 匹配模块,用于将各色样的明度与不同明度层的明度范围进行匹配,得到不同明度层的色样,其中,不同明度层通过将明度等间隔划分得到,以及将各明度层的色样与不同色调区域的色调角范围进行匹配,得到位于不同色调区域的色样,其中不同色调区域通过将色调角按照等色调角间隔划分得到;The matching module is used to match the brightness of each color sample with the brightness range of different brightness layers, and obtain the color samples of different brightness layers, wherein the different brightness layers are obtained by dividing the brightness at equal intervals, and the color samples of each brightness layer and The hue angle ranges of different hue regions are matched to obtain color samples located in different hue regions, wherein the different hue regions are obtained by dividing hue angles according to equal hue angle intervals; 选取模块,用于选取各色调区域中的饱和度最大的色样,形成初始高饱和度色样集;The selection module is used to select the color sample with the highest saturation in each hue area to form an initial high-saturation color sample set; 聚类模块,用于对所述初始高饱和色样集中色样进行聚类,得到多个色样类别的色样聚类集;a clustering module, configured to cluster the color samples in the initial high-saturation color sample set to obtain color sample cluster sets of multiple color sample categories; 所述选取模块,还用于将各色样类别对应的色样聚类集各自的聚类中心作为该色样类别的色样聚类集的代表色样,得到优化色样集;及The selection module is also used to use the respective cluster centers of the color sample cluster sets corresponding to each color sample category as the representative color samples of the color sample cluster sets of the color sample categories to obtain an optimized color sample set; and 计算模块,用于根据所述优化色样集得到光源色域指数。The calculation module is configured to obtain the color gamut index of the light source according to the optimized color sample set. 9.一种电子设备,其特征在于,包括处理器及存储器,所述存储器存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如权利要求1至4中任一项所述的优化色样集获取方法或权利要求5所述的色域指数获取方法。9. An electronic device, characterized in that it comprises a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor is made to perform the execution as claimed in the claims The method for obtaining an optimized color sample set according to any one of 1 to 4 or the method for obtaining a color gamut index according to claim 5 . 10.一种存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被处理器执行时,使得所述处理器执行如权利要求1至4中任一项所述的优化色样集获取方法或权利要求5所述的色域指数获取方法。10. A non-volatile readable storage medium storing computer readable instructions which, when executed by a processor, cause the processor to perform the execution of any one of claims 1 to 4 The optimized color sample set acquisition method or the color gamut index acquisition method described in claim 5.
CN202010098025.5A 2020-02-17 2020-02-17 Optimized color sample set obtaining method and device and color gamut index obtaining method and device Pending CN111324986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010098025.5A CN111324986A (en) 2020-02-17 2020-02-17 Optimized color sample set obtaining method and device and color gamut index obtaining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010098025.5A CN111324986A (en) 2020-02-17 2020-02-17 Optimized color sample set obtaining method and device and color gamut index obtaining method and device

Publications (1)

Publication Number Publication Date
CN111324986A true CN111324986A (en) 2020-06-23

Family

ID=71167043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010098025.5A Pending CN111324986A (en) 2020-02-17 2020-02-17 Optimized color sample set obtaining method and device and color gamut index obtaining method and device

Country Status (1)

Country Link
CN (1) CN111324986A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813173A (en) * 2003-04-30 2006-08-02 帝国化学工业公司 Compensating for human perception of colour
US20110033108A1 (en) * 2009-08-10 2011-02-10 Canon Kabushiki Kaisha Performing spectral gamut mapping for reproducing an image
CN102714687A (en) * 2010-01-19 2012-10-03 阿克佐诺贝尔国际涂料股份有限公司 Method and system for determining colour from an image
JP2016194484A (en) * 2015-04-01 2016-11-17 株式会社リコー Color sample, color sample creation device and color sample creation method, and image processing system using color sample
CN106323473A (en) * 2016-08-04 2017-01-11 中山火炬职业技术学院 Color sample consistency evaluation method under large color difference
CN109655155A (en) * 2018-12-05 2019-04-19 北京印刷学院 Lighting source colour rendering evaluation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813173A (en) * 2003-04-30 2006-08-02 帝国化学工业公司 Compensating for human perception of colour
US20110033108A1 (en) * 2009-08-10 2011-02-10 Canon Kabushiki Kaisha Performing spectral gamut mapping for reproducing an image
CN102714687A (en) * 2010-01-19 2012-10-03 阿克佐诺贝尔国际涂料股份有限公司 Method and system for determining colour from an image
JP2016194484A (en) * 2015-04-01 2016-11-17 株式会社リコー Color sample, color sample creation device and color sample creation method, and image processing system using color sample
CN106323473A (en) * 2016-08-04 2017-01-11 中山火炬职业技术学院 Color sample consistency evaluation method under large color difference
CN109655155A (en) * 2018-12-05 2019-04-19 北京印刷学院 Lighting source colour rendering evaluation method and device

Similar Documents

Publication Publication Date Title
CN109918205A (en) An edge device scheduling method, system, device and computer storage medium
US20210027497A1 (en) Classifying colors of objects in digital images
CN109903256A (en) Model training method, chromatic aberration calibrating method, device, medium and electronic equipment
CN101730835B (en) Method for creating paint color database, retrieval method using database, system, program and recording medium thereof
US20160005188A1 (en) Color name generation from images and color palettes
CN115547270B (en) Color difference adjustment method, device, equipment and storage medium based on spectrum analysis
EP3775810B1 (en) Calibrated brightness estimation using ambient color sensors
US11373343B2 (en) Systems and methods of generating color palettes with a generative adversarial network
CN114512085A (en) Visual color calibration method of TFT (thin film transistor) display screen
CN117615490B (en) Control parameter adjustment method and system for master-controlled atmosphere light and slave-controlled atmosphere light
CN110163217B (en) Method, apparatus and computer readable storage medium for color matching or color matching assistance
CN117320219A (en) Fluorescent powder-free multi-primary-color LED lamp illumination control method and system
US11232596B2 (en) Search quality improvement using color synonyms
CN111324986A (en) Optimized color sample set obtaining method and device and color gamut index obtaining method and device
US20230145070A1 (en) Method and device for deploying and using an image similarity metric with deep learning
CN112016621B (en) Training method of classification model, color classification method and electronic equipment
CN112254814B (en) Method and device for constructing multidimensional spectrum color space and electronic equipment
CN116026770B (en) Determination method, evaluation method and device of white jade-sapphire color classification and grading
Hu et al. Optimizing selection of the test color sample set for the CIE 2017 color fidelity index
US12148146B2 (en) Systems and methods for mapping coatings to a spatial appearance space
US20240005558A1 (en) Automotive color matching system and method
CN116188797A (en) Scene light source color estimation method capable of being effectively embedded into image signal processor
Li et al. Colour constancy based on texture similarity for natural images
CN116090163B (en) Mosaic tile color selection method and related equipment
CN120011913B (en) A test data processing method and system for LED light splitting and color separation machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200623