CN103106669B - Chinese medicine tongue picture is as environmental suitability color reproduction method - Google Patents

Chinese medicine tongue picture is as environmental suitability color reproduction method Download PDF

Info

Publication number
CN103106669B
CN103106669B CN201310000915.8A CN201310000915A CN103106669B CN 103106669 B CN103106669 B CN 103106669B CN 201310000915 A CN201310000915 A CN 201310000915A CN 103106669 B CN103106669 B CN 103106669B
Authority
CN
China
Prior art keywords
max
value
display
tristimulus values
color
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
CN201310000915.8A
Other languages
Chinese (zh)
Other versions
CN103106669A (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.)
Beijing University of Technology
Original Assignee
Beijing University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Technology filed Critical Beijing University of Technology
Priority to CN201310000915.8A priority Critical patent/CN103106669B/en
Publication of CN103106669A publication Critical patent/CN103106669A/en
Application granted granted Critical
Publication of CN103106669B publication Critical patent/CN103106669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Spectrometry And Color Measurement (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

Chinese medicine tongue picture belongs to field of medical image processing as environmental suitability color reproduction method.First this method takes special colour table image under same image acquisition condition, and measures the standard colors angle value of color lump in colour table with colorimeter; Use colour table view data to set up gatherer process colorimetric characterization models in a computer, realize the conversion between device color spaces and standard colorimetric space.Then according to measuring the image capture environment and display environment parameter that obtain, in conjunction with the background adaptation parameter that tongue image structure priori is determined, visual adaptation model is utilized to calculate display image chroma tristimulus values.Similar with gatherer process characterization, by showing one group of color lump over the display, and measuring the standard colors angle value of display color lump, setting up procedure for displaying colorimetric characterization models, calculate the display driving value that colourity tristimulus values is corresponding.This method finally realizes the adaptability true colors reproduction of tongue image.<!--1-->

Description

Chinese medicine tongue picture is as environmental suitability color reproduction method
Technical field
The invention belongs to field of medical image processing.Be by a kind ofly utilizing computer technology, digital image processing techniques realize the method that image true colors reproduces and are applied to Tongue field.During eye-observation color, there is adaptivity, can according to different comprising illumination, environmental factor is adjusted to the most real visually-perceptible automatically.But in the research of traditional Chinese medical science objectivity, because the impact comprising device attribute and environment of observation factor causes tongue image color and the inconsistent problem of Human Perception.The method by carrying out characterization for image input-output device, and uses the method for colour vision sensor model to comprising illumination, background, environment of observation factor take in, and reappears the true colors of tongue image.
The novel tongue picture research method of one grown up the eighties in last century with Digital Image Processing and analytical technology for Main Means carries out the research of Evolution of Tongue Inspection of TCM objectivity.Using the tongue image after color reproduction to carry out treatment and analysis can than more comprehensively studying tongue picture feature.
Background technology
Traditional Evolution of Tongue Inspection of TCM is by the knowledge and experience eye observation of doctor according to oneself, and judges, and its diagnostic result is by the restriction of doctor's know-how, the mode of thinking and diagnostic skill.Therefore, to the objectifying of Evolution of Tongue Inspection of TCM, digitizing, namely objective tongue picture analysis method is studied, to Chinese medical discrimination standardization and Evolution of Tongue Inspection of TCM is clinical, teaching, scientific research method modernization there is important theory value and practical significance.Various vision facilities collection and display tongue image is often adopted in Externalization of Application of Tongue Inspection of TCM process.Due to vision facilities self attributes and environment of observation different, cause tongue image color that display shows and the tongue color that human eye is seen is inconsistent, have impact on the judgement of doctor to the state of an illness.
Externalization of Application of Tongue Inspection of TCM research adopts maximum input-output device to be digital camera and liquid crystal display.Vision facilities color space has device dependency, is the main cause of cross-color.First be device characterization---device color spaces and standard colorimetric space are set up mapping relations, re-uses visual adaptation conversion and revise the impact comprising illumination, contextual factor, finally realize true colors reproduction.Device characterization is the key of color reproduction effect.First the nonlinear transformation relation of apparatus for establishing color space RGB and each passage luminous energy Y, then realizes according to digital camera characterization model, colored quantum noise, liquid crystal display characterization model algorithm and optimizes mapping, finally obtains reappearing image.This mapping process considers device attribute, environmental factor etc., and make tongue image color closer to true colors, observer can judge the state of an illness accurately according to tongue image.
Summary of the invention
The present invention is in Tongue field, proposes for tongue image cross-color.Its feature is: on the colorimetric characterization analysis foundation of image acquisition and procedure for displaying, in conjunction with human eye vision adaptive model and Chinese medicine tongue picture structure priori, soil boy structure adaptability Chinese medicine tongue picture is as color reproduction system.The main flow of this method as shown in Figure 1.
First this method takes special colour table image under same image acquisition condition, and measures the standard colors angle value of color lump in colour table with colorimeter; Use colour table view data to set up gatherer process colorimetric characterization models in a computer, realize the conversion between device color spaces and standard colorimetric space.Then according to measuring the image capture environment and display environment parameter that obtain, in conjunction with the background adaptation parameter that tongue image structure priori is determined, visual adaptation model is utilized to calculate display image chroma tristimulus values.Similar with gatherer process characterization, by showing one group of color lump over the display, and measuring the standard colors angle value of display color lump, setting up procedure for displaying colorimetric characterization models, calculate the display driving value that colourity tristimulus values is corresponding.Finally realize the adaptability true colors reproduction of tongue image.This algorithm comprises the steps:
Chinese medicine tongue picture, as environmental suitability color reproduction method, is characterized in that, comprises the steps:
A. the foundation of image acquisition characterization model
Standard colour board is placed in image capture environment, shooting colour table image, and obtains the RGB mean value of each color lump; Use colorimeter measurement obtain each color lump tristimulus values XYZ and tristimulus values normalization is made spectral reflectivity be 1 white blocks Y value be 100;
Unexplained reference in following steps, all tristimulus values be spectral reflectivity be 1 white blocks Y value be the normalized value of 100;
According to the Y in the RGB mean value of gray scale color lump each in colour table and tristimulus values, set up the one-dimensional map look-up table of R, G, B triple channel and Y respectively by cubic spline interpolation algorithm; Use this one-dimensional map look-up table that the original RGB mean value of above-mentioned all color lumps is converted into the linear color space value with brightness, be designated as rgb;
And adopting polynomial regression model to set up the mapping relations of rgb and XYZ, the several pre-measuring colour difference according to test sample book of Polynomial Terms is chosen; Like this, the three-channel one-dimensional map look-up table of R, G, B and polynomial regression model are combined into image acquisition characterization model; The each pixel RGB values of original tongue image, after image acquisition characterization model calculates, is namely converted to each pixel tristimulus values XYZ;
B. the visual adaptation based on tongue image priori converts
1) determination of image capture environment adaptation parameter
(1) determine to adapt to field brightness L a: refer to the absolute brightness of observing background, using blee estimated brightness as adaptation field brightness; First the absolute brightness L of photometer measurement reference white color lump in image capture environment is used w, calculate white absolute brightness L wwith the Y recorded with colorimeter in white tristimulus values wratio cc; Former tongue image selects a colour of skin point, according to the Y value in this tristimulus that gatherer process characterization model calculates, calculates the product of Y and α, give L a;
(2) background relative brightness Y is determined b: represent the brightness that background relative reference is white, using the Y in blee tristimulus values as Y b;
(3) parameter factors of environmental correclation is determined: refer to the parameter that the outer lighting environment of the entirety of the object of observation is relevant, comprise environmental impact parameter c, color induction factor Nc, fitness factor F, three parameters are set to 0.69,1.0,1.0 respectively;
2) forward adapts to conversion
Forward adapts to conversion and refers to according to collection environmental adaptation parameter, colour stimulus value is converted to the visual experience value after environmental adaptation, i.e. the process of look looks attribute; According to the above-mentioned collection environmental adaptation parameter determined, each pixel tristimulus values XYZ that A step gatherer process characterization model is calculated and the tristimulus values X of reference white wy wz w, by colored quantum noise positive-going transition in colorimetry, calculate the look looks attribute that these colour stimulus are corresponding, comprise lightness J, chroma C and hue angle h;
3) determination of display environment adaptation parameter
(1) determine to adapt to field brightness : display white block first over the display, by its absolute brightness of photometer measurement , and record the Y in white blocks tristimulus values with colorimeter, both calculating ratio ; Former tongue image selects a colour of skin point, according to the Y value in this tristimulus that gatherer process characterization model calculates, calculates the product of Y and β, give ;
(2) background relative brightness is determined : using the Y in blee tristimulus values as ;
(3) determine the parameter factors of environmental correclation: environmental selection environmental impact parameter c, color induction factor Nc, fitness factor F setting parameter residing for display, dark room conditions above-mentioned parameter is set to 0.525,0.8,0.8 respectively; Duskiness environment is set to 0.59,0.95,0.9; General environment is set to 0.69,1.0,1.0;
(4) reverse adaptation conversion
Reverse adaptation conversion refers to according to display environment adaptation parameter, visual experience value is converted to the process of display environment colour stimulus value; According to display environment adaptation parameter, forward being adapted to convert the look looks property value obtained, calculating each pixel tristimulus values for showing by colored quantum noise reciprocal transformation;
Thus, each pixel tristimulus values XYZ that gatherer process characterization model exports adapts to conversion through forward and is converted to visual experience look looks property value, then is converted to the tristimulus values of display needs display through reverse adaptation conversion ;
C. the foundation of display characteristic model
By RGB color space from 0 to 255 equal interval samplings, entreat region to show each RGB color successively in the display, use colorimeter to measure each color tristimulus values XYZ;
Namely only have this channel value non-vanishing each for RGB triple channel pure color, tristimulus values substitutes into the XYZ of following formula, by the linear rgb value that matrix computations pure color is corresponding, and X in formula i, max, Y i, max, Z i, max, wherein i be R G B be single channel maximum export time XYZ, X k, max, Y k, max, Z k, maxfor stain, each channels drive value is the XYZ value of 0; Each pure color and RGB tri-kinds of pure colors, i.e. three kinds of passages, but each passage can value various, as R passage 50,0,0; 100,0,0 etc.;
[ r g b ] = [ X R , max ? X k , min X G , max ? X k , min X B , max ? X k , min Y R , max ? Y k , min Y G , max ? Y k , min Y B , max ? Y k , min Z R , max ? Z k , min Z G , max ? Z k , min Z B , max ? Z k , min ] ? 1 [ X ? X k , min Y ? Y k , min Z ? Z k , min ]
Set up the initial one-dimensional map look-up table of three passages by interpolation fitting between each passage pure color RGB motivation value with corresponding linear rgb value;
Utilize initial one-dimensional map look-up table, all color lump RGB motivation values are converted into linear rgb value, the transformation matrix of recycling following formula calculates corresponding prediction tristimulus X ' Y ' Z ';
[ X &prime; Y &prime; Z &prime; ] = [ X R , max ? X k , min X G , max ? X k , min X B , max ? X k , min X k , min Y R , max ? Y k , min Y G , max ? Y k , min Y B , max ? Y k , min Y k , min Z R , max ? Z k , min Z G , max ? Z k , min Z B , max ? Z k , min Z k , min ] [ r g b 1 ]
Employing standard aberration formulae discovery prediction tristimulus values and the average color difference measured between tristimulus values, carry out iteration optimization as objective function, progressive updating one-dimensional look-up table and transformation matrix are until objective function is minimum; One-dimensional look-up table final like this and transformation matrix just constitute the characterization model of display, achieve the mapping between display driving value and display tristimulus values;
The tristimulus values of display is needed according to the display obtained after the conversion of previous step visual adaptation , by display characteristic model, calculate the corresponding display driving value of each pixel, obtain final reproduction tongue image.
Beneficial effect
This method is intended to realize tongue image energy accurate reproduction tongue body true colors in Externalization of Application of Tongue Inspection of TCM research, namely no matter uses which kind of vision facilities and can reproduce true tongue color accurately under which kind of illumination with environment of observation.By making accurate vision facilities characterization model, contacting of apparatus for establishing color space and standard colorimetric space, and then the cross-color reducing that device dependency causes; Use the factors such as visual adaptation transfer pair lighting source, background, environment of observation to compensate and revise simultaneously, make reproduction color more meet human-eye visual characteristic.The reproduction tongue image relatively exported and true tongue body can find, the image that this method obtains and true tongue color very close, subjective evaluation result is better than colourity recurrence system.
Example effects: by some observers to the visual experience of primitive color with reproduction color similarity, provide corresponding score value, as table 1, finally will quantize mean value as last evaluation result.
Table 1 subjective assessment grade quantizing table
Respectively the original image shown, colourity reproduction image, look looks reproduction image are carried out subjectivity marking and evaluated.The mean subjective evaluation of three width images is respectively: 4.1,2.6,2.1, and original image belongs to " can accept " grade, and colourity reproduction image is between " similar " and " fairly similar ", and look looks reappear image close to " fairly similar ".
Accompanying drawing explanation
Fig. 1 is the main program flow chart of this method;
Fig. 2 is collecting device R passage one-dimensional look-up table curve exemplary plot;
Fig. 3 is the program flow diagram of gatherer process characterization process;
Fig. 4 is the program flow diagram of positive-going transition in visual adaptation model;
Fig. 5 is display one-dimensional look-up table curve exemplary plot;
Fig. 6 is the program flow diagram of display characteristics process.
Embodiment
This implementation method completes in the Tongue collection be made up of standard D65 light source, digital camera, mechanical platform, computer system and display system.Specific implementation process is as follows:
1. the foundation of image acquisition characterization model
1) Standard colour board (as color checker24) is placed in tongue image acquisition system, uses the digital camera shooting colour table image of system self, and extract the RGB mean value of each color lump.Use colorimeter PR650 measurement to obtain the tristimulus values XYZ of each color lump, and tristimulus values normalization is made spectral reflectivity be 1 white blocks Y value be 100.
2) set up sampled point according to the Y in the RGB mean value of gray scale color lump each in colour table and tristimulus values, re-use cubic spline interpolation algorithm and set up R, G, B triple channel and the complete one-dimensional look-up table curve of Y on 0-255 respectively.
3) the RGB mean value of all color lumps input one-dimensional look-up table is obtained linear camera response, be designated as rgb; Then use polynomial regression algorithm to set up the mapping relations of rgb and XYZ, the several pre-measuring colour difference according to test sample book of Polynomial Terms is chosen, and the present embodiment adopts 11.Gather characterization model to complete.
4) each pixel RGB values of original tongue image is after image acquisition characterization model calculates, and namely can be converted to each pixel tristimulus values XYZ.
2. the visual adaptation based on tongue image priori converts
1) determination of image capture environment adaptation parameter
(1) field brightness L is adapted to a: with the absolute brightness L of photometer measurement standard white color lump in image capture environment w, calculate white absolute brightness L wwith the Y recorded with colorimeter in white tristimulus values wratio cc; Former tongue image selects a colour of skin point, according to the Y value in this tristimulus that gatherer process characterization model calculates, calculates the product of Y and α, give L a.
(2) background relative brightness Y b: using the Y in blee point tristimulus values as Y b.
(3) parameter factors of environmental correclation: environmental impact parameter c, color induction factor Nc, fitness factor F tri-parameter are set to 0.69,1.0,1.0 respectively.
2) forward adapts to conversion
(1) by the tristimulus values X of each pixel tristimulus values XYZ and reference white wy wz wbe transformed in cone cellular response space by chromatic adaptation transformation matrix and represent, be designated as (R, G, B) and (R respectively w, G w, B w), namely
R G B = M CAT 02 X Y Z - - - ( 1 )
R W G W B W = M CAT 02 X W Y W Z W - - - ( 2 )
M CAT 02 = 0.7328 0.4296 - 0.1624 - 0.7036 1.6975 0.0061 0.0030 0.0136 0.9834 - - - ( 3 )
(2) fitness D is calculated.D characterizes human eye to the adaptedness of reference white field, and the computing formula of D is:
D = F [ 1 - ( 1 / 3.6 ) e ( - L A - 42 ) / 92 ] - - - ( 4 )
(3) the cone cellular response (R after adapting to is obtained by weighting chromatic adaptation conversion c, G c, B c):
R C = [ Y W D / R W + ( 1 - D ) ] R G C = [ Y W D / G W + ( 1 - D ) ] G B C = [ Y W D / B W + ( 1 - D ) ] B - - - ( 5 )
(4) luminance level Adaptation factor is calculated.
F L = 0.2 &times; k 4 ( 5 L A ) + 0.1 &times; ( 1 - k 4 ) 2 ( 5 L A ) 1 / 3 - - - ( 6 )
k = 1 / ( 5 L A + 1 ) - - - ( 7 )
(5) luminance background factor N is calculated bb, chroma background gactor N cb, based on the nonlinear factor z of index, computing formula is as follows:
N bb = N cb = 0.725 ( 1 / n ) 0.2 - - - ( 8 )
z = 1.48 + n - - - ( 9 )
n = Y b / Y w - - - ( 10 )
In formula, Y bfor background luminance, Y wfor reference white brightness, n is called background inducible factor.
(6) by (R c, G c, B c) respond spatial alternation to HPE space from cones, namely
R &prime; C &prime; B &prime; = M HPE M - 1 CAT 02 R C G C B C - - - ( 11 )
M HPE = 0.38971 0.68898 - 0.07868 - 0.22981 1.8340 0.04641 0.00000 0.00000 1.00000 - - - ( 12 )
M - 1 CAT 02 = 1.0961 - 0.2789 0.1827 0.4544 0.4735 0.0721 - 0.0096 - 0.0057 1.0153 - - - ( 13 )
(7) in HPE space, non-linear compression process is carried out to (R ', G ', B '), namely
R a &prime; = 400 ( F L R &prime; / 100 ) 0.42 27.13 + ( F L R &prime; / 100 ) 0.42 + 0.1 G a &prime; = 400 ( F L G &prime; / 100 ) 0.42 27.13 + ( F L G &prime; / 100 ) 0.42 + 0.1 B a &prime; = 400 ( F L B &prime; / 100 ) 0.42 27.13 + ( F L B &prime; / 100 ) 0.42 + 0.1 - - - ( 1 )
(8) look looks attribute is calculated
Hue angle h is
h = arctan ( b / a ) - - - ( 15 )
Wherein chromaticity coordinates a, b is
a = R a &prime; - 12 G a &prime; / 11 + B a &prime; / 11 - - - ( 16 )
b = ( 1 / 9 ) ( R a &prime; + G a &prime; - 2 B a &prime; ) - - - ( 17 )
Lightness J is
J = 100 ( A / A W ) cz - - - ( 18 )
Wherein netrual colour response A is
A = [ 2 R a &prime; + G a &prime; + ( 1 / 20 ) B a &prime; - 0.305 ] N bb - - - ( 19 )
A wit is white corresponding netrual colour response.
Chroma C is
c = t 0.9 J / 100 ( 1.64 - 0.29 n ) 0.73 - - - ( 20 )
Wherein the computing method of temporary variable t are
t = e a 2 + b 2 R a &prime; + G a &prime; + ( 21 / 20 ) B a &prime; - - - ( 21 )
e = ( 12500 N c N cb / 13 ) [ cos ( h&pi; / 180 + 2 ) + 3.8 ] - - - ( 22 )
So far, lightness J, the chroma C of look looks attribute and hue angle h obtain.
3) determination of display environment adaptation parameter
(1) field brightness is adapted to : show the white blocks driven by 255 over the display, by its absolute brightness of photometer measurement, record the Y in white blocks tristimulus values with colorimeter, both calculating ratio ; Former tongue image selects a colour of skin point, according to the Y value in this tristimulus that gatherer process characterization model calculates, calculates the product of Y and β, give .
(2) background relative brightness : using the Y in blee point tristimulus values as .
(3) parameter factors of environmental correclation: environmental selection environmental impact parameter c, color induction factor Nc, fitness factor F setting parameter residing for display.Dark room conditions above-mentioned parameter is set to 0.525,0.8,0.8 respectively; Duskiness environment is set to 0.59,0.95,0.9; General environment is set to 0.69,1.0,1.0.
4) reverse adaptation conversion
(1) adapted to convert J, C, h of obtaining by forward, calculate t, e, p 1, p 2, p 3(non-formula illustrates that parameter calculates according to forward adaption formula)
t = [ C J / 100 ( 1.64 - 0.29 n ) 0.73 ] 1 / 0.9 - - - ( 22 )
e = ( 12500 N c N cb / 13 ) [ cos ( h&pi; / 180 + 2 ) + 3.8 ] - - - ( 23 )
A = A w ( J / 100 ) 1 / ( ca )
p 1 = e / t , p 2 = ( A / N bb ) + 0.305 , p 3 = 21 / 20
(2) a and b is calculated
If t=0, then a=b=0, leaps to next step.It should be noted that h should convert radian to when calculating sine and cosine.
If | sin (h) |>=| cos (h) |, then p 4=p 1/ sin (h)
b = p 2 ( 2 + p 3 ) ( 460 / 1403 ) p 4 + ( 2 + p 3 ) ( 220 / 1403 ) - [ cos ( h ) / sin ( h ) ] - 27 / 1403 + p 3 ( 6300 / 1403 ) - - - ( 25 )
a = b [ cos ( h ) / sin ( h ) ] - - - ( 26 )
If | cos (h) | < | sin (h) |, then p 5=p 1/ cos (h)
a = p 2 ( 2 + p 3 ) ( 460 / 1403 ) p 5 + ( 2 + p 3 ) ( 220 / 1403 ) - [ 27 / 1403 - p 3 ( 6300 / 1403 ) ] [ sin ( h ) / cos ( h ) ] - - - ( 27 )
b = a [ sin ( h ) / cos ( h ) ] - - - ( 28 )
(3) R ' is calculated a, G ' a, B ' a
R a &prime; = 460 1403 p 2 + 451 1403 a + 288 1403 b G a &prime; = 460 1403 p 2 - 891 1403 a - 261 1403 b B a &prime; = 460 1403 p 2 + 220 1403 a - 6300 1403 b - - - ( 29 )
(4) R ', G ', B ' is calculated
R &prime; = sign ( R a &prime; - 0.1 ) 100 F L [ 27.13 | R a &prime; - 0.1 | 400 - | R a &prime; - 0.1 | ] 1 / 0.42 G &prime; = sign ( G a &prime; - 0.1 ) 100 F L [ 27.13 | G a &prime; - 0.1 | 400 - | G a &prime; - 0.1 | ] 1 / 0.42 B &prime; = sign ( B a &prime; - 0.1 ) 100 F L [ 27.13 | B a &prime; - 0.1 | 400 - | B a &prime; - 0.1 | ] 1 / 0.42 - - - ( 30 )
(5) R is calculated c, G c, B c
R c G c B c = M CAT 02 M HPE - 1 R &prime; G &prime; B &prime; - - - ( 31 )
M HPE - 1 = 1.910197 - 1.112124 0.201908 0.370950 0.629054 - 0.000008 0.00000 0.00000 1.000000
(6) cone cellular response R, G, B is transformed into
R = R C / ( Y W D R W + 1 - D ) G = G C / ( Y W DG W + 1 - D ) B = B C / ( Y W DB W + 1 - D ) - - - ( 32 )
(7) tristimulus values X, Y, Z is calculated
X Y Z = M CAT 02 - 1 R G B - - - ( 33 )
By reciprocal transformation, calculate each pixel tristimulus values for showing.
Thus, each pixel tristimulus values XYZ that gatherer process characterization model exports adapts to conversion through forward and is converted to visual experience look looks property value, then is converted to the tristimulus values of display needs display through reverse adaptation conversion .
3. the foundation of display characteristic model
1) colour temperature of liquid crystal display is set to 6500K, 2 hours preheating time, measures and carries out in dark room conditions.By RGB color space from 0 to 255 equal interval samplings, as by 5 × 5 × 5 deciles, 216 the sampled point rgb values being spaced apart 50 can be obtained; Entreat the region of 10cm × 10cm to show each RGB color successively in the display, use colorimeter to measure each color tristimulus values XYZ.
2) each pure color (only have this channel value non-vanishing) tristimulus values is substituted into the XYZ of following formula, by the linear rgb value that matrix computations pure color is corresponding, X in formula i, max, Y i, max, Z i, max(i be R G B) be single channel maximum export time XYZ, X k, max, Y k, max, Z k, maxfor the XYZ value of stain (each channels drive value is 0).
[ r g b ] = [ X R , max ? X k , min X G , max ? X k , min X B , max ? X k , min Y R , max ? Y k , min Y G , max ? Y k , min Y B , max ? Y k , min Z R , max ? Z k , min Z G , max ? Z k , min Z B , max ? Z k , min ] ? 1 [ X ? X k , min Y ? Y k , min Z ? Z k , min ] - - - ( 34 )
3) between each passage pure color RGB motivation value with corresponding linear rgb value, the initial one-dimensional map look-up table of three passages is set up by interpolation fitting.
4) utilize initial one-dimensional map look-up table, all color lump RGB motivation values are converted into linear rgb value, the transformation matrix of recycling following formula calculates corresponding prediction tristimulus X ' Y ' Z '.
[ X &prime; Y &prime; Z &prime; ] = [ X R , max ? X k , min X G , max ? X k , min X B , max ? X k , min X k , min Y R , max ? Y k , min Y G , max ? Y k , min Y B , max ? Y k , min Y k , min Z R , max ? Z k , min Z G , max ? Z k , min Z B , max ? Z k , min Z k , min ] [ r g b 1 ] - - - ( 35 )
5) adopt CIE2000 colour difference formula, computational prediction tristimulus values and the average color difference measured between tristimulus values, carry out iteration optimization as objective function, progressive updating one-dimensional look-up table and transformation matrix are until objective function is minimum.One-dimensional look-up table final like this and transformation matrix just constitute the characterization model of display.
6) tristimulus values of display is needed according to the display obtained after the conversion of previous step visual adaptation , by display characteristic model, the corresponding display driving value of each pixel can be calculated, obtain final reproduction tongue image.

Claims (1)

1. Chinese medicine tongue picture is as environmental suitability color reproduction method, it is characterized in that, comprises the steps:
A. the foundation of image acquisition characterization model
Standard colour board is placed in image capture environment, shooting colour table image, and obtains the RGB mean value of each color lump; Use colorimeter measurement obtain each color lump tristimulus values XYZ and tristimulus values normalization is made spectral reflectivity be 1 white blocks Y value be 100;
Unexplained reference in following steps, all tristimulus values be spectral reflectivity be 1 white blocks Y value be the normalized value of 100;
According to the Y in the RGB mean value of gray scale color lump each in colour table and tristimulus values, set up the one-dimensional map look-up table of R, G, B triple channel and Y respectively by cubic spline interpolation algorithm; Use this one-dimensional map look-up table that the original RGB mean value of above-mentioned all color lumps is converted into the linear color space value with brightness, be designated as rgb;
And adopting polynomial regression model to set up the mapping relations of rgb and XYZ, the several pre-measuring colour difference according to test sample book of Polynomial Terms is chosen; Like this, the three-channel one-dimensional map look-up table of R, G, B and polynomial regression model are combined into image acquisition characterization model; The each pixel RGB values of original tongue image, after image acquisition characterization model calculates, is namely converted to each pixel tristimulus values XYZ;
B. the visual adaptation based on tongue image priori converts
1) determination of image capture environment adaptation parameter
(1) determine to adapt to field brightness L a: refer to the absolute brightness of observing background, using blee estimated brightness as adaptation field brightness; First the absolute brightness L of photometer measurement reference white color lump in image capture environment is used w, calculate white absolute brightness L wwith the Y recorded with colorimeter in white tristimulus values wratio cc; Former tongue image selects a colour of skin point, according to the Y value in this tristimulus that image acquisition characterization model calculates, calculates the product of Y and α, give L a;
(2) background relative brightness Y is determined b: represent the brightness that background relative reference is white, using the Y in blee tristimulus values as Y b;
(3) parameter factors of environmental correclation is determined: refer to the parameter that the outer lighting environment of the entirety of the object of observation is relevant, comprise environmental impact parameter c, color induction factor Nc, fitness factor F, three parameters are set to 0.69,1.0,1.0 respectively;
2) forward adapts to conversion
Forward adapts to conversion and refers to according to collection environmental adaptation parameter, colour stimulus value is converted to the visual experience value after environmental adaptation, i.e. the process of look looks attribute; According to the above-mentioned collection environmental adaptation parameter determined, each pixel tristimulus values XYZ that A step image acquisition characterization model is calculated and the tristimulus values X of reference white wy wz w, by colored quantum noise positive-going transition in colorimetry, calculate the look looks attribute that these colour stimulus are corresponding, comprise lightness J, chroma C and hue angle h;
3) determination of display environment adaptation parameter
(1) determine to adapt to field brightness first display white block over the display, by its absolute brightness of photometer measurement and record the Y in white blocks tristimulus values with colorimeter, both calculating ratio former tongue image selects a colour of skin point, according to the Y value in this tristimulus that image acquisition characterization model calculates, calculates the product of Y and β, give
(2) background relative brightness is determined using the Y in blee tristimulus values as
(3) determine the parameter factors of environmental correclation: environmental selection environmental impact parameter c, color induction factor Nc, fitness factor F setting parameter residing for display, dark room conditions above-mentioned parameter is set to 0.525,0.8,0.8 respectively; Duskiness environment is set to 0.59,0.95,0.9; General environment is set to 0.69,1.0,1.0;
(4) reverse adaptation conversion
Reverse adaptation conversion refers to according to display environment adaptation parameter, visual experience value is converted to the process of display environment colour stimulus value; According to display environment adaptation parameter, forward being adapted to convert the look looks property value obtained, calculating each pixel tristimulus values for showing by colored quantum noise reciprocal transformation;
Thus, each pixel tristimulus values XYZ that image acquisition characterization model exports adapts to conversion through forward and is converted to visual experience look looks property value, then is converted to the tristimulus values of display needs display through reverse adaptation conversion
C. the foundation of display characteristic model
By RGB color space from 0 to 255 equal interval samplings, entreat region to show each RGB color successively in the display, use colorimeter to measure each color tristimulus values XYZ;
Tristimulus values corresponding for each for RGB triple channel pure color is substituted into the XYZ of following formula, the channel value that each pure color of RGB triple channel and RGB triple channel only have pure color corresponding is non-vanishing, by the linear rgb value that matrix computations pure color is corresponding, and X in formula i, max, Y i, max, Z i, max, wherein i be R G B be single channel maximum export time XYZ, X k, min, Y k, min, Z k, minfor stain, each channels drive value is the XYZ value of 0; Each pure color and RGB tri-kinds of pure colors, i.e. three kinds of passages;
r g b = X R , max - X k , min X G , max - X k , min X B , max - X k , min Y R , max - Y k , min Y G , max - Y k , min Y B , max - Y k , min Z R , max - Z k , min Z G , max - Z k , min Z B , max - Z k , min - 1 X - X k , min Y - Y k , min Z - Z k , min
Set up the initial one-dimensional map look-up table of three passages by interpolation fitting between each passage pure color RGB motivation value with corresponding linear rgb value;
Utilize initial one-dimensional map look-up table, all color lump RGB motivation values are converted into linear rgb value, the transformation matrix of recycling following formula calculates corresponding prediction tristimulus X ' Y ' Z ';
X &prime; Y &prime; Z &prime; = X R , max - X k , min X G , max - X k , min X B , max - X k , min X k , min Y R , max - Y k , min Y G , max - Y k , min Y B , max - Y k , min Y k , min Z R , max - Z k , min Z G , max - Z k , min Z B , max - Z k , min Z k , min r g b 1
Employing standard aberration formulae discovery prediction tristimulus values and the average color difference measured between tristimulus values, carry out iteration optimization as objective function, progressive updating one-dimensional look-up table and transformation matrix are until objective function is minimum; One-dimensional look-up table final like this and transformation matrix just constitute the characterization model of display, achieve the mapping between display driving value and display tristimulus values;
The tristimulus values of display is needed according to the display obtained after the conversion of previous step visual adaptation by display characteristic model, calculate the corresponding display driving value of each pixel, obtain final reproduction tongue image.
CN201310000915.8A 2013-01-02 2013-01-02 Chinese medicine tongue picture is as environmental suitability color reproduction method Active CN103106669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310000915.8A CN103106669B (en) 2013-01-02 2013-01-02 Chinese medicine tongue picture is as environmental suitability color reproduction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310000915.8A CN103106669B (en) 2013-01-02 2013-01-02 Chinese medicine tongue picture is as environmental suitability color reproduction method

Publications (2)

Publication Number Publication Date
CN103106669A CN103106669A (en) 2013-05-15
CN103106669B true CN103106669B (en) 2015-10-28

Family

ID=48314496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310000915.8A Active CN103106669B (en) 2013-01-02 2013-01-02 Chinese medicine tongue picture is as environmental suitability color reproduction method

Country Status (1)

Country Link
CN (1) CN103106669B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104299187B (en) * 2013-07-15 2018-08-31 上海联影医疗科技有限公司 The image processing method and device of X-ray shooting system
CN103400146B (en) * 2013-07-19 2017-03-01 北京工业大学 Chinese medicine complexion recognition method based on color modeling
CN103745084B (en) * 2013-12-16 2016-08-24 北京工业大学 Chinese medicine tongue color sensation based on psychophysical testing knows quantization method
CN104572538B (en) * 2014-12-31 2017-08-25 北京工业大学 A kind of Chinese medicine tongue image color correction method based on K PLS regression models
US20180247431A1 (en) * 2015-08-21 2018-08-30 Quivervision Limited Process, system and apparatus for machine colour characterisation of digital media
CN109147683B (en) * 2017-06-28 2021-06-04 上海健康医学院 Reverse characterization method of composite display device
CN108451501A (en) * 2018-02-01 2018-08-28 福建师范大学 A kind of nevus flammeus color and area appraisal procedure based on pixel analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1945627A (en) * 2006-10-20 2007-04-11 清华大学 Method for correcting digital tongue picture colour cast
CN102360493A (en) * 2011-10-10 2012-02-22 复旦大学 Fusion and display method of grey-scale and false color images based on color appearance model
CN102509312A (en) * 2011-09-20 2012-06-20 哈尔滨工业大学 Color range space of human body digital tongue image color and extraction method thereof
CN102611897A (en) * 2012-03-04 2012-07-25 北京佳泰信业技术有限公司 Method and system for carrying out vision perception high-fidelity transformation on color digital image

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100506085B1 (en) * 2002-12-28 2005-08-05 삼성전자주식회사 Apparatus for processing tongue image and health care service apparatus using tongue image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1945627A (en) * 2006-10-20 2007-04-11 清华大学 Method for correcting digital tongue picture colour cast
CN102509312A (en) * 2011-09-20 2012-06-20 哈尔滨工业大学 Color range space of human body digital tongue image color and extraction method thereof
CN102360493A (en) * 2011-10-10 2012-02-22 复旦大学 Fusion and display method of grey-scale and false color images based on color appearance model
CN102611897A (en) * 2012-03-04 2012-07-25 北京佳泰信业技术有限公司 Method and system for carrying out vision perception high-fidelity transformation on color digital image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
液晶显示器颜色特性化方法的对比研究;唐超 等;《计算机工程与应用》;20121231;第48卷(第13期);全文 *

Also Published As

Publication number Publication date
CN103106669A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
CN103106669B (en) Chinese medicine tongue picture is as environmental suitability color reproduction method
CN104485068B (en) Luminance-chrominance correction method and system of LED (Light Emitting Diode) display screen
Xiao et al. Improved method for skin reflectance reconstruction from camera images
CN104572538B (en) A kind of Chinese medicine tongue image color correction method based on K PLS regression models
CN107144353B (en) A kind of textile chromatism measurement method based on digital camera
US10200582B2 (en) Measuring device, system and program
CN103565419B (en) The system of selection of color measuring device, method and suitable foundation cream
Quintana et al. A novel method for color correction in epiluminescence microscopy
CN103402117A (en) Method for detecting color cast of video image based on Lab chrominance space
CN103474046B (en) Method for improving color reproduction effect from digital camera to displayer
CN113189021A (en) Method for identifying rock color based on spectrum
CN108844632B (en) Method for evaluating metamerism difference of observers among different display devices
CN112488997B (en) Method for detecting and evaluating color reproduction of ancient painting printed matter based on characteristic interpolation
EP2866008B1 (en) Tone type identification method
CN102446363A (en) Color source pixel point sampling method for qualified color source image
JPH0678947B2 (en) Mutual conversion method of emission control signal of CRT color display and object color CIE tristimulus value
Maczkowski et al. Integrated method for three-dimensional shape and multispectral color measurement
Párraga et al. Accurate mapping of natural scenes radiance to cone activation space: a new image dataset
CN108462863B (en) Display equipment color space conversion method based on composite model
CN113259658A (en) Method for acquiring favorite memory color of object and favorite memory color standard color card
Litorja et al. Use of a spectrally tunable source to explore improvement in chromatic contrast for illumination of tissues
TWI839658B (en) Colorimetric measurement method and device
LI et al. Colorimetric characterization of LCD based on constrained least squares
Li et al. Comparative study on colorimetric characterization of LCD based on polynomial
Hung et al. Optimizing color accuracy of a filter-based multispectral camera via iccMAX framework for digital achieves

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant