CN106296751A - The color processing method that a kind of view-based access control model is experienced - Google Patents

The color processing method that a kind of view-based access control model is experienced Download PDF

Info

Publication number
CN106296751A
CN106296751A CN201610677181.0A CN201610677181A CN106296751A CN 106296751 A CN106296751 A CN 106296751A CN 201610677181 A CN201610677181 A CN 201610677181A CN 106296751 A CN106296751 A CN 106296751A
Authority
CN
China
Prior art keywords
max
hsw
hns
hls
hms
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
CN201610677181.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.)
China Petroleum and Chemical Corp
Exploration and Development Research Institute of Sinopec Henan Oilfield Branch Co
Original Assignee
China Petroleum and Chemical Corp
Exploration and Development Research Institute of Sinopec Henan Oilfield Branch Co
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 Petroleum and Chemical Corp, Exploration and Development Research Institute of Sinopec Henan Oilfield Branch Co filed Critical China Petroleum and Chemical Corp
Priority to CN201610677181.0A priority Critical patent/CN106296751A/en
Publication of CN106296751A publication Critical patent/CN106296751A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The present invention relates to the color processing method that a kind of view-based access control model is experienced, thus method sets up HSW model, and proposes conversion method.It is different from the colour models such as common HSL, HSV, HSB, HSI, HSW definition brightness W=(RL+GM+BN)/D/ (L+M+N);Colourity S=(Max Min)/D;Wherein, R, G, B are rgb format data;Max is maximum in R, G, B;Min is minima in R, G, B;L, M, N are coefficient, can determine by physical condition experiment;D is R, G, B span maximum.Understanding based on experiment effect, the color processing method of the present invention significantly improves form and aspect, colourity, luminance parameter and the matching degree of visual experience, has bigger value in image procossing.

Description

The color processing method that a kind of view-based access control model is experienced
Technical field
The invention belongs to Computer Image Processing field, the color processing method that a kind of view-based access control model is experienced.
Background technology
Color is the eyes impression for the light of different frequency of people, and color is objectively, is again subjective perception, It is recognized difference.In other words, color is that the eyes of people are for different frequency, the impression of the light of varying strength.
The visual experience attribute of color common are form and aspect, colourity, brightness etc..Its definition has multiple, and intension is roughly the same.
Form and aspect are also referred to as tone, are the basic features distinguishing various different colors.Any black, white, grey beyond color have The attribute of form and aspect.
Colourity is also referred to as color saturation, purity, is the purity of color, and purity is the highest, shows the distinctest, and purity is relatively low, table The dulllest.
Brightness is also referred to as lightness, refers to depth degree in color, bright-dark degree.White brightness is the highest, and black brightness is minimum.Pure color In, yellow brightness is the highest, blue brightness is minimum.
The description method of color can use various colour model.Colour model also color call model, color space, color Space, is the abstract mathematical model using one group of numerical value to describe the method representing color.Common colour model has multiple, as RGB, HSV, HSL, HSB, HSI, CMYK, YUV, Lab, Ycc, XYZ etc..
RGB is the most frequently used colour model.It is various that rgb color model mixes generation in varing proportions with 3 kinds of end member primary colours Color.Computer raster graphic display device uses this model.R, G, B span is different, typically according to resolution difference R, G, B span is 0~255.The colour models such as HSL, HSV, HSB, HSI are substantially all and describe color with form and aspect, colourity, brightness Color.
Computer picture initial data is generally rgb format data, when carrying out the image procossing about visual experience, past Toward needing to be converted to RGB data form and aspect, colourity, brightness data.But, the colour model such as HSL, HSV, HSB, HSI have with Lower two features, or one of them, do not meet the visual experience of people.
Such as: existing brightness calculation method, it may appear that the brightness of different pure colors identical etc. phenomenon, and similar existing As.In visual experience, the brightness of different pure colors differs.As, the brightness of pure blue is less than true yellow, pure green.
For another example: existing chrominance distortion method, it may appear that with the phenomenon that form and aspect pure color is identical with the colourity of ninsolid color, and Similar phenomenon.In visual experience, containing the color of white content, its colourity can not be equal to pure color.Such as, very dark dark red The colourity of color RGB (9,0,0) is less than pure red RGB (255,0,0).
Summary of the invention
It is an object of the invention to provide the color processing method that a kind of view-based access control model is experienced, in order to solve existing colour model Brightness and colourity process the problem big with the visual experience difference of people.
For achieving the above object, the solution of the present invention includes:
The color processing method that a kind of view-based access control model is experienced, step is as follows: obtain the digital picture of rgb format;To RGB lattice Formula data process: brightness W=(RL+GM+BN)/D/ (L+M+N);Colourity S=(Max-Min)/D;Wherein, R, G, B are RGB Formatted data;Max is maximum in R, G, B;Min is minima in R, G, B;L, M, N are coefficient;D be R, G, B span Big value.
Further, the calculation of form and aspect H is: if R is maximum, then H=0+ (G-B)/(Max-Min);If G is Greatly, then H=2+ (B-R)/(Max-Min);If B is maximum, then H=4+ (R-G)/(Max-Min);Then H is expanded 60 times, and And judge that current H-number, whether less than zero, if being less than zero, being added 360 and obtaining new H-number by H.
Further, the process processed rgb format data is:
If R=Max Then H=0+ (G-B)/(Max-Min)
If G=Max Then H=2+ (B-R)/(Max-Min)
If B=Max Then H=4+ (R-G)/(Max-Min)
H=60H
If H < 0Then H=H+360
S=(Max-Min)/D
W=(RL+GM+BN)/D/ (L+M+N)
Thus obtain HSW formatted data;
HSW formatted data is treated journey is:
W=W (L+M+N)
H=H/60
IF 0≤H < 1
R=(-HMS+MS+NS+W)
G=(HLS+HNS-LS+W)
B=(-HMS-LS+W)
IF 1≤H < 2
R=(-HMS-HNS+2MS-MS+2NS+W)
G=(HLS-2LS+LS+NS+W)
B=(HLS-2LS-MS+W)
IF 2≤H < 3
R=(-HNS-MS+2NS+W)
G=(-HNS+LS+2NS+NS+W)
B=(HLS+HMS-2LS-2MS-MS+W) IF 3≤H < 4
R=(HMS-4MS-NS+W)
G=(-HLS-HNS+4LS+4NS-NS+W) B=(HMS+LS-4MS+MS+W)
IF 4≤H < 5
R=(HMS+HNS-4MS-4NS-NS+W)
G=(-HLS+4LS-NS+W)
B=(-HLS+4LS+LS+MS+W)
IF 5≤H < 6
R=(HNS+MS-6NS+NS+W)
G=(HNS-LS-6NS+W)
B=(-HLS-HMS+6LS-LS+6MS+W)
R=RD/ (L+M+N)
G=GD/ (L+M+N)
B=BD/ (L+M+N)
Thus obtain rgb format data.
Further, described coefficient L, M, N take 38.4,76.8,12.8 respectively.
Understanding based on experiment effect, the color processing method of the present invention significantly improves form and aspect, colourity, luminance parameter and regards The matching degree that feel is experienced, has bigger value in image procossing.
Accompanying drawing explanation
Fig. 1 is HSW isochrome phase sectional drawing;
Fig. 2 is the colourity sectional drawings such as HSW;
Fig. 3 is the brightness sectional drawings such as HSW;
Fig. 4 is HSL and HSW brightness transition design sketch;
Fig. 5 is the brightness extracted region figure more than 50% in Fig. 4 sample graph;
Fig. 6 is HSL and HSW chroma conversion design sketch;
Fig. 7 is HSL and HSW brightness transition figure;
Fig. 8 is HSL and HSW chroma conversion figure.
Detailed description of the invention
The present invention will be further described in detail below in conjunction with the accompanying drawings.
The present invention gives a kind of new colour model, is defined as HSW model, with colors such as HSL, HSV, HSB, HSI Model is similar, and HSW colour model does certain conversion RGB data, make the data after conversion closer to visual experience form and aspect, Colourity, brightness.
Obtaining after computer rgb format data, RGB data processed that to obtain the function of HSW model as follows:
Function RGBtoHSW
If R=Max Then H=0+ (G-B)/(Max-Min)
If G=Max Then H=2+ (B-R)/(Max-Min)
If B=Max Then H=4+ (R-G)/(Max-Min)
H=60H
If H < 0Then H=H+360
S=(Max-Min)/D
W=(RL+GM+BN)/D/ (L+M+N)
END RGBtoHSW
Accordingly, HSW model is as follows to RGB conversion:
Function HSWtoRGB
W=W (L+M+N)
H=H/60
IF 0≤H < 1
R=(-HMS+MS+NS+W)
G=(HLS+HNS-LS+W)
B=(-HMS-LS+W)
IF 1≤H < 2
R=(-HMS-HNS+2MS-MS+2NS+W)
G=(HLS-2LS+LS+NS+W)
B=(HLS-2LS-MS+W)
IF 2≤H < 3
R=(-HNS-MS+2NS+W)
G=(-HNS+LS+2NS+NS+W)
B=(HLS+HMS-2LS-2MS-MS+W)
IF 3≤H < 4
R=(HMS-4MS-NS+W)
G=(-HLS-HNS+4LS+4NS-NS+W)
B=(HMS+LS-4MS+MS+W)
IF 4≤H < 5
R=(HMS+HNS-4MS-4NS-NS+W)
G=(-HLS+4LS-NS+W)
B=(-HLS+4LS+LS+MS+W)
IF 5≤H < 6
R=(HNS+MS-6NS+NS+W)
G=(HNS-LS-6NS+W)
B=(-HLS-HMS+6LS-LS+6MS+W)
R=RD/ (L+M+N)
G=GD/ (L+M+N)
B=BD/ (L+M+N)
END HSWtoRGB
Wherein, R, G, B are rgb format data;H, S, W are HSW color description method form and aspect H, colourity S, brightness W;Max is Maximum in R, G, B;Min is minima in R, G, B;L, M, N are coefficient.D is R, G, B span maximum, typically takes 255, can adjust according to practical situation;H, S, W span is 0≤H < 360,0≤S≤1,0≤W≤1.
The present invention processes the mode of brightness: W=(RL+GM+BN)/D/ (L+M+N), and the mode processing colourity is S= (Max-Min)/D。
About form and aspect H, its processing mode is identical with existing colour model, is not belonging to the improvement part of the present invention, therefore no longer Explain.
Through several people, hundreds of pictures sample colourity, brightness evaluation experiment, sum up draw L, M, N take 38.4 respectively, 76.8, 12.8 is the selection scheme of a kind of optimization.When specifically applying, it is possible to adjust by physical condition experiment.
HSW colour model does not haves the phenomenon that the brightness of different pure colors is identical, and similar phenomenon;Do not have yet With the phenomenon that form and aspect pure color is identical with the colourity of ninsolid color, and similar phenomenon.Thus solve the existence of existing colour model and ask Topic so that color more meets the visual experience of people.
The effect of the experimental verification such scheme for being given from various different aspects below.
Fig. 1 is HSW isochrome phase sectional drawing.In figure, 6 sub-figure form and aspect H take 0,60,120,180,240,300 respectively.Each The subgraph longitudinal axis is brightness W, and transverse axis is colourity S.On the right side of triangle, summit height is different, and embodying pure color has different brightness, with HSV Different Deng colour model.Meeting the visual experience of people, in pure color, yellow brightness is the highest, blue brightness is minimum.
Fig. 2 is the colourity sectional drawings such as HSW.In figure 6 sub-figure colourity S take 0.00 respectively, 0.20,0.40,0.60,0.80, 0.96.Each subgraph longitudinal axis is brightness W, and transverse axis is form and aspect H.It will be seen that the brightness not occurred in the colour models such as HSV Very dark or incandescent still has very high chroma etc. departing from the phenomenon of visual experience.
Fig. 3 is the brightness sectional drawings such as HSW.In figure 6 subgraph brightness W take 0.5 respectively, 0.20,0.40,0.60,0.80, 0.95.Circumference is form and aspect H, and radius is colourity S.It will be seen that the pure color not occurred in the colour models such as HSV has with white Same brightness etc. are departing from the similar phenomenon of visual experience.
Fig. 4 is HSL and HSW brightness transition design sketch.In figure, left samples figure is a volcanic rocks thin slice polarized light microscopy Mirror photo, rear two figures are respectively HSL, HSW luminance graph of sample graph conversion.It is apparent that HSW luminance graph can more preferable body Existing artwork visual brightness feature.As, the luminance level relation at labelling a, b, c, can not show in HSL luminance graph, bright at HSW In degree figure, then ratio is more visible.
Fig. 5 is the brightness extracted region figure more than 50% in Fig. 4 sample graph.Sample graph is extracted respectively with HSL, HSW brightness The middle brightness region more than 50%, represents with white.It is apparent that the two difference is the biggest.This is by after to image procossing Continuous work produces and has a strong impact on, and this difference can not be ignored.
Fig. 6 is HSL and HSW chroma conversion design sketch.Rear two figures are respectively HSL, HSW chromaticity diagram of sample graph conversion.District Not relatively brightness is bigger.The chromaticity diagram of any method is more reasonable, can not find out intuitively.HSW color description method more connects Near vision experience sense by the showing further of characteristic, compare and see Fig. 7.
Fig. 7 is HSL and HSW brightness transition figure.Sample graph is some uniform color lumps.Often row brightness is different, each column form and aspect Different.Rear two figures are respectively HSL, HSW luminance graph of sample graph conversion.It is apparent that HSW luminance graph can more preferably embody Artwork visual brightness feature.As, b row color lump is presented as close to identical brightness at e row, it is clear that be inappropriate;In h arranges then There is well performance.
Fig. 8 is HSL and HSW chroma conversion figure.The same Fig. 7 of sample graph.Rear two figures are respectively HSL, HSW color of sample graph conversion Degree figure.Colourity is also referred to as color saturation, purity, is the purity of color, and purity is the highest, shows the distinctest, and purity is relatively low, and performance is then Dulller.Although a, b, c row form and aspect are identical, but colourity is visibly different.HSL colour model shows as same at d, e, f row Colourity, it is clear that be inappropriate;HSW colour model shows as Lycoperdon polymorphum Vitt at g, i row, and h row show as white and reasonably embody a, c It is listed in colourity and the gap of b row.
Analyzing more than in conjunction with and compare and understand, HSW color description method is at brightness, colourity two aspect, than other color mould Type more meets the visual experience of people.

Claims (4)

1. the color processing method that a view-based access control model is experienced, it is characterised in that step is as follows:
Obtain the digital picture of rgb format;
Rgb format data are processed: brightness W=(RL+GM+BN)/D/ (L+M+N);Colourity S=(Max-Min)/D;Its In, R, G, B are rgb format data;Max is maximum in R, G, B;Min is minima in R, G, B;L, M, N are coefficient;D be R, G, B span maximum.
The color processing method that a kind of view-based access control model the most according to claim 1 is experienced, it is characterised in that the meter of form and aspect H Calculation mode is: if R is maximum, then H=0+ (G-B)/(Max-Min);If G is maximum, then H=2+ (B-R)/(Max-Min);As Really B is maximum, then H=4+ (R-G)/(Max-Min);Then H is expanded 60 times, and judge whether H is less than zero, if less than zero, Current H-number is added 360 and obtains new H-number.
The color processing method that a kind of view-based access control model the most according to claim 2 is experienced, it is characterised in that to rgb format The process that data carry out processing is:
If R=Max Then H=0+ (G-B)/(Max-Min)
If G=Max Then H=2+ (B-R)/(Max-Min)
If B=Max Then H=4+ (R-G)/(Max-Min)
H=60H
If H < 0Then H=H+360
S=(Max-Min)/D
W=(RL+GM+BN)/D/ (L+M+N)
Thus obtain HSW formatted data;
HSW formatted data is treated journey is:
W=W (L+M+N)
H=H/60
IF 0≤H < 1
R=(-HMS+MS+NS+W)
G=(HLS+HNS-LS+W)
B=(-HMS-LS+W)
IF 1≤H < 2
R=(-HMS-HNS+2MS-MS+2NS+W)
G=(HLS-2LS+LS+NS+W)
B=(HLS-2LS-MS+W)
IF 2≤H < 3
R=(-HNS-MS+2NS+W)
G=(-HNS+LS+2NS+NS+W)
B=(HLS+HMS-2LS-2MS-MS+W) IF 3≤H < 4
R=(HMS-4MS-NS+W)
G=(-HLS-HNS+4LS+4NS-NS+W)
B=(HMS+LS-4MS+MS+W)
IF 4≤H < 5
R=(HMS+HNS-4MS-4NS-NS+W)
G=(-HLS+4LS-NS+W)
B=(-HLS+4LS+LS+MS+W)
IF 5≤H < 6
R=(HNS+MS-6NS+NS+W)
G=(HNS-LS-6NS+W)
B=(-HLS-HMS+6LS-LS+6MS+W)
R=RD/ (L+M+N)
G=GD/ (L+M+N)
B=BD/ (L+M+N)
Thus obtain rgb format data.
The color processing method that a kind of view-based access control model the most according to claim 2 is experienced, described coefficient L, M, N take respectively 38.4、76.8、12.8。
CN201610677181.0A 2016-08-16 2016-08-16 The color processing method that a kind of view-based access control model is experienced Pending CN106296751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610677181.0A CN106296751A (en) 2016-08-16 2016-08-16 The color processing method that a kind of view-based access control model is experienced

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610677181.0A CN106296751A (en) 2016-08-16 2016-08-16 The color processing method that a kind of view-based access control model is experienced

Publications (1)

Publication Number Publication Date
CN106296751A true CN106296751A (en) 2017-01-04

Family

ID=57678976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610677181.0A Pending CN106296751A (en) 2016-08-16 2016-08-16 The color processing method that a kind of view-based access control model is experienced

Country Status (1)

Country Link
CN (1) CN106296751A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112243491A (en) * 2018-06-06 2021-01-19 地板技术有限公司 Method for on-line quality control of decorative printing on carrier material

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197917A (en) * 2006-12-04 2008-06-11 胜华科技股份有限公司 Image processing process
CN102117484A (en) * 2009-12-31 2011-07-06 新谊整合科技股份有限公司 Processing system, processing method and image classification method using image color information
CN103065334A (en) * 2013-01-31 2013-04-24 金陵科技学院 Color cast detection and correction method and device based on HSV (Hue, Saturation, Value) color space

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197917A (en) * 2006-12-04 2008-06-11 胜华科技股份有限公司 Image processing process
CN102117484A (en) * 2009-12-31 2011-07-06 新谊整合科技股份有限公司 Processing system, processing method and image classification method using image color information
CN103065334A (en) * 2013-01-31 2013-04-24 金陵科技学院 Color cast detection and correction method and device based on HSV (Hue, Saturation, Value) color space

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CARL2380: "根据RGB计算亮度", 《HTTPS://BLOG.CSDN.NET/CARL2380/ARTICLE/DETAILS/5872720》 *
VIEWCODE: "从RGB到HSV颜色空间的理解", 《HTTPS://BLOG.CSDN.NET/VIEWCODE/ARTICLE/DETAILS/8203728》 *
黄耀明: "《电脑绘图学》", 31 August 1976 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112243491A (en) * 2018-06-06 2021-01-19 地板技术有限公司 Method for on-line quality control of decorative printing on carrier material
CN112243491B (en) * 2018-06-06 2022-04-12 地板技术有限公司 Method and apparatus for on-line quality control of decorative printing on carrier material

Similar Documents

Publication Publication Date Title
CN111191424B (en) Page color matching method and device, storage medium and chip
CN104636759B (en) A kind of method and picture filter information recommendation system for obtaining picture and recommending filter information
CN108846869B (en) Automatic clothes color matching method based on natural image colors
KR100843088B1 (en) Apparatus and method for outputting wide color gamut space image
CN102857674A (en) Method for processing high dynamic range images using tone mapping to extended RGB space
US20170118380A1 (en) Luminous printing
CN105451094B (en) Subtitle color adjustment method and device
US8982411B2 (en) Image processing apparatus and method
KR100679048B1 (en) Method and apparatus for gamut mapping
CN103618886A (en) Shooting method for intelligently decoloring according to main color tone
CN105493489A (en) Gamut mapping systems and methods
CN113132696A (en) Image tone mapping method, device, electronic equipment and storage medium
CN103559712B (en) Black melon seed color selection method
CN110780961B (en) Method for adjusting character color of application interface, storage medium and terminal equipment
Ganesan et al. A comprehensive review of the impact of color space on image segmentation
CN109102473B (en) Method for improving color digital image quality
CN106296751A (en) The color processing method that a kind of view-based access control model is experienced
CN103679658B (en) A kind of image processing method according to the decolouring of dominant hue intelligence
CN104639924A (en) Method for reducing degree of dependence on device pixel to improve color value precision
CN106599185A (en) HSV-based image similarity identification method
CN110490945B (en) Image color adjusting method
CN108876800B (en) Information processing method and equipment
CN105184746A (en) Histogram equalization-based color image enhanced treatment method
CN116703794B (en) Multi-image fusion method in HSV color space
CN104766301B (en) A kind of monochromatic gathering algorithm based on image

Legal Events

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

Application publication date: 20170104