[go: up one dir, main page]

CN111429547B - A Synthetic Method of Abnormal Color Vision Test Chart Based on False Same Color Search - Google Patents

A Synthetic Method of Abnormal Color Vision Test Chart Based on False Same Color Search Download PDF

Info

Publication number
CN111429547B
CN111429547B CN202010342532.9A CN202010342532A CN111429547B CN 111429547 B CN111429547 B CN 111429547B CN 202010342532 A CN202010342532 A CN 202010342532A CN 111429547 B CN111429547 B CN 111429547B
Authority
CN
China
Prior art keywords
color
test
abnormal
same
pseudo
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.)
Active
Application number
CN202010342532.9A
Other languages
Chinese (zh)
Other versions
CN111429547A (en
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.)
Air Force Engineering University of PLA
Original Assignee
Air Force Engineering University of PLA
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 Air Force Engineering University of PLA filed Critical Air Force Engineering University of PLA
Priority to CN202010342532.9A priority Critical patent/CN111429547B/en
Publication of CN111429547A publication Critical patent/CN111429547A/en
Application granted granted Critical
Publication of CN111429547B publication Critical patent/CN111429547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Eye Examination Apparatus (AREA)
  • Image Processing (AREA)

Abstract

本发明涉及一种基于假同色搜索的异常色觉测试图合成方法,主要步骤包括:搜索假同色对;选取假同色对;生成测试图像;本发明针对异常色觉测试中用于测试受试者色觉情况的测试图样,借助于异常视觉仿真算法,选取色彩空间中的假同色对,对异常视觉测试图图样进行二值化色彩填充,从而产生内容多样、可随机重复、具有异常色觉类型特异性的异常色觉测试图,与现有手工绘制或计算机辅助半手工绘制方法相比灵活随机、简单可控、对不同异常色觉有特异性。

Figure 202010342532

The invention relates to a method for synthesizing abnormal color vision test charts based on false same-color search. The main steps include: searching for false same-color pairs; selecting false same-color pairs; generating test images; the present invention is aimed at testing the color vision of subjects in abnormal color vision tests With the help of the abnormal vision simulation algorithm, the pseudo-same color pairs in the color space are selected, and binary color filling is performed on the abnormal vision test pattern, so as to generate abnormalities with diverse content, random repeatability, and specificity for abnormal color vision types Compared with the existing manual drawing or computer-aided semi-manual drawing method, the color vision test chart is flexible, random, simple and controllable, and has specificity for different abnormal color vision.

Figure 202010342532

Description

一种基于假同色搜索的异常色觉测试图合成方法A Synthetic Method of Abnormal Color Vision Test Chart Based on False Same Color Search

技术领域technical field

本发明属于数字图像生成技术领域,具体涉及一种异常色觉测试图合成方法。The invention belongs to the technical field of digital image generation, and in particular relates to a method for synthesizing abnormal color vision test charts.

背景技术Background technique

随着社会经济的发展和科学技术的不断进步,专业技术分工日益精细,人们对于个体视力、视觉等方面的健康状况更加关切,许多专业对于颜色辨别能力的要求也随之提高,越来越多的行业及部门对于其从业人员视力、视觉方面有了更具体的要求,比如在空军招收飞行员体检、应征入伍体检等领域对于视觉、色觉有着明确的规定,不少大学的特定专业在招生中对色盲学生的报考也进行了一定程度的限制。国外对于一些特勤兵种的视觉色觉有着严格的要求。视力视觉测试作为一种广泛认可的科学定量检查方法,对于人才的发掘、健康领域乃至社会经济发展来说尤为重要。其中,基于假同色原理的色盲色觉检查图是全世界使用最普遍的色觉检查工具。With the development of social economy and the continuous advancement of science and technology, the division of professional technology is becoming more and more refined, people are more concerned about the health status of individual eyesight and vision, and many professions have higher requirements for color discrimination ability. Some industries and departments have more specific requirements for the eyesight and vision of their employees. For example, there are clear regulations on vision and color vision in the fields of air force pilot medical examination and military enlistment medical examination. The application of color-blind students has also been restricted to a certain extent. Foreign countries have strict requirements on the visual and color vision of some special service units. As a widely recognized scientific quantitative inspection method, visual acuity test is particularly important for the discovery of talents, the field of health and even the development of social economy. Among them, the color-blind color vision test chart based on the false same color principle is the most commonly used color vision test tool in the world.

色盲色觉检查图是检测色盲的一种关键工具。根据假同色原理设计的检查方法,用于筛查色觉异常已有百年历史。通过多种类型的检查图式,几何图形、数字图形、线条图形、物体图形等,检测红绿以及蓝黄等色觉异常。这种采用假同色原理图谱进行色盲检查方法存在的主要缺陷是图样单一、配色方案固化、不具有特异性等,这些因素将严重影响检测结果的客观真实性。Color blindness color vision test chart is a key tool for detecting color blindness. The inspection method designed according to the principle of pseudo-same color has been used for screening abnormal color vision for a hundred years. Through various types of inspection patterns, such as geometric figures, digital figures, line figures, object figures, etc., it can detect abnormalities of red, green, blue and yellow and other color vision. The main disadvantages of this method of color blindness inspection using false synchromatic principle atlas are single pattern, fixed color scheme, non-specificity, etc. These factors will seriously affect the objective authenticity of the test results.

现有的异常色觉测试图,大多是采用手工或Photoshop等计算机绘图工具绘制而成的固定样式的检查绘本,样式单一,范式固定,绘制较为繁琐。比如体检中广泛使用的《色盲测试图》第五版,第一组图可供大规模快速检查之用;第二组图以简单的几何图形为特点,适合文化程度较低的成人和文盲体检用;第三组图适合检查儿童,第四组图为多位数字组,供对色觉有较高要求的职业人员体检时用;第五组图为后天色觉检查图,适用于临床眼科医师、神经内、外科医师对眼底疾病和中枢疾病的辅助诊断。Most of the existing abnormal color vision test charts are inspection picture books with a fixed style drawn by hand or with computer drawing tools such as Photoshop. The style is single, the paradigm is fixed, and the drawing is relatively cumbersome. For example, the fifth edition of the "Color Blindness Test Chart" widely used in medical examinations, the first set of charts can be used for large-scale rapid examination; the second set of charts is characterized by simple geometric figures, suitable for adults with low education and illiterate physical examination The third group of pictures is suitable for checking children, the fourth group of pictures is a multi-digit group, which is used for physical examination of professionals who have high requirements for color vision; the fifth group of pictures is acquired color vision examination charts, suitable for clinical ophthalmologists, Auxiliary diagnosis for fundus diseases and central nervous system diseases by neurologists and surgeons.

异常色觉测试图的色觉原理大多是浅红色和浅绿色交叉来干扰测试人,如果是色盲,他看到的只有一种颜色,所以无法分辨色差所构成的数字。读图规则图片中正确答案的图形一般色调是不同于背景色的。检查过程中,医护人员往往采用这些现有的人工色盲检查图绘本对患者进行一一检测,绘制本中的检测图样式单一、数量有限,很容易造成检查的不科学性,发生漏检、检查较为粗糙的情况。尤其画本图样单一,测试者往往可以采用联想或者标识记忆的方法,不需仔细辨认即可记住答案,从而在一定程度上影响了检查结果的准确性与科学性。原有的手工设计、计算机辅助绘制方法,由于过程复杂、耗时耗力、样式固定单一、随机性不强等原因,对于异常色觉测试图的准确性与实用性产生影响,所以需要研究新的方法来制作异常色觉测试图。The principle of color vision in the abnormal color vision test chart is that light red and light green intersect to interfere with the tester. If he is color blind, he can only see one color, so he cannot distinguish the numbers formed by the color difference. The general color tone of the graph of the correct answer in the picture is different from the background color. During the inspection process, medical staff often use these existing artificial color blindness inspection charts to test patients one by one. Rougher conditions. In particular, the picture book has a single pattern, and the testers can often use the method of association or marking memory to remember the answer without careful identification, which affects the accuracy and scientificity of the test results to a certain extent. The original manual design and computer-aided drawing methods have an impact on the accuracy and practicability of the abnormal color vision test chart due to the complex process, time-consuming and labor-intensive, single fixed style, and weak randomness. Therefore, it is necessary to study new methods. Method to make abnormal color vision test chart.

另外,现有的与计算机相关的色盲仪多是存储了已有色盲检查图本所绘制的固定样式,不能根据实际情况灵活随机地产生新图样。比如深圳市罗杰科技有限公司申请的专利“一种色盲仪及色盲的检测方法”(专利申请号:20110224333公开号:102283632A)中提供了一种色盲仪来进行色盲检测。该检测方法包括两个阶段,其中第一阶段主要为随机显示二十一张固定的色盲检测图片来测试受测人员,其不足之处仍然在于依赖固定的检测图样,随机选取,但不能随机产生,无法从根本上解决图像单一、不能保证检测结果的客观性。In addition, most of the existing computer-related color blindness instruments store the fixed patterns drawn in the existing color blindness test charts, and cannot flexibly and randomly generate new patterns according to the actual situation. For example, Shenzhen Luojie Technology Co., Ltd. provides a color blindness instrument for detecting color blindness in the patent "A Color Blindness Instrument and Color Blindness Detection Method" (patent application number: 20110224333 publication number: 102283632A). This detection method consists of two stages, the first stage is mainly to randomly display 21 fixed color blindness detection pictures to test the testees, its shortcoming is still relying on fixed detection patterns, randomly selected, but not randomly generated , cannot fundamentally solve the single image and cannot guarantee the objectivity of the detection results.

发明内容Contents of the invention

针对上述技术问题,本发明提供一种基于假同色搜索的异常色觉测试图合成方法,包括:In view of the above technical problems, the present invention provides a method for synthesizing abnormal color vision test charts based on false same-color search, including:

步骤1:搜索假同色对,即对RGB网格空间上的候选色进行遍历和仿真,并计算候选色仿真前后的感知色差;Step 1: Search for false same-color pairs, that is, traverse and simulate the candidate colors on the RGB grid space, and calculate the perceived color difference before and after the simulation of the candidate colors;

步骤2:选取假同色对,即先判断阈值条件,然后选定假同色对,最后存储假同色对;Step 2: Select false same-color pairs, that is, first judge the threshold condition, then select false same-color pairs, and finally store false same-color pairs;

步骤3:生成测试图像,即选取色盲测试图图样,并以假同色对进行前景填充和背景填充,形成单元测试图,对单元测试图进行编组。Step 3: Generate a test image, that is, select a color blindness test pattern, fill the foreground and background with false same color pairs, form a unit test pattern, and group the unit test patterns.

进一步的,步骤1包括:Further, step 1 includes:

步骤1.1:选取候选色彩,即将RGB空间进行网格划分,在网格的节点上或者以每个网格节点为中心随机进行微小偏移选取候选色彩;Step 1.1: Select candidate colors, that is, divide the RGB space into grids, and randomly perform small offsets on the nodes of the grid or with each grid node as the center to select candidate colors;

步骤1.2:计算仿真色彩,即对选取到的三元组候选颜色向量

Figure BDA0002469025130000021
通过色盲仿真算法得到其对应色向量/>
Figure BDA0002469025130000022
其中τ∈[d,p,t],列表项[d,p,t]分别代表绿色盲、红色盲、蓝色盲;Step 1.2: Calculate the simulated color, that is, the selected triplet candidate color vector
Figure BDA0002469025130000021
Obtain its corresponding color vector through the color blindness simulation algorithm />
Figure BDA0002469025130000022
Among them, τ∈[d,p,t], and the list items [d,p,t] represent deuteranopia, protanopia, and tritanopia respectively;

步骤1.3:计算感知色差,即利用CIE L*a*b*1976颜色差异公式,先将RGB色彩先转换到XYZ色彩空间,然后转换到LAB色彩空间,然后计算{Q,Qτ}之间的色彩差异值ΔE*Lab(Q,Qτ);Step 1.3: Calculate the perceptual color difference, that is, use the CIE L*a*b*1976 color difference formula to first convert the RGB color to the XYZ color space, then convert to the LAB color space, and then calculate {Q,Q τ } between Color difference value ΔE* Lab (Q,Q τ );

步骤2包括:Step 2 includes:

步骤2.1:判断阈值条件,即将阈值条件设定为α≥0,当ΔE*Lab(Q,Qτ)≥α时,保留假同色对{Q,Qτ},作为填充色集合中的元素;当ΔE*Lab(Q,Qτ)≤α时,舍弃假同色对{Q,Qτ},其中α为可设定参数,物理意义为色差阈值;Step 2.1: Judging the threshold condition, that is, setting the threshold condition as α≥0, when ΔE* Lab (Q,Q τ )≥α, keep the false same-color pair {Q,Q τ } as the element in the filling color set; When ΔE* Lab (Q,Q τ )≤α, discard the false same color pair {Q,Q τ }, where α is a parameter that can be set, and its physical meaning is the color difference threshold;

步骤2.2:选定假同色对,即对全部候选色彩进行计算并判断上述阈值条件,按照所设置的色差阈值α来分别选定假同色对集合中的元素;Step 2.2: Select false same-color pairs, that is, calculate all candidate colors and judge the above threshold conditions, and select elements in the false same-color pair set according to the set color difference threshold α;

步骤2.3:存储假同色对,即将选定的假同色集合进行存储;Step 2.3: Store false same-color pairs, that is, store the selected false same-color sets;

步骤3包括:Step 3 includes:

步骤3.1:选取测试图样,即选取便于识别的几何形状、生活中常见图形作为测试图样,将前述产生的任一假同色对组合,分别作为前景色、背景色,填充于测试图样的前景与背景;Step 3.1: Select a test pattern, that is, select an easy-to-recognize geometric shape and a common figure in daily life as the test pattern, combine any false same color pair generated above as the foreground color and background color, and fill the foreground and background of the test pattern ;

步骤3.2:填充测试图案,即采用选定的假同色对,来填充测试图案;Step 3.2: filling the test pattern, that is, using the selected false same color pair to fill the test pattern;

步骤3.3:生成测试单元,即对测试图案进行填充后,得到三通道的彩色图像,作为测试单元;Step 3.3: Generate a test unit, that is, after filling the test pattern, a three-channel color image is obtained as a test unit;

步骤3.4:编组测试图像,即随机选取多个测试单元,合并为一组测试图像。Step 3.4: Group test images, that is, randomly select multiple test units and combine them into a set of test images.

进一步的,步骤1.1中将RGB色彩空间分为X×Y×Z的网格,大小为32×32×32,在网格的节点上选取三元组候选颜色向量;Further, in step 1.1, divide the RGB color space into a grid of X×Y×Z, the size of which is 32×32×32, and select triplet candidate color vectors on the nodes of the grid;

步骤1.2中对应色向量Qτ的计算如下:首先将三元组候选颜色向量Q转换到LMS空间,得到LMS空间中对应的色彩向量,如下式:The calculation of the corresponding color vector Q τ in step 1.2 is as follows: first, the triplet candidate color vector Q is converted to the LMS space, and the corresponding color vector in the LMS space is obtained, as follows:

Figure BDA0002469025130000031
Figure BDA0002469025130000031

其中

Figure BDA0002469025130000032
为RGB色彩空间到LMS色彩空间的变换矩阵;in
Figure BDA0002469025130000032
is the transformation matrix from RGB color space to LMS color space;

其次使用色盲仿真算法得到LMS色彩空间中的τ型色盲仿真向量:Secondly, use the color-blindness simulation algorithm to obtain the τ-type color-blindness simulation vector in the LMS color space:

Figure BDA0002469025130000033
Figure BDA0002469025130000033

其中Tsim τ为色盲仿真算法中的变换矩阵;Where T sim τ is the transformation matrix in the color blindness simulation algorithm;

然后将LMS色彩空间的τ型色盲仿真向量转换回RGB空间向量,即,Then convert the τ-type color blindness simulation vector of LMS color space back to RGB space vector, that is,

Figure BDA0002469025130000041
Figure BDA0002469025130000041

其中Qτ为三元组候选颜色向量Q的色盲仿真对应色,即{Q,Qτ}为一对假同色;Among them, Q τ is the color-blind simulation corresponding color of the triplet candidate color vector Q, that is, {Q, Q τ } is a pair of false same colors;

步骤1.3中根据下式来计算{Q,Qτ}之间的色彩差异值:In step 1.3, calculate the color difference value between {Q, Q τ } according to the following formula:

Figure BDA0002469025130000042
Figure BDA0002469025130000042

其中(LQ*,aQ*,bQ*)表示候选色彩Q转换到LAB空间后的结果,

Figure BDA0002469025130000043
表示仿真色彩Qτ转换到LAB空间后的三个分量;Where (L Q *, a Q *, b Q *) represents the result of the candidate color Q converted to the LAB space,
Figure BDA0002469025130000043
Represents the three components after the simulation color Q τ is converted to the LAB space;

步骤2.1中采用α=50;Adopt α=50 in step 2.1;

步骤2.2在选定的假同色对集合中随机选取,或将集合中色彩元素进行可视化后直接拾取;Step 2.2 randomly selects from the selected set of false same-color pairs, or directly picks up the color elements in the set after visualizing them;

步骤2.3中存储方式可采用哈希列表、字典等数据结构,文件格式可使用JSON或Pickle对象;The storage method in step 2.3 can adopt data structures such as hash list and dictionary, and the file format can use JSON or Pickle object;

步骤3.1中随机产生数字0-9作为前景内容、剩余空白区域作为背景,构成测试图样;In step 3.1, the number 0-9 is randomly generated as the foreground content, and the remaining blank area is used as the background to form a test pattern;

步骤3.4中选取5*5个单元测试图组成一例测试图像。In step 3.4, select 5*5 unit test images to form a test image.

进一步的,步骤1.1中将RGB色彩空间分为X×Y×Z的网格,以网格节点(x0,y0,z0)为中心,向各个方向上随机小步长偏移(Δx,Δy,Δz)到达的点,作为三元组候选颜色向量。Further, in step 1.1, the RGB color space is divided into X×Y×Z grids, with the grid node (x 0 , y 0 , z 0 ) as the center, and a random small step offset (Δx ,Δy,Δz) to reach the point, as a triplet candidate color vector.

进一步的,步骤3.2中以假同色对直接填充测试图样,以仿真色为背景填充色,以原色彩为前景填充色。Further, in step 3.2, the test pattern is directly filled with the false same color pair, the simulated color is used as the background filling color, and the original color is used as the foreground filling color.

进一步的,步骤3.2中以假同色对分割式填充测试图样,采用K-D树数据结构绘制不相互重叠的小圆圈几何图案,形成分割式测试图单元。Further, in step 3.2, the false same-color pairs are used to fill the split test pattern, and the K-D tree data structure is used to draw geometric patterns of small circles that do not overlap each other to form a split test pattern unit.

进一步的,步骤3.2中以假同色对的近似色泛化式填充测试图样,在LAB色彩空间中以假同色为球心、半径为ρ的球体空间中依照高斯分布来随机拾取相近色,来填充每次产生的小几何图案,其中0<ρ<32。Further, in step 3.2, the approximate color of the false same color pair is used to fill the test pattern in a generalized manner, and in the LAB color space, the false same color is used as the center of the sphere and the radius is ρ to randomly pick similar colors according to the Gaussian distribution to fill Small geometric patterns generated each time, where 0<ρ<32.

进一步的,步骤1.1取小步长的模

Figure BDA0002469025130000044
其中Δx,Δy,Δz均为整数;Further, step 1.1 takes the modulus of the small step size
Figure BDA0002469025130000044
Where Δx, Δy, Δz are all integers;

步骤3.2中以细密度的方格图案填充测试图样。In step 3.2, fill the test pattern with a fine-density checkered pattern.

本发明还提供一种异常色觉测试图应用装置,其特征在于:上述异常色觉测试图制作方法产生的图像可以用于专用的色觉检测计算机装置、嵌入式软硬件、纸质打印装置或互联网应用软件系统。The present invention also provides an application device for an abnormal color vision test chart, which is characterized in that: the image generated by the above-mentioned abnormal color vision test chart production method can be used in a special color vision detection computer device, embedded software and hardware, paper printing device or Internet application software system.

进一步的,色觉检测计算机装置包括各型号计算机、移动终端、虚拟现实设备、谷歌眼镜、iPad平板电脑、专用显示器、医学眼视光测试仪等设备开发对应的离线或在线应用在软件系统实现上述色觉测试图合成方法,以单元测试图、编组测试图为用例,在显示屏上呈现;嵌入式软硬件与纸质打印装置通过单片机、FPGA等各类嵌入式系统以及开发板,以相应编程语言实现色觉测试图合成方法,或者在其它硬件平台上预先合成色觉测试图,然后存储在嵌入式设备当中来显示或打印;互联网应用软件系统以各类编程语言如Javascript、超文本标记语言等开发并实现所述色觉测试合成方法,或者以微服务、离线应用的形式在浏览器或APP端呈现色觉测试图并结合交互式设计来实施色觉测试。Further, the computer device for color vision detection includes various types of computers, mobile terminals, virtual reality equipment, Google glasses, iPad tablet computers, special displays, medical optometry testers and other equipment to develop corresponding offline or online applications in the software system to realize the above color vision The synthesis method of the test pattern, taking the unit test pattern and grouping test pattern as examples, presents on the display screen; the embedded software and hardware and the paper printing device are implemented in the corresponding programming language through various embedded systems such as single-chip microcomputers and FPGAs and development boards Color vision test chart synthesis method, or pre-synthesize color vision test charts on other hardware platforms, and then store them in embedded devices for display or printing; Internet application software systems are developed and implemented with various programming languages such as Javascript, hypertext markup language, etc. The method for synthesizing the color vision test is to present the color vision test diagram in the browser or APP in the form of micro-services and offline applications and implement the color vision test in combination with interactive design.

本发明针对异常色觉测试中用于测试受试者色觉情况的测试图样,借助于异常视觉仿真算法,选取色彩空间中的假同色对,对异常视觉测试图图样进行二值化色彩填充,从而产生内容多样、可随机重复、具有异常视觉类型特异性的异常色觉测试图。本发明与现有手工绘制或计算机辅助半手工绘制方法相比具有灵活随机、简单可控、对不同异常色觉有特异性等特点。The present invention aims at the test pattern used to test the color vision of the subject in the abnormal color vision test, by means of the abnormal vision simulation algorithm, selects the false same color pair in the color space, and performs binary color filling on the abnormal vision test pattern, thereby producing Abnormal color vision test charts with diverse content, random repeatability, and specificity for abnormal vision types. Compared with the existing manual drawing or computer-aided semi-manual drawing method, the present invention has the characteristics of being flexible and random, simple and controllable, specific for different abnormal color visions, and the like.

附图说明Description of drawings

图1为本发明方法流程图;Fig. 1 is a flow chart of the method of the present invention;

图2为不同色彩阈值α下,三种典型色盲类型对应的假同色对在RGB颜色空间的分布曲线;Figure 2 shows the distribution curves of false homochromatic pairs corresponding to three typical types of color blindness in the RGB color space under different color thresholds α;

图3为使用本发明方法制作的单元测试图;Fig. 3 is the unit test figure that uses the inventive method to make;

图4为使用本发明方法制作的编组测试图。Fig. 4 is a grouping test diagram made using the method of the present invention.

具体实施方式Detailed ways

下面结合附图及实施例对本发明做进一步的描述。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

针对现有色觉检查技术的不足,以及现有异常色觉测试图图样单一、色彩搭配方案无特异性等问题,本发明提出了一种基于假同色搜索的异常色觉测试图制作方法。其技术思路是借助于现有的异常色觉仿真算法,在感知色彩空间中设置参数来搜索针对特定异常色觉类型的假同色对组合;然后选取图样,并以假同色对进行图样前景与背景色彩填充,产生二值化单元测试图;最后将多幅二值化单元测试图进行编组,形成测试图。In view of the shortcomings of the existing color vision inspection technology, as well as the problems of the single pattern of the existing abnormal color vision test chart and the non-specific color matching scheme, the present invention proposes a method for making an abnormal color vision test chart based on false same-color search. The technical idea is to use the existing abnormal color vision simulation algorithm to set parameters in the perceptual color space to search for the false same-color pair combination for a specific type of abnormal color vision; then select the pattern and use the false same-color pair to fill the foreground and background colors , to generate a binarized unit test chart; finally, multiple binarized unit test charts are grouped to form a test chart.

本发明具体步骤如图1所示,包括:Concrete steps of the present invention are as shown in Figure 1, comprise:

步骤1:搜索假同色对。对RGB网格空间上的候选色进行遍历和仿真,并计算候选色仿真前后的感知色差。Step 1: Search for false same-color pairs. Traverse and simulate the candidate colors on the RGB grid space, and calculate the perceived color difference before and after the simulation of the candidate colors.

步骤1.1:选取候选色彩。将RGB空间进行网格划分,在网格的节点上或者以每个网格节点为中心随机进行微小偏移选取候选色彩;Step 1.1: Select candidate colors. The RGB space is divided into grids, and a small offset is randomly performed on the nodes of the grid or centered on each grid node to select candidate colors;

将RGB色彩空间分为X×Y×Z的网格,比如大小可以为32×32×32,在网格的节点上选取三元组候选颜色向量;或以网格节点(x0,y0,z0)为中心,向各个方向上随机小步长偏移(Δx,Δy,Δz)到达的点,作为三元组候选颜色向量,小步长的模

Figure BDA0002469025130000061
其中Δx,Δy,Δz均为整数。Divide the RGB color space into X×Y×Z grids, for example, the size can be 32×32×32, and select triplet candidate color vectors on grid nodes; or use grid nodes (x 0 ,y 0 , z 0 ) as the center, and shift (Δx, Δy, Δz) to each direction with a random small step size to reach the point, as a triplet candidate color vector, the modulus of the small step size
Figure BDA0002469025130000061
Among them, Δx, Δy, and Δz are all integers.

步骤1.2:计算仿真色彩。对选取到的三元组候选颜色向量

Figure BDA0002469025130000062
通过色盲仿真算法得到其对应色向量/>
Figure BDA0002469025130000063
其中τ∈[d,p,t],列表项[d,p,t]分别代表绿色盲、红色盲、蓝色盲,对应色向量Qτ的计算如下:Step 1.2: Calculate the simulated color. For the selected triplet candidate color vector
Figure BDA0002469025130000062
Obtain its corresponding color vector through color blindness simulation algorithm />
Figure BDA0002469025130000063
Among them, τ∈[d,p,t], the list items [d,p,t] represent deuteranopia, protanopia, and tritanopia respectively, and the corresponding color vector Q τ is calculated as follows:

首先将三元组候选颜色向量Q转换到LMS空间,得到LMS空间中对应的色彩向量,如下式:First, the triplet candidate color vector Q is converted to the LMS space, and the corresponding color vector in the LMS space is obtained, as follows:

Figure BDA0002469025130000064
Figure BDA0002469025130000064

其中

Figure BDA0002469025130000065
为RGB色彩空间到LMS色彩空间的变换矩阵;in
Figure BDA0002469025130000065
is the transformation matrix from RGB color space to LMS color space;

其次使用Brettel等人提出的色盲仿真算法得到LMS色彩空间中的τ型色盲仿真向量:Secondly, use the color-blindness simulation algorithm proposed by Brettel et al. to obtain the τ-type color-blindness simulation vector in the LMS color space:

Figure BDA0002469025130000066
Figure BDA0002469025130000066

其中Tsim τ为色盲仿真算法中的变换矩阵;Where T sim τ is the transformation matrix in the color blindness simulation algorithm;

然后将LMS色彩空间的τ型色盲仿真向量转换回RGB空间向量,即,Then convert the τ-type color blindness simulation vector of LMS color space back to RGB space vector, that is,

Figure BDA0002469025130000071
Figure BDA0002469025130000071

上述一系列计算过程可概括为一个单独的函数关系式来表示,即:The above-mentioned series of calculation processes can be summarized as a single functional relational expression, namely:

Qτ=fsim(Q;τ),τ∈[d,p,t]Q τ = f sim (Q; τ), τ∈[d,p,t]

其中Qτ为三元组候选颜色向量Q的色盲仿真对应色,即{Q,Qτ}为一对假同色;Among them, Q τ is the color-blind simulation corresponding color of the triplet candidate color vector Q, that is, {Q, Q τ } is a pair of false same colors;

步骤1.3:计算感知色差。利用CIE L*a*b*1976颜色差异公式,先将RGB色彩先转换到XYZ色彩空间,然后转换到LAB色彩空间,然后根据下式来计算{Q,Qτ}之间的色彩差异值:Step 1.3: Calculate the perceived color difference. Using the CIE L*a*b*1976 color difference formula, the RGB color is first converted to the XYZ color space, and then converted to the LAB color space, and then the color difference value between {Q,Q τ } is calculated according to the following formula:

Figure BDA0002469025130000072
Figure BDA0002469025130000072

其中(LQ*,aQ*,bQ*)表示候选色彩Q转换到LAB空间后的结果,

Figure BDA0002469025130000073
表示仿真色彩Qτ转换到LAB空间后的三个分量;Where (L Q *, a Q *, b Q *) represents the result of the candidate color Q converted to the LAB space,
Figure BDA0002469025130000073
Represents the three components after the simulation color Q τ is converted to the LAB space;

步骤2:选取假同色对。先判断阈值条件,然后选定假同色对,最后存储假同色对。Step 2: Select false same color pair. The threshold condition is judged first, then the false same-color pair is selected, and finally the false same-color pair is stored.

步骤2.1:判断阈值条件。将阈值条件设定为α≥0,当ΔE*Lab(Q,Qτ)≥α时,保留假同色对{Q,Qτ},作为填充色集合中的元素;当ΔE*Lab(Q,Qτ)≤α时,舍弃假同色对{Q,Qτ};其中α为可设定参数,物理意义为色差阈值,根据图2所示的假同色占比对色差阈值分布曲线,采用α=50,此时红、绿色盲类型的假同色占比约为20%,蓝色盲类型的假同色占比约为70%,可以保证选取到的假同色具有较大色差的同时,对每一种色盲类型都能选取到足够数量的假同色;Step 2.1: Determine the threshold condition. Set the threshold condition as α≥0, when ΔE* Lab (Q,Q τ )≥α, keep the false same color pair {Q,Q τ } as the element in the fill color set; when ΔE* Lab (Q, When Q τ )≤α, discard the false homochromatic pair {Q,Q τ }; where α is a parameter that can be set, and its physical meaning is the threshold value of color difference. =50, at this time, the false homochromatic proportion of the red and green blind types is about 20%, and the false homochromatic proportion of the tritanopic type is about 70%. A sufficient number of false same colors can be selected for each type of color blindness;

步骤2.2:选定假同色对。对全部候选色彩进行计算并判断上述阈值条件,按照所设置的色差阈值α来分别选定假同色对集合中的元素。在实际填充过程中,可以在选定的假同色对集合中随机选取,或将集合中色彩元素进行可视化后直接拾取,以方便选择要使用的假同色对;Step 2.2: Select false same-color pairs. Calculate all candidate colors and judge the above threshold conditions, and select the elements in the false same color pair set according to the set color difference threshold α. In the actual filling process, you can randomly select from the selected set of false same-color pairs, or directly pick up the color elements in the set after visualization, so as to facilitate the selection of false-same-color pairs to be used;

步骤2.3:存储假同色对。将选定的假同色集合进行存储,避免每次重复计算,方便后续使用。存储方式可采用哈希列表、字典等数据结构,文件格式可使用JSON或Pickle对象。Step 2.3: Store false same-color pairs. Store the selected false same-color set to avoid repeated calculation each time and facilitate subsequent use. The storage method can adopt data structures such as hash list and dictionary, and the file format can use JSON or Pickle object.

步骤3:生成测试图像。选取色盲测试图图样,并以假同色对进行前景填充和背景填充,形成单元测试图;也可以对单元测试图进行编组,形成编组测试图。Step 3: Generate test images. Select the pattern of the color blindness test chart, and fill the foreground and background with false same color pairs to form a unit test chart; you can also group the unit test charts to form a group test chart.

步骤3.1:选取测试图样。测试图样的选择可以根据实际调整,可采用便于识别的几何形状、生活中常见图形,以减少图样对测试结果的干扰。以阿拉伯数字0-9为例,随机产生数字0-9作为前景内容、剩余空白区域作为背景,构成测试图样。将前述产生的任一假同色对组合,分别作为前景色、背景色,填充于测试图样的前景与背景,即可生成一个测试图像单元,此时生成的测试图像单元为二值化图像,即只包含两种颜色,这两种颜色在其对应色盲类型人员眼中仅包含一种色彩,因此其不能识别出其中的数字;Step 3.1: Select the test pattern. The selection of test patterns can be adjusted according to the actual situation, and geometric shapes that are easy to identify and common graphics in daily life can be used to reduce the interference of patterns on test results. Taking the Arabic numerals 0-9 as an example, the numbers 0-9 are randomly generated as the foreground content, and the remaining blank area is used as the background to form a test pattern. Combining any of the false same color pairs generated above as the foreground color and background color respectively, filling the foreground and background of the test pattern, a test image unit can be generated, and the generated test image unit at this time is a binary image, namely Contains only two colors, and these two colors contain only one color in the eyes of the corresponding color-blind person, so they cannot recognize the numbers in it;

步骤3.2:填充测试图案。采用选定的假同色对,来填充测试图案。Step 3.2: Fill the test pattern. Fill the test pattern with the selected pseudo-identical color pairs.

方式1:以假同色对直接填充测试图样,形成二值化测试图单元,如图3(a)所示。以上述假同色搜索过程中选取的假同色对,对测试图样的前景与背景分别进行填充,次序可以任意,一般情况下,以仿真色为背景填充色,以原色彩为前景填充色。最终产生的图像,在对应类型的异常色觉人员看来,为同一颜色的图形,故不能识别前景内容;Mode 1: directly fill the test pattern with false same-color pairs to form a binary test pattern unit, as shown in Figure 3(a). Fill the foreground and background of the test pattern with the false same-color pairs selected in the above-mentioned false same-color search process. The resulting image, in the eyes of a person with abnormal color vision of the corresponding type, is a figure of the same color, so the foreground content cannot be recognized;

方式2:以假同色对分割式填充测试图样,形成分割式测试图单元,如图3(b)所示。以上述假同色搜索过程中选取的假同色对分别为前景与背景,次序可以任意,将测试图样作为底版,来绘制不相互重叠的小圆圈等几何图案,通过几何图案区域与底版重叠区域的大小,来判定该图案属于前景还是背景,从而填充相应的颜色。不相互重叠的小圆圈等几何图案的绘制过程中,可采用现有的各类K-D树数据结构,对已绘制的小几何图案进行属性及坐标存储,来加速绘制过程。最终产生的色觉测试图,纹理上接近临床中常用的色觉测试图,在对应类型的异常色觉人员看来,前景混淆在背景中,故不能识别到前景内容;Mode 2: fill the test pattern with false same-color pairs to form a split test pattern unit, as shown in Figure 3(b). The false same-color pairs selected in the above-mentioned false same-color search process are respectively the foreground and the background, and the order can be arbitrary. The test pattern is used as the base plate to draw geometric patterns such as small circles that do not overlap each other. The size of the overlapping area between the geometric pattern area and the base plate , to determine whether the pattern belongs to the foreground or the background, so as to fill the corresponding color. In the drawing process of geometric patterns such as small circles that do not overlap with each other, various existing K-D tree data structures can be used to store attributes and coordinates of the drawn small geometric patterns to speed up the drawing process. The resulting color vision test chart is similar in texture to the color vision test chart commonly used in clinical practice. From the perspective of people with abnormal color vision of the corresponding type, the foreground is confused with the background, so the foreground content cannot be recognized;

方式3:假同色对的近似色泛化式填充测试图样,产生具有一定鲁棒性的测试单元,如图3(c)所示。以方式2中所述分割式填充方法,在小圆圈等几何图案具体填色时,不直接使用假同色对,而是在LAB色彩空间中以假同色为球心、半径为ρ的球体空间中依照高斯分布来随机拾取相近色,来填充每次产生的小几何图案,一般可取0<ρ<32。最终产生的图像,对校准欠佳的显示设备、打印机以及非理想的亮度环境,具有一定抗干扰能力。在对应类型的异常色觉人员看来,前景与背景图案纹理一致,故不能识别到前景内容;Method 3: The approximate color generalization filling test pattern of the false same color pair generates a test unit with certain robustness, as shown in Fig. 3(c). Using the divided filling method described in method 2, when filling geometric patterns such as small circles, the false same color pair is not directly used, but in the sphere space with the false same color as the center and radius ρ in the LAB color space Randomly pick similar colors according to the Gaussian distribution to fill the small geometric patterns generated each time, generally 0<ρ<32. The resulting image is immune to interference from poorly calibrated displays, printers, and non-ideal brightness environments. In the eyes of people with abnormal color vision of the corresponding type, the foreground and background pattern textures are consistent, so the foreground content cannot be recognized;

其他方式:还可包括其他与上述三种形式类似的衍生变体,如细密度的方格图案,或者在每个测试单元中包含多个并列呈现的前景图案。最终产生的色觉测试图单元,在异常色觉人员看来,会将前景与背景混淆,难以识别到前景内容;Other ways: Other derivatives similar to the above three forms can also be included, such as a fine-density checkered pattern, or multiple foreground patterns presented side by side in each test unit. The resulting color vision test chart unit, in the eyes of people with abnormal color vision, will confuse the foreground with the background, and it is difficult to recognize the foreground content;

步骤3.3:生成测试单元。对测试图案进行填充后,即可得到三通道的彩色图像,作为测试单元。另外也可以对候选测试单元进行仿真,直观评价图像测试单元的效果,根据其能否在理论上对异常色觉构成混淆,对其进一步取舍。Step 3.3: Generate test units. After filling the test pattern, a three-channel color image can be obtained as a test unit. In addition, the candidate test unit can also be simulated to visually evaluate the effect of the image test unit, and further choose it according to whether it can theoretically confuse abnormal color vision.

步骤3.4:编组测试图像。随机选取多个测试单元,合并为一组测试图像,如图4所示,其中图4(a)、(b)、(c)分别对应步骤3.2中三种方式填充的测试单元所合并形成的编组测试图。Step 3.4: Group test images. Randomly select multiple test units and merge them into a set of test images, as shown in Figure 4, where Figure 4 (a), (b), and (c) respectively correspond to the test units that are filled in three ways in step 3.2. Group test graphs.

考虑到色盲仿真模型可能存在的误差,以及个体色觉客观存在的细微差异性,采用将多幅图像编为一组形成一例测试图像,从而根据受试人员所读出的测试单元个数占总体测试单元数的比率,来综合评价受试人员的色觉情况。一般可选取5*5个单元测试图组成一例测试图像,每次测试时整例图中的单元测试图全部重新随机产生,由此可以保证测试图的随机性。Considering the possible errors in the color blindness simulation model and the subtle differences in individual color vision objectively, multiple images are grouped together to form a test image, so that the number of test units read out by the subjects accounts for the overall test The ratio of the number of units to comprehensively evaluate the color vision of the subjects. Generally, 5*5 unit test diagrams can be selected to form a test image, and the unit test diagrams in the whole example diagram are all re-generated randomly during each test, thus ensuring the randomness of the test diagram.

本发明还包含以下软硬件装置及系统:The present invention also includes the following software and hardware devices and systems:

1.色觉检测计算机装置。针对各型号计算机、移动终端、虚拟现实(VR)设备如Oculus、谷歌眼镜、iPad平板电脑、专用显示器、医学眼视光测试仪等设备开发对应的离线或在线应用,在软件系统实现上述色觉测试图合成方法,以单元测试图、编组测试图为用例,在显示屏上呈现;亦可提前生成本法所述测试图样本,存储在硬盘或内存中,在测试时随机抽取显示;同时结合专门制订的一系列评估规程,来进行色觉测试,包括但不限于以编组测试图的正确读图率来作为色觉测试结果打分。对图像产生、呈现的控制指令输入可通过触控、语音、鼠标等多种形式。1. A computer device for detecting color vision. Develop corresponding offline or online applications for various types of computers, mobile terminals, virtual reality (VR) devices such as Oculus, Google Glass, iPad tablet computers, special displays, medical ophthalmology testers, etc., and realize the above color vision test in the software system The graph synthesis method uses unit test graphs and group test graphs as examples, and presents them on the display screen; it can also generate test graph samples described in this method in advance, store them in the hard disk or memory, and randomly select them for display during testing; at the same time, combined with special A series of evaluation procedures have been formulated to conduct color vision tests, including but not limited to scoring the results of the color vision test based on the correct reading rate of the grouped test charts. The input of control commands for image generation and presentation can be in various forms such as touch, voice, and mouse.

2.嵌入式软硬件与纸质打印装置。通过单片机、FPGA等各类嵌入式系统以及开发板,以相应编程语言实现色觉测试图合成方法,或者在其它硬件平台上预先合成色觉测试图,然后存储在嵌入式设备当中来显示或打印。通过将色觉测试图彩色打印为纸质版,结合测试规程的说明文字,以试卷形式发放给受试人员来进行测试。打印设备可以采用国内外各厂商生产的各型号彩印装置,也可以采用快速成像相机技术、拍立得等设备。具体实现方式包括但不限于以下方法:如以嵌入式硬件、计算机软件实现色觉测试图制作,传输到彩色打印机进行印刷,分发给受试人员,以进行色觉测试。2. Embedded hardware and software and paper printing device. Through various embedded systems such as single-chip microcomputers and FPGAs and development boards, the method of synthesizing color vision test charts is realized in corresponding programming languages, or the color vision test charts are pre-synthesized on other hardware platforms, and then stored in embedded devices for display or printing. The color vision test chart is printed into a paper version in color, combined with the explanatory text of the test procedure, and distributed to the subjects in the form of test papers for testing. The printing equipment can adopt various models of color printing devices produced by various manufacturers at home and abroad, and can also adopt equipment such as rapid imaging camera technology and instant cameras. Specific implementation methods include but are not limited to the following methods: such as using embedded hardware and computer software to realize the production of color vision test charts, transmit them to color printers for printing, and distribute them to test personnel for color vision testing.

3.互联网应用软件系统。以各类编程语言如Javascript、超文本标记语言等开发并实现所述色觉测试合成方法,或者以微服务、离线应用的形式在浏览器或APP端呈现色觉测试图,可结合一定的交互式设计来实施色觉测试。具体实现架构包括但不限于以下两种方式:一、直接采用Javascript语言在客户端浏览器中执行,产生色觉测试图并进行测试;二、采用后台系统产生色觉测试图,然后在客户端浏览器中以超文本标记语言或单页应用组件可视化显示,来进行色觉测试。3. Internet application software system. Develop and implement the color vision test synthesis method with various programming languages such as Javascript, hypertext markup language, etc., or present the color vision test chart in the browser or APP in the form of micro-services and offline applications, which can be combined with certain interactive design To carry out the color vision test. The specific implementation architecture includes but is not limited to the following two methods: 1. Directly use Javascript language to execute in the client browser to generate and test the color vision test chart; 2. Use the background system to generate the color vision test chart, and then run it on the client browser Visually display in HTML or Single Page Application components for color vision testing.

本发明可以按需随机产生图样内容,克服了固定图样所具有的缺陷;本发明产生过程中可以调整参数,具有配色可控、科学易用的优点;本发明可以通过单张测试图来定性判断受试者色觉情况,也可以根据受试者对编组后的单元测试图辨识的比例来线性评估其色盲严重程度。The present invention can randomly generate pattern content on demand, which overcomes the defects of fixed patterns; parameters can be adjusted during the generation process of the present invention, and has the advantages of controllable color matching, scientific and easy-to-use; the present invention can be qualitatively judged by a single test chart For the color vision of the subjects, the severity of their color blindness can also be evaluated linearly according to the ratio of the subjects' recognition of the grouped unit test charts.

Claims (9)

1. An abnormal color vision test chart synthesis method based on pseudo-same color search comprises the following steps:
step 1: searching pseudo-same color pairs, namely traversing and simulating candidate colors on an RGB grid space, and calculating perceived color difference before and after the candidate color simulation;
the step 1 comprises the following steps:
step 1.1: selecting candidate colors, namely performing grid division on an RGB space, and randomly performing tiny offset on nodes of grids or taking each grid node as a center to select the candidate colors;
step 1.2: calculating the artificial colour, i.e. candidate colour vector for selected triples
Figure FDA0004119757060000011
The corresponding color vector +.A corresponding color vector is obtained through a color blind simulation algorithm>
Figure FDA0004119757060000012
Wherein τ ε [ d, p, t ]]List items [ d, p, t ]]Respectively representing green color blindness, red color blindness and blue color blindness;
step 1.3: calculating perceived color difference, i.e. converting RGB color to XYZ color space, then to LAB color space, and then calculating { Q, Q }, using CIE Lab1976 color difference formula τ Color difference value Δe between } Lab (Q,Q τ );
Step 2: selecting a false same-color pair, namely judging a threshold condition, selecting the false same-color pair, and storing the false same-color pair;
the step 2 comprises the following steps:
step 2.1: judging the threshold condition, namely setting the threshold condition to be alpha more than or equal to 0, when delta E is Lab (Q,Q τ ) When not less than alpha, the pseudo-homochromatic pair { Q, Q is reserved τ -as an element in the set of fill colors; when delta E Lab (Q,Q τ ) Discarding pseudo-homochromatic pairs when alpha is less than or equal to alpha
{Q,Q τ -wherein α is a settable parameter, the physical meaning is a color difference threshold;
step 2.2: selecting false same-color pairs, namely calculating all candidate colors, judging the threshold condition, and respectively selecting elements in a false same-color pair set according to a set color difference threshold alpha;
step 2.3: storing the pseudo-same-color pair, namely storing the selected pseudo-same-color set;
step 3: generating a test image, namely selecting a color blindness test pattern, filling a foreground and a background with a pseudo-same color pair to form a unit test pattern, and grouping the unit test pattern;
the step 3 comprises the following steps:
step 3.1: selecting a test pattern, namely selecting geometric shapes which are convenient to identify and common patterns in life as the test pattern, combining any false same-color pair generated in the process as a foreground color and a background color respectively, and filling the foreground and the background of the test pattern;
step 3.2: filling the test pattern, namely filling the test pattern by adopting the selected pseudo-same color pair;
step 3.3: generating a test unit, namely filling the test pattern to obtain a three-channel color image serving as the test unit;
step 3.4: the test images are grouped, i.e. a plurality of test units are selected randomly and combined into a group of test images.
2. The abnormal color vision test chart synthesizing method based on pseudo-same color search as defined in claim 1, wherein the abnormal color vision test chart synthesizing method is characterized by comprising the following steps:
in the step 1.1, dividing the RGB color space into grids of X multiplied by Y multiplied by Z, wherein the size is 32 multiplied by 32, and selecting a triplet candidate color vector on a node of the grid;
corresponding color vector Q in step 1.2 τ Is calculated as follows: firstly, converting the triplet candidate color vector Q into an LMS space to obtain a corresponding color vector in the LMS space, wherein the color vector is represented by the following formula:
Figure FDA0004119757060000021
wherein the method comprises the steps of
Figure FDA0004119757060000022
A transformation matrix for the RGB color space to the LMS color space;
and then using a color blindness simulation algorithm to obtain tau-type color blindness simulation vectors in the LMS color space:
Figure FDA0004119757060000023
wherein T is sim τ The transformation matrix is used in the color blindness simulation algorithm;
the tau-color blind simulation vector of the LMS color space is then converted back into an RGB space vector, i.e.,
Figure FDA0004119757060000024
wherein Q is τ Corresponding colors, i.e., { Q, are simulated for achromatopsia of the triplet candidate color vector Q τ -a pair of pseudo-homochromes;
in step 1.3 { Q, Q is calculated according to the following formula τ Color difference value between }:
ΔE* Lab (Q,Q τ )=[(L Q *-L *) 2 +(a Q *-a *) 2 +(b Q *-b *) 2 ]
wherein (L) Q *,a Q *,b Q * ) Representing the result of conversion of candidate color Q into LAB space, (L) *,a *,b * ) Representing the simulation color Q τ Three components after conversion to LAB space;
step 2.1 employs α=50;
step 2.2, randomly selecting in the selected pseudo-same color pair set, or directly picking up color elements in the set after visualization;
the storage mode in the step 2.3 can adopt a hash list or dictionary data structure, and a file format can use JSON or Pickle objects;
randomly generating numbers 0-9 as foreground contents and the rest blank area as background in the step 3.1 to form a test pattern;
in step 3.4, 5*5 unit test patterns are selected to form one test image.
3. The abnormal color vision test chart synthesizing method based on pseudo-same color search as defined in claim 2, wherein the abnormal color vision test chart synthesizing method is characterized in that:
in step 1.1, the RGB color space is divided into grids of X Y X Z, and the grids are divided into grid nodes (X 0 ,y 0 ,z 0 ) As a center, the points reached by the random small step offsets (Δx, Δy, Δz) in each direction are used as triplet candidate color vectors.
4. The abnormal color vision test chart synthesizing method based on pseudo-same color search as defined in claim 2, wherein the abnormal color vision test chart synthesizing method is characterized in that:
in the step 3.2, the test pattern is directly filled with the pseudo-same color pair, the simulated color is used as the background filling color, and the original color is used as the foreground filling color.
5. The abnormal color vision test chart synthesizing method based on pseudo-same color search as defined in claim 2, wherein the abnormal color vision test chart synthesizing method is characterized in that:
and 3.2, filling the test pattern with the pseudo-same color pair split type, and drawing small circle geometric patterns which are not overlapped with each other by adopting a K-D tree data structure to form a split type test pattern unit.
6. The abnormal color vision test chart synthesizing method based on pseudo-same color search as defined in claim 2, wherein the abnormal color vision test chart synthesizing method is characterized in that:
in step 3.2, the test pattern is filled with the approximate color generalization of the pseudo-same color pair, and similar colors are randomly picked up according to Gaussian distribution in a sphere space with the pseudo-same color as a sphere center and the radius rho in an LAB color space to fill small geometric patterns generated each time, wherein rho is more than 0 and less than 32.
7. The abnormal color vision test chart synthesizing method based on pseudo-same color search as defined in claim 3, wherein the abnormal color vision test chart synthesizing method is characterized in that: step 1.1 taking a die of small step size
Figure FDA0004119757060000031
Wherein Δx, Δy, Δz are integers;
the test pattern is filled in a fine density checkered pattern in step 3.2.
8. An abnormal color vision test chart application device is characterized in that: the image generated by the false same color search based abnormal color vision test chart synthesis method according to any one of claims 1 to 7 can be used for a special color vision detection computer device, embedded software and hardware, paper printing device or internet application software system.
9. The abnormal color vision test chart application apparatus according to claim 8, wherein: the color vision detection computer device comprises various types of computers, mobile terminals, virtual Reality (VR) equipment such as Oculus, google glasses, iPad tablet computers, special displays and medical eye vision tester equipment, wherein the method for synthesizing the color vision test patterns is realized by using the off-line or on-line application of the development of the corresponding medical eye vision tester equipment in a software system, and the color vision test patterns are presented on a display screen by taking unit test patterns and grouping test patterns as use cases; the embedded software and hardware and paper printing device realizes a color vision test chart synthesis method by a corresponding programming language through a singlechip, various embedded systems of an FPGA and a development board, or synthesizes color vision test charts on other hardware platforms in advance, and then stores the color vision test charts in embedded equipment for display or printing; the Internet application software system develops and realizes the color vision test synthesis method in various programming languages such as Javascript and hypertext markup language, or presents a color vision test chart at a browser or APP end in a micro-service and off-line application mode and combines with an interactive design to implement color vision test.
CN202010342532.9A 2020-04-27 2020-04-27 A Synthetic Method of Abnormal Color Vision Test Chart Based on False Same Color Search Active CN111429547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010342532.9A CN111429547B (en) 2020-04-27 2020-04-27 A Synthetic Method of Abnormal Color Vision Test Chart Based on False Same Color Search

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010342532.9A CN111429547B (en) 2020-04-27 2020-04-27 A Synthetic Method of Abnormal Color Vision Test Chart Based on False Same Color Search

Publications (2)

Publication Number Publication Date
CN111429547A CN111429547A (en) 2020-07-17
CN111429547B true CN111429547B (en) 2023-05-30

Family

ID=71556963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010342532.9A Active CN111429547B (en) 2020-04-27 2020-04-27 A Synthetic Method of Abnormal Color Vision Test Chart Based on False Same Color Search

Country Status (1)

Country Link
CN (1) CN111429547B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408798B (en) * 2021-06-14 2022-03-29 华中师范大学 A color optimization method for barrier-free VR teaching resources for people with abnormal color vision
CN113362321B (en) * 2021-07-09 2024-03-08 云南大学 Monte Carlo algorithm-based stone original test board generation method and system
CN116385581A (en) * 2023-03-24 2023-07-04 长江大学 Online customizable color vision test chart generation and identification system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104825128A (en) * 2015-05-07 2015-08-12 京东方科技集团股份有限公司 Color blindness detection method and device
CN106414474A (en) * 2014-03-17 2017-02-15 阿德夫拉姆生物技术股份有限公司 Compositions and methods for enhanced gene expression in cone cells

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1157151C (en) * 2000-12-26 2004-07-14 陈言 Color vision detecting and correcting method and equipment and its application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106414474A (en) * 2014-03-17 2017-02-15 阿德夫拉姆生物技术股份有限公司 Compositions and methods for enhanced gene expression in cone cells
CN104825128A (en) * 2015-05-07 2015-08-12 京东方科技集团股份有限公司 Color blindness detection method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
俞如旺 ; 包磊 ; .计算机色觉检测系统的设计与实现.福建轻纺.2008,(10),全文. *
马瑞青 ; 廖宁放 ; 森敬三 ; .视觉实验前期色觉异常的检测和分类.光学学报.2016,(06),全文. *

Also Published As

Publication number Publication date
CN111429547A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN111429547B (en) A Synthetic Method of Abnormal Color Vision Test Chart Based on False Same Color Search
CN110197714B (en) Image analysis method and device and method for generating deep learning algorithm after learning
TWI543744B (en) Adaptive visual performance testing system
CN103815866B (en) Visual performance inspection method and visual performance inspection control device
JP2018520820A (en) Method and system for inspecting visual aspects
Moacdieh et al. The effects of data density, display organization, and stress on search performance: An eye tracking study of clutter
KR100387356B1 (en) Visual inspection method using screen
Serener et al. Geographic variation and ethnicity in diabetic retinopathy detection via deeplearning
CN109199334B (en) Tongue picture constitution identification method and device based on deep neural network
CN114372985A (en) Diabetic retinopathy focus segmentation method and system adapting to multi-center image
KR20230011012A (en) Child emotional, psychological, behavioral pre-checking and healing solution system using pictures, and child emotional, psychological, behavioral pre-checking and healing method using the same
CN204600423U (en) A kind of old sight evaluating system
RU2210972C1 (en) Device for carrying out screening vision function diagnosis
Prauzner et al. Cognitive activity in the respect of qeeg research-presentation of laboratory tests
CN110916991A (en) Personalized visual training method and training device
CN100466963C (en) Eyesight exam method and device
RU2730977C9 (en) Measuring human visual acuity
Geddes et al. Challenging and Improving Current Evaluation Methods for Colour Identification Aids
Cárdenas-Delgado et al. VR-test ViKi: VR test with visual and kinesthetic stimulation for assessment color vision deficiencies in adults
CN113625877A (en) Quantitative description method of force-tactile subjective perception results based on perceptual space analysis
Van Belle et al. Configural and featural processing during face perception: A new stimulus set
Pinhatti et al. Body image software programs: A comprehensive literature review
Roubalová Detecting Misleading Features in Data Visualization
JP7583893B1 (en) Method for measuring stress state based on tongue image, information processing device, and information processing program
JP2020126563A (en) Visibility evaluation device, visibility evaluation program, and visibility evaluation method

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
GR01 Patent grant
GR01 Patent grant