CN112396570B - Camouflage design method - Google Patents

Camouflage design method Download PDF

Info

Publication number
CN112396570B
CN112396570B CN202011407069.8A CN202011407069A CN112396570B CN 112396570 B CN112396570 B CN 112396570B CN 202011407069 A CN202011407069 A CN 202011407069A CN 112396570 B CN112396570 B CN 112396570B
Authority
CN
China
Prior art keywords
color
standard
camouflage
target area
brightness
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
CN202011407069.8A
Other languages
Chinese (zh)
Other versions
CN112396570A (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.)
China Nuclear Power Engineering Co Ltd
Original Assignee
China Nuclear Power Engineering 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 China Nuclear Power Engineering Co Ltd filed Critical China Nuclear Power Engineering Co Ltd
Priority to CN202011407069.8A priority Critical patent/CN112396570B/en
Publication of CN112396570A publication Critical patent/CN112396570A/en
Application granted granted Critical
Publication of CN112396570B publication Critical patent/CN112396570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • 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/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20104Interactive definition of region of interest [ROI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses camouflageThe design method comprises the steps of obtaining a scene picture of a region to be camouflaged; selecting a target area from the picture, and obtaining a brightness contrast value of the picture before camouflage according to brightness values of the target area and a background areaThe method comprises the steps of carrying out a first treatment on the surface of the Comparing the color in the target area with the standard color on the standard color board; classifying different colors in the target area into standard colors with the minimum difference value with the standard color plate respectively; the colors of the target area are replaced by five standard colors with the largest classified color numbers, and a camouflage picture is obtained; calculating the brightness contrast value of the camouflage picture according to the brightness values of the camouflage target area and the background area; comparing brightness contrast values of camouflage front picturesContrast value with brightness of camouflage picture>And if not, the number of standard colors in the standard color plate is increased, and the standard color plate is continuously compared with the standard colors, so that the method has the characteristics of less calculated amount, simple steps and cost saving.

Description

Camouflage design method
Technical Field
The invention belongs to the technical field of camouflage, and particularly relates to a camouflage design method.
Background
The development of camouflage technology is continuously evolved along with the progress of military technology, high-precision reconnaissance equipment and more accurate automatic target recognition and autonomous attack capability are continuously improved, higher requirements are provided for camouflage quality and camouflage efficiency of military targets, a feasible camouflage design method can enable the surface of the equipment to be well fused with a background and camouflage to be effectively implemented, the background of military target activities is various, each background surface visually presents unique characteristic state characteristics, therefore, how to generate a camouflage image with characteristics consistent with the background and quickly generate the camouflage image when the background changes becomes a challenging problem, in the existing camouflage design, when brightness contrast calculation is carried out, a plurality of points are required to be extracted, the brightness coefficient of each spectrum is measured by a spectrometer, the brightness contrast is calculated according to the brightness coefficient, and the problems of complex steps and high cost are caused.
Disclosure of Invention
In order to solve the technical problems, the invention provides a camouflage design method.
A camouflage design method, characterized in that: comprises the following steps of the method,
s1): acquiring a scene picture of an area to be camouflaged;
s2): selecting a target area from the picture, wherein the other areas are background areas, respectively calculating brightness values of the target area and the background area, and calculating a brightness contrast value K of the picture before camouflage according to the brightness values of the target area and the background area 1
S3): selecting a standard color board, wherein the selected standard color board comprises at least five standard colors, and comparing colors in a target area with the standard colors on the standard color board one by one in a color difference way;
s4): classifying different colors in the target area into standard colors with the minimum difference value with the standard color plate respectively;
s5): counting the number of the colors classified in each standard color in the standard color board, and selecting the standard color with the largest number of the classified colors and not less than five standard colors in the standard color board;
s6) carrying out corresponding replacement on the colors in the target area by using the standard colors with the maximum number and not less than five to obtain camouflage pictures;
s7): calculating brightness values of the camouflage target area and the background area, and calculating brightness contrast value K of the camouflage picture according to the brightness values of the camouflage target area and the background area 2
S8): comparing brightness contrast value K of camouflage front picture 1 Contrast value K with brightness of camouflage picture 2 If K is the size of 1 >αK 2 If not, increasing the number of standard colors in the standard color plate, and turning to the step S3); where α is a constant of ten or more.
And S1) obtaining a camouflage area scene picture as a picture shot by a camera or a satellite.
The method for selecting the target region in S2) is an ROI extraction method.
S2) calculating the contrast value K of the brightness before camouflage 1 The method of (2) is as follows:
p1): sequentially converting the target area and the background area pictures into an XYZ color space;
p2): calculating the brightness value Y of each pixel of the target area, and calculating the arithmetic average value Y of the brightness values of the pixels in the target area according to the brightness value Y of the pixels 0 The method comprises the steps of carrying out a first treatment on the surface of the Calculating the brightness value Y of each pixel in the background area According to the pixel brightness value Y Calculating an arithmetic mean Y of pixel luminance values in a background region b
P3): according to arithmetic mean Y of pixel brightness values in target area 0 Arithmetic mean value Y of pixel brightness values in background region b Sum formulaCalculating brightness contrast value of camouflage front pictureK 1
The color difference comparison method in S3) is as follows:
q1): converting the standard colors on the standard color plate from an RGB color space to an XYZ color space, converting the XYZ color space to an LAB color space, converting the target area from a picture to the XYZ color space, and converting the XYZ color space to the LAB color space;
q2): calculating a color difference value between the color in the target area and each standard color according to a total color difference formula, wherein the total color difference formula is as follows:
wherein dl is the difference in brightness between the color in the target area and the standard color;
dA is the red-green color difference between the color in the target area and the standard color;
dB is blue Huang Secha between the color in the target area and the standard color.
The invention discloses a camouflage design method, which adopts the brightness values of a target area and a background area to calculate the brightness contrast, classifies the colors in the target area according to a standard color plate, replaces the colors in the target area with the standard colors to realize camouflage design, and has the characteristics of less calculation amount, simple steps and cost saving.
Drawings
Fig. 1 is a flow chart of a camouflage design method.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. It will be apparent to those skilled in the art that the described embodiments are only a part, but not all, of the implementations of the invention, and that all other embodiments, based on which those skilled in the art will come to lie within the scope of the invention without making any inventive effort.
According to the method, a scene picture of a region to be camouflaged is obtained from a camera or a satellite photo, a target region is extracted from the scene picture, the scene picture is divided into the target region and a background region, the pictures of the target region and the target region are converted into an XYZ color space, the arithmetic average value of the brightness values of pixels in the target region and the arithmetic average value of the brightness values of pixels in the background region are calculated in the XYZ color space respectively, the brightness contrast value of the target region and the brightness contrast value of the background region in the camouflage scene picture are calculated according to a formula, then a standard color plate is adopted, colors in the target region are classified according to the standard color plate, the colors of the target region are replaced by the standard colors with more colors in the standard colors, the brightness contrast value of the target region and the background region after replacement is calculated, and whether the brightness contrast value before camouflage of the scene picture is far greater than the brightness contrast value of the scene picture after camouflage is calculated is judged, if the brightness contrast value before camouflage is greater than the brightness contrast value of the target region, camouflage is successful, otherwise, different numbers of standard colors are required to be selected again, and the color of the target region is reclassified.
A camouflage design method, in particular to a camouflage design process, comprises the following steps,
s1): acquiring a scene picture of an area to be camouflaged; the scene picture is obtained by shooting with a camera or shooting with a satellite picture; the pictures taken by the camera or satellite picture are typically RGB color space or SRGB color space;
the RGB color space is based on three basic colors of red, green and blue, and is overlapped to generate rich and wide colors, so that the three basic colors are commonly called as a three-primary color mode, the red, green and blue represent three basic colors or three primary colors in a visible light spectrum, each color is divided into 256 grades according to different brightness, the RGB color space is formed by using a cube with a unit length to represent the colors, eight common colors of black, blue, green, red, purple, yellow and white are respectively located at eight vertexes of the cube, black is generally placed at an origin of a three-dimensional rectangular coordinate system, red, green and blue are respectively placed at three coordinate axes, and the whole cube is placed in a first diagram limit.
The SRGB color space is a standard RGB color space developed by hewlett-packard and microsoft in 1996 for displays, printers and the internet, and is a color difference space recommended for use on networks.
S2): selecting a target area from the picture, wherein the other areas are background areas, respectively calculating brightness values of the target area and the background area, and calculating a brightness contrast value K of the picture before camouflage according to the brightness values of the target area and the background area 1
The method for selecting the target region is an ROI extraction method, the ROI is an image region of interest extraction technology, and the ROI extraction algorithm comprises picture binarization, edge extraction and image contour of the target region obtaining. The prior art has disclosed an ROI extraction algorithm, the application date is 2017, 1 month and 18 days, patent number is 2017100347504, and the patent name is a method for extracting a palm print region of interest of a mobile terminal based on a complex scene. The method of extracting the target region from the ROI employed in the present embodiment is the same as that in the patent.
S2) calculating the contrast value K of the brightness before camouflage 1 The method of (2) is as follows:
p1): sequentially converting the target area and the background area pictures into an XYZ color space;
the XYZ color space is a chromaticity system established by using three imaginary primary colors X, Y, Z on the basis of an RGB system, and can be matched with tristimulus values of an iso-energy spectrum, wherein the tristimulus values are representations of stimulus measures of three primary colors causing a human body to feel a certain color to the retina, and the tristimulus values of the XYZ color space are data which are linear with the brightness of the nature, wherein Y represents brightness or brightness.
The pictures of the target region and the background region are typically RGB color space or SRGB color space;
the conversion matrix of RGB color space to XYZ color space is:
wherein y=0.29734 r+0.62706 g+0.07529b;
the conversion matrix of SRGB color space to XYZ color space is:
wherein y=0.2126R linear +0.7152G linear +0.0722B linear
After the XYZ color space is obtained according to the conversion matrix, the Y value of each pixel can be obtained, and the average brightness value can be calculated for the brightness of the pixels in the target area and the background area in the picture respectively. In this embodiment, the color space of the scene picture is preferably an RGB color space.
P2): calculating the brightness value Y of each pixel of the target area, and calculating the arithmetic average value Y of the brightness values of the pixels in the target area according to the brightness value Y of the pixels 0 The method comprises the steps of carrying out a first treatment on the surface of the Calculating the brightness value Y of each pixel in the background area According to the pixel brightness value Y Calculating an arithmetic mean Y of pixel luminance values in a background region b
P3): according to arithmetic mean Y of pixel brightness values in target area 0 Arithmetic mean value Y of pixel brightness values in background region b Sum formulaCalculating brightness contrast value K of camouflage front picture 1
S3): selecting a standard color board, wherein the selected standard color board comprises at least five standard colors, and comparing colors in a target area with the standard colors on the standard color board one by one in a color difference way;
in this embodiment, the standard color board selects a standard color for a camouflage net, where the standard color for the camouflage net includes thirty standard colors, and the thirty color standards conform to color standards for the camouflage net specified by GJBs 1082-91.
The color difference comparison method comprises the following steps:
q1): converting the standard colors on the standard color plate from an RGB color space to an XYZ color space, converting the XYZ color space to an LAB color space, converting the target region picture to the XYZ color space, and converting the XYZ color space to the LAB color space;
the LAB color space is a color-opponent space with dimension L representing luminance, a and B representing color channels, a comprising colors from dark green to gray to bright pink, B from bright blue to gray to yellow, the LAB color space being designed to approximate human vision with perceived uniformity, the L component in the LAB color space closely matching human luminance perception and thus can be used to make accurate color balance by modifying the output tone of the a and B components in the LAB color space, or to adjust luminance contrast using the L component.
In this embodiment, the picture colors are preferably RGB color spaces, and therefore, it is first necessary to convert both the standard color and the target area picture with RGB color spaces into XYZ color spaces.
The conversion formula from the XYZ color to LAB color space is:
wherein,
t>0.00885;
f(t)=7.787t+0.13793,t≤0.00885;
X n =95.017,Y n =100,Z n =100.813,
q2): calculating a color difference value between the color in the target area and each standard color according to a total color difference formula, wherein the total color difference formula is as follows:
wherein dl is the difference in brightness between the color in the target area and the standard color;
dA is the red-green color difference between the color in the target area and the standard color;
dB is blue Huang Secha between the color in the target area and the standard color.
S4): classifying different colors in the target area into standard colors with the minimum difference value with the standard color plate respectively;
s5): counting the number of the colors classified in each standard color in the standard color plate, and selecting five standard colors with the largest number of the classified colors in the standard color plate;
s6) replacing the colors of the target area with at least five standard colors with the largest classified color numbers to obtain camouflage pictures;
s7): calculating brightness values of the camouflage target area and the background area, and calculating brightness contrast value K of the camouflage picture according to the brightness values of the camouflage target area and the background area 2
S8): comparing brightness contrast value K of camouflage front picture 1 Contrast value K with brightness of camouflage picture 2 If K is the size of 1 >αK 2 If not, increasing the number of standard colors in the standard color plate, and turning to the step S3); where α is a constant of ten or more.
The technical means disclosed by the scheme of the invention is not limited to the technical means disclosed by the embodiment, and also comprises the technical scheme formed by any combination of the technical features. It should be noted that modifications and adaptations to the invention may occur to one skilled in the art without departing from the principles of the present invention and are intended to be within the scope of the present invention.

Claims (4)

1. A camouflage design method, characterized in that: comprises the following steps of the method,
s1): acquiring a scene picture of an area to be camouflaged;
s2): selecting a target area from the picture, wherein the other areas are background areas, respectively calculating brightness values of the target area and the background area, and calculating a brightness contrast value K of the picture before camouflage according to the brightness values of the target area and the background area 1
S3): selecting a standard color board, wherein the selected standard color board comprises at least five standard colors, and comparing colors in a target area with the standard colors on the standard color board one by one in a color difference way;
s4): classifying different colors in the target area into standard colors with the minimum difference value with the standard color plate respectively;
s5): counting the number of the colors classified in each standard color in the standard color board, and selecting the standard color with the largest number of the classified colors and not less than five standard colors in the standard color board;
s6) carrying out corresponding replacement on the colors in the target area by using the standard colors with the maximum number and not less than five to obtain camouflage pictures;
s7): calculating brightness values of the camouflage target area and the background area, and calculating brightness contrast value K of the camouflage picture according to the brightness values of the camouflage target area and the background area 2
S8): comparing brightness contrast value K of camouflage front picture 1 Contrast value K with brightness of camouflage picture 2 If K is the size of 1 >αK 2 If not, increasing the number of standard colors in the standard color plate, and turning to the step S3); wherein α is a constant of ten or more;
s2) calculating the contrast value K of the brightness before camouflage 1 The method of (2) is as follows:
p1): sequentially converting the target area and the background area pictures into an XYZ color space;
p2): meter with a meter bodyCalculating the brightness value Y of each pixel of the target area, and calculating the arithmetic average value Y of the brightness values of the pixels in the target area according to the brightness value Y of the pixels 0 The method comprises the steps of carrying out a first treatment on the surface of the Calculating the brightness value Y of each pixel in the background area According to the pixel brightness value Y Calculating an arithmetic mean Y of pixel luminance values in a background region b
P3): according to arithmetic mean Y of pixel brightness values in target area 0 Arithmetic mean value Y of pixel brightness values in background region b Sum formulaCalculating brightness contrast value K of camouflage front picture 1
2. The camouflage design method of claim 1, wherein: and S1) obtaining a camouflage area scene picture as a picture shot by a camera or a satellite.
3. The camouflage design method of claim 1, wherein: the method for selecting the target region in S2) is an ROI extraction method.
4. The camouflage design method of claim 1, wherein: the color difference comparison method in S3) is as follows:
q1): converting the standard colors on the standard color plate from an RGB color space to an XYZ color space, converting the XYZ color space to an LAB color space, converting the target area from a picture to the XYZ color space, and converting the XYZ color space to the LAB color space;
q2): calculating a color difference value between the color in the target area and each standard color according to a total color difference formula, wherein the total color difference formula is as follows:
wherein dl is the difference in brightness between the color in the target area and the standard color;
dA is the red-green color difference between the color in the target area and the standard color;
dB is blue Huang Secha between the color in the target area and the standard color.
CN202011407069.8A 2020-12-04 2020-12-04 Camouflage design method Active CN112396570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011407069.8A CN112396570B (en) 2020-12-04 2020-12-04 Camouflage design method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011407069.8A CN112396570B (en) 2020-12-04 2020-12-04 Camouflage design method

Publications (2)

Publication Number Publication Date
CN112396570A CN112396570A (en) 2021-02-23
CN112396570B true CN112396570B (en) 2024-02-20

Family

ID=74604362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011407069.8A Active CN112396570B (en) 2020-12-04 2020-12-04 Camouflage design method

Country Status (1)

Country Link
CN (1) CN112396570B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1685107A (en) * 2002-07-25 2005-10-19 美利肯工业有限公司 Gaming cloth and method of printing gaming cloth
CN104318570A (en) * 2014-10-29 2015-01-28 沈阳建筑大学 Self-adaptation camouflage design method based on background
TW201725537A (en) * 2016-01-08 2017-07-16 亞東技術學院 Method and system for detecting pretended image
CN110120080A (en) * 2019-04-12 2019-08-13 青岛九维华盾科技研究院有限公司 A method of quickly generating standard pattern-painting mass-tone
CN111798539A (en) * 2020-01-10 2020-10-20 中国人民解放军国防科技大学 Adaptive camouflage online design method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090220151A1 (en) * 2008-02-29 2009-09-03 Himax Technologies Limited Device for adjusting image color difference value and adjusting method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1685107A (en) * 2002-07-25 2005-10-19 美利肯工业有限公司 Gaming cloth and method of printing gaming cloth
CN104318570A (en) * 2014-10-29 2015-01-28 沈阳建筑大学 Self-adaptation camouflage design method based on background
TW201725537A (en) * 2016-01-08 2017-07-16 亞東技術學院 Method and system for detecting pretended image
CN110120080A (en) * 2019-04-12 2019-08-13 青岛九维华盾科技研究院有限公司 A method of quickly generating standard pattern-painting mass-tone
CN111798539A (en) * 2020-01-10 2020-10-20 中国人民解放军国防科技大学 Adaptive camouflage online design method and system

Also Published As

Publication number Publication date
CN112396570A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
Liu et al. CID: IQ–a new image quality database
CN103402117B (en) Based on the video image color cast detection method of Lab chrominance space
CN111292246B (en) Image color correction method, storage medium, and endoscope
US20090060326A1 (en) Image processing apparatus and method
EP1819143A1 (en) Color adjusting device and method
Jang et al. Adaptive color enhancement based on multi-scaled Retinex using local contrast of the input image
CN103854261A (en) Method for correcting color cast images
Ortiz-Jaramillo et al. Evaluating color difference measures in images
US11544825B2 (en) Image processing apparatus, image processing system, and image processing method
Xie et al. G0 revisited as equally bright reference boundary
CN111107330A (en) Color cast correction method for Lab space
WO2022120799A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN112396570B (en) Camouflage design method
TWI364213B (en)
US20040057060A1 (en) Method for fast color saturation control
EP2672719A2 (en) Color calibration of a image capture device in a way that is adaptive to the scene to be captured
Jadhav et al. Performance evaluation of structural similarity index metric in different colorspaces for HVS based assessment of quality of colour images
CN108053452B (en) Digital image color extraction method based on mixed model
US20090169103A1 (en) Method of correcting false-color pixel in digital image
CN113947539A (en) Image correction method, device and storage medium
JP2003304554A (en) Color signal processing device capable of storing color gamut efficiently and method using the same
US20240107180A1 (en) Systems and methods for image correction
JP2001078235A (en) Method and system for image evaluation
EP2209298A1 (en) Method for adjusting white balance
CN113873210B (en) Color restoration authenticity precision detection 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