CN117036738A - Color difference value calculating method, storage medium and electronic equipment - Google Patents

Color difference value calculating method, storage medium and electronic equipment Download PDF

Info

Publication number
CN117036738A
CN117036738A CN202311064849.0A CN202311064849A CN117036738A CN 117036738 A CN117036738 A CN 117036738A CN 202311064849 A CN202311064849 A CN 202311064849A CN 117036738 A CN117036738 A CN 117036738A
Authority
CN
China
Prior art keywords
color difference
difference value
value
calculating
values
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
CN202311064849.0A
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.)
Hefei High Dimensional Data Technology Co ltd
Original Assignee
Hefei High Dimensional Data Technology Co ltd
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 Hefei High Dimensional Data Technology Co ltd filed Critical Hefei High Dimensional Data Technology Co ltd
Priority to CN202311064849.0A priority Critical patent/CN117036738A/en
Publication of CN117036738A publication Critical patent/CN117036738A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The invention particularly relates to a color difference value calculating method, a storage medium and electronic equipment, wherein the color difference value calculating method comprises the following steps of according to a pixel value a of two pixels to be calculated in Lab space 1 、b 1 And a 2 、b 2 Respectively calculating intermediate values C 1 、C 2 、∆C、H 1 After taking H, T, S _C, according to L 1 、L 2 Calculating the color difference value from the intermediate value and preset constants dl and dh, wherein dl and dh are in the value range of [1,10]Is set to a predetermined constant. The color difference value calculation method has good scene adaptation capability, and in view of the fact that parameters in a color difference calculation formula can be adjusted, under a certain fixed scene, a machine learning mode can be used for adaptively adjusting a color difference comparison result, so that dl and dh after adjustment can be well adapted to a current scene; when it is needed in other scenes, the values of dl and dh are adjusted in the same way so that the inventionThe method for calculating the chromatic aberration value in the light can be well adapted in different scenes.

Description

Color difference value calculating method, storage medium and electronic equipment
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a color difference value calculation method, a storage medium, and an electronic device.
Background
Color space, i.e. a mathematical model that uses two, three, four dimensional space coordinates to represent colors, with the differentiation of colors being represented by the distance between the space coordinates. In order to better match colors with eyes or cameras, color distance calculation is modified in different modes in different industries by using different technologies, various parameters are added, the process is called color difference calculation, the result of the color difference calculation is a color difference value, which is generally indicated by an E, the color difference value is used for representing the difference of colors, and the color difference value is generally used for evaluating the difference of colors and is widely applied to plastics, printing, paint ink, textile clothing and the like.
The conventional color difference calculation formulas comprise a CIE1976 color difference calculation formula, a CIE1994 color difference calculation formula and the like, the related color parameters of the conventional color difference calculation formulas are determined and cannot be regulated, the calculation accuracy is low, and the use is inconvenient. Taking a data transmission use scene as an example, when physically isolated data is transmitted, generally, the data is firstly converted into a two-dimensional bitmap, such as a two-dimensional code and a color bitmap, then displayed on a display, and then the two-dimensional bitmap is photographed by a photographing device and then decoded to obtain the data to be transmitted. In such a scenario, in order to increase the transmission rate of data, the smaller each color block in the bitmap, the more the color types, the greater the transmission rate. However, with the increase of color types and color differences caused by the display, the decoding accuracy of the captured two-dimensional bitmap is affected, and at this time, an adjustable color difference value calculation method with higher accuracy becomes important.
Disclosure of Invention
The invention aims to provide a color difference value calculation method, the color difference value calculation result is adjustable and the accuracy is high.
In order to achieve the above purpose, the invention adopts the following technical scheme: a color difference value calculating method calculates a color difference value father E according to the following formula:
wherein L is 1 、a 1 、b 1 And L 2 、a 2 、b 2 The values of dl and dh are the values of the two pixels to be calculated in Lab space and the values are 1,10]Is set to a predetermined constant.
Compared with the prior art, the invention has the following technical effects: the color difference value calculation method has good scene adaptation capability, and in view of the fact that parameters in a color difference calculation formula can be adjusted, under a certain fixed scene, a machine learning mode can be used for adaptively adjusting a color difference comparison result, so that dl and dh after adjustment can be well adapted to a current scene; when the method is required to be used in other scenes, the values of dl and dh are adjusted in the same way, so that the color difference value calculation method in the invention can be well adapted in different scenes.
Detailed Description
The present invention will be described in further detail with reference to the following embodiments.
The invention discloses a color difference value calculating method, which calculates a color difference value father E according to the following formula:
wherein L is 1 、a 1 、b 1 And L 2 、a 2 、b 2 The values of dl and dh are the values of the two pixels to be calculated in Lab space and the values are 1,10]Is set to a predetermined constant.
The color difference value calculation method has good scene adaptation capability, and in view of the fact that parameters in a color difference calculation formula can be adjusted, under a certain fixed scene, a machine learning mode can be used for adaptively adjusting a color difference comparison result, so that dl and dh after adjustment can be well adapted to a current scene; when the method is required to be used in other scenes, the values of dl and dh are adjusted in the same way, so that the color difference value calculation method in the invention can be well adapted in different scenes.
Taking a scene of data ferry as an example, in the scene, a data stream needs to be encoded into an image, the image is displayed by using a display device, then the image is shot by using a shooting device, and finally the image is decoded. There are some deviations from the standard color chart colors that may make the color comparison between the encoded image and the final captured image incorrect for the display panels and the photosensitive devices of the cameras that are actually produced industrially. The traditional color difference value calculation formulas are fixed and not adjustable. The color difference value calculation formula in the invention is adjustable, so that a proper dl and dh values can be selected by a machine learning method for a certain display panel or a certain type of photosensitive equipment, thereby more accurately correcting color distortion generated by the step of displaying and photosensitive equipment of a fixed type, and ensuring that more correct optical information transmission can be obtained by conversion of different display-photosensitive equipment.
The invention also discloses a computer readable storage medium and an electronic device. Wherein a computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements a color difference value calculation method as described above. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor implementing a color difference value calculation method as described above when executing the computer program.

Claims (3)

1. A color difference value calculating method is characterized in that: the color difference value E is calculated as follows:
wherein L is 1 、a 1 、b 1 And L 2 、a 2 、b 2 The values of dl and dh are the values of the two pixels to be calculated in Lab space and the values are 1,10]Is set to a predetermined constant.
2. A computer-readable storage medium, characterized by: a computer program stored thereon, which, when being executed by a processor, implements the color difference value calculation method as claimed in claim 1.
3. An electronic device, characterized in that: comprising a memory, a processor and a computer program stored on the memory, which processor, when executing the computer program, implements the color difference value calculation method as claimed in claim 1.
CN202311064849.0A 2023-08-23 2023-08-23 Color difference value calculating method, storage medium and electronic equipment Pending CN117036738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311064849.0A CN117036738A (en) 2023-08-23 2023-08-23 Color difference value calculating method, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311064849.0A CN117036738A (en) 2023-08-23 2023-08-23 Color difference value calculating method, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117036738A true CN117036738A (en) 2023-11-10

Family

ID=88602210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311064849.0A Pending CN117036738A (en) 2023-08-23 2023-08-23 Color difference value calculating method, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117036738A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560402A (en) * 2024-01-12 2024-02-13 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560402A (en) * 2024-01-12 2024-02-13 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange
CN117560402B (en) * 2024-01-12 2024-04-19 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange

Similar Documents

Publication Publication Date Title
CN107767354B (en) Image defogging algorithm based on dark channel prior
CN100563303C (en) Image processing equipment, image capture device and image processing method
CN105141841B (en) Picture pick-up device and its method
CN117036738A (en) Color difference value calculating method, storage medium and electronic equipment
CN114693760A (en) Image correction method, device and system and electronic equipment
CN111491149B (en) Real-time image matting method, device, equipment and storage medium based on high-definition video
CN116310420A (en) Image similarity measurement method and device based on neighborhood difference
CN108111760B (en) A kind of electronic image stabilization method and system
CN109544467A (en) A method of based on enhancing color image contrast under LAB model
TW202209175A (en) Image correction method and system based on deep learning
CN116957948A (en) Image processing method, electronic product and storage medium
CN110782400A (en) Self-adaptive uniform illumination realization method and device
CN111402354B (en) Color contrast enhancement drawing method, device and system suitable for optical transmission type head-mounted display
CN112200755A (en) Image defogging method
CN110458754B (en) Image generation method and terminal equipment
CN114529460A (en) Low-illumination-scene intelligent highway monitoring rapid defogging method and device and electronic equipment
CN105163004A (en) Video compensation method for eliminating mismatching points
CN114331826A (en) Fisheye image rapid correction method based on distortion tension factor
CN110516667B (en) Character horizontal correction method based on android
CN112464727A (en) Self-adaptive face recognition method based on light field camera
CN104954767B (en) A kind of information processing method and electronic equipment
CN112348904A (en) Underwater image and underwater video color restoration method and device
CN112669337A (en) Self-iterative local green curtain image matting method
CN113709438A (en) Image white balance correction method and device, storage medium and equipment
CN115984137B (en) Dim light image recovery method, system, equipment and storage medium

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