CN106780379B - A kind of microscopical colour-image reinforcing method of metering - Google Patents

A kind of microscopical colour-image reinforcing method of metering Download PDF

Info

Publication number
CN106780379B
CN106780379B CN201611122603.4A CN201611122603A CN106780379B CN 106780379 B CN106780379 B CN 106780379B CN 201611122603 A CN201611122603 A CN 201611122603A CN 106780379 B CN106780379 B CN 106780379B
Authority
CN
China
Prior art keywords
component
luminance component
image
pixel
coordinate
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
CN201611122603.4A
Other languages
Chinese (zh)
Other versions
CN106780379A (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.)
Rongyi Shangke Photoelectric Technology Harbin Co ltd
Original Assignee
Harbin Institute 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 Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN201611122603.4A priority Critical patent/CN106780379B/en
Publication of CN106780379A publication Critical patent/CN106780379A/en
Application granted granted Critical
Publication of CN106780379B publication Critical patent/CN106780379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • G06T5/73
    • G06T5/94

Abstract

A kind of microscopical colour-image reinforcing method of metering, belongs to optical microscopy and metrological testing technology field.Solves the problem of enhancing cromogram using traditional enhancing technology, will cause cromogram cross-color.Image is directly transformed to the space HSI using Retinex algorithm by the present invention, so image can be transformed into the color space HIS from RGB color space, keep original chrominance components H (x, y) constant, change original luminance component I (x, and initial saturation component S (x, y) y).Then image is transformed into again by rgb space by inverse operation, a large amount of operation time can be saved in this way, due to not having to change original chrominance components H (x, y), the last tone of image should be remained unchanged, and not will cause cross-color.Present invention is mainly used for handle color image.

Description

A kind of microscopical colour-image reinforcing method of metering
Technical field
The invention belongs to optical microscopies and metrological testing technology field.
Background technique
At present to the process of image procossing be on the basis of the sample three-dimensional height information that Laser Scanning Confocal Microscope measures again In addition one-dimensional colouring information constitutes the four-dimensional information figure that can directly react sample material and pattern, three-dimensional height information can be by altogether The chromatographic data that focusing microscope measures is handled to obtain more accurately as a result, and the colouring information of each position of sample It is then taken pictures acquisition by colored CCD, but shoots that obtain picture luminance, contrast etc. not high by colored CCD, and color is non- It is often dim, thus cause color image can identification it is bad, directly colouring information is added in three-dimensional height information and shows effect Fruit is very not fully up to expectations, therefore needs to handle color image before increasing colour information.
Algorithm of color image enhancement research is carried out mainly for low-light (level), low contrast color image at present.Tradition increases Strong technology is mainly to grow up on the basis of grayscale image enhances algorithm, directly using traditional enhancing technology to cromogram Carrying out enhancing will cause cross-color.
There are halation phenomenon and edge blurry phenomenon when traditional Retinex algorithm handles image, and existing SSR Algorithm can not combine dynamic range compression and color constancy, and multi-Scale Retinex Algorithm (that is: MSR) is in comparison The either fidelity of brightness or contrast or color is all promoted, but is still had at the obtained image border of the algorithm A little fuzzy and colors still can some distortions.
Therefore, when handling it is urgent to provide a kind of pair of cromogram, the distortion of cromogram is not will cause.
Summary of the invention
When the present invention is to solve to enhance cromogram using traditional enhancing technology, cromogram color will cause The problem of distortion, the present invention provides a kind of microscopical colour-image reinforcing methods of metering.
A kind of microscopical colour-image reinforcing method of metering, this method comprises the following steps:
Step 1: the collected RGB image of biomicroscope is transformed into HIS space, obtains three of image in HIS space A component, respectively original chrominance components H (x, y), original luminance component I (x, y) and initial saturation component S (x, y);Its In, (x, y) indicates the coordinate of pixel;
Step 2: being handled original luminance component I (x, y) using Retinex algorithm, the brightness point that obtains that treated Measure r (x, y), local contrast enhancing then carried out to treated luminance component r (x, y), obtain new luminance component I ' (x, y);The value of the Retinex algorithm mesoscale parameter c is 15,80 or 250;
Step 3: adaptive saturation compensation is carried out to initial saturation component S (x, y), obtains new bright saturation degree point It measures S ' (x, y);
Step 4: by new luminance component I ' (x, y), new bright saturation degree component S ' (x, y) and original chrominance components H (x, y) transforms to rgb space from HIS space, the RGB image that obtains that treated, then RGB image carries out gray scale drawing to treated It stretches, to complete to Color Image Processing.
The surround function expression formula of the Retinex algorithm is
Wherein, F (x, y) indicates Gaussian convolution kernel function, and k indicates that coefficient, e indicate natural Exponents.
In the step two, local contrast enhancing is carried out to treated luminance component r (x, y), is obtained new bright Spend the detailed process of component I ' (x, y) are as follows:
Step 2 one obtains the local detail re (x, y) of luminance component using following formula one and two,
Re (x, y)=r (x, y)-ravg (x, y) (formula one),
Ravg (x, y)=F (x, y) * r (x, y) (formula two),
Step 2 two carries out gamma transformation to the local detail re (x, y) of the luminance component of acquisition, obtains rn (x, y), In,
Rn (x, y)=sign (re (x, y)) | re (x, y) |r(formula three),
Rn (x, y) and r (x, y) is added, real number field is then switched to, to obtain new luminance component by step 2 three I′(x,y);
Wherein, rn (x, y) is that local detail re (x, y) carries out the local detail obtained after gamma transformation, ravg (x, y) table Show a weighted mean, sign () sign function.
Described carries out adaptive saturation compensation to initial saturation component S (x, y), obtains new bright saturation degree component The detailed process of S ' (x, y) is realized using formula four, wherein
S ' (x, y)=S (x, y)+(r (x, y)-I (x, y) ρ (x, y)) (formula four),
Described
ρ (x, y) indicates the related coefficient of luminance component and saturation degree component,
Coordinate is luminance component of the pixel of (x, y) in neighborhood w in I (i, j) original luminance component, and (i, j) is indicated The coordinate of pixel,
Indicate that coordinate is mean value of the pixel of (x, y) in neighborhood w in original brightness figure,
S (i, j) indicates that coordinate is saturation degree component of the pixel of (x, y) in neighborhood w in initial saturation component,
Indicate that coordinate is mean value of the pixel of (x, y) in neighborhood w in initial saturation figure,
δr(x, y) indicates that coordinate is variance of the pixel of (x, y) in neighborhood w in original luminance component,
δs(x, y) indicates that coordinate is variance of the pixel of (x, y) in neighborhood w in initial saturation component.
Image is directly transformed to the space HSI using Retinex algorithm by the present invention, then can be by image from RGB color Space is transformed into the color space HIS, keeps original chrominance components H (x, y) constant, changes original luminance component I (x, y) and original Saturation degree component S (x, y).Then image is transformed into again by rgb space by inverse operation, when can save a large amount of operation in this way Between, and due to not having to change original chrominance components H (x, y), the last tone of image should be remained unchanged, not will cause Cross-color.
The invention has the beneficial effects that
1, using the method for the present invention, the enhancing of image under metering type microscope is realized by MATLAB program, compared to previous Algorithm whether color fidelity or saturation degree all improve a lot, this to identify different materials material have emphatically Big meaning.
2, using algorithm for image enhancement of the present invention, existing edge blurry after traditional algorithm process can be eliminated And halation phenomenon, and have very big inhibiting effect to the whiting of color CCD image acquired image.
3, the present invention is set out based on metering imaging direction, proposes a kind of microscopical color image enhancement side of metering Method, compared with traditional algorithm, the present invention only realizes algorithm for image enhancement and combines this with the device of actual engineering field Thought also compensates for traditional algorithm process result and is unsatisfactory for requirement of engineering and handles the various restricted problems of image.
Specific embodiment
Specific embodiment 1: a kind of microscopical colour-image reinforcing method of metering, the party described in present embodiment Method includes the following steps:
Step 1: the collected RGB image of biomicroscope is transformed into HIS space, obtains three of image in HIS space A component, respectively original chrominance components H (x, y), original luminance component I (x, y) and initial saturation component S (x, y);Its In, (x, y) indicates the coordinate of pixel;
Step 2: being handled original luminance component I (x, y) using Retinex algorithm, the brightness point that obtains that treated Measure r (x, y), local contrast enhancing then carried out to treated luminance component r (x, y), obtain new luminance component I ' (x, y);The value of the Retinex algorithm mesoscale parameter c is 15,80 or 250;
Step 3: adaptive saturation compensation is carried out to initial saturation component S (x, y), obtains new bright saturation degree point It measures S ' (x, y);
Step 4: by new luminance component I ' (x, y), new bright saturation degree component S ' (x, y) and original chrominance components H (x, y) transforms to rgb space from HIS space, the RGB image that obtains that treated, then RGB image carries out gray scale drawing to treated It stretches, to complete to Color Image Processing.
In present embodiment, HIS color space meets cognition of the people to color, and luminance component and colouring information very much It is unrelated thus by processing luminance component and saturation degree component color fidelity may be implemented.
And true reflected sample material is wanted the present invention claims color sample, a kind of low-luminance color image of the present invention is based on face The enhancing that color is kept is theoretical --- Retinex is theoretical, by the algorithm of theory proposition have the function of preferable color keep and Dynamic range compression function so that the theory in the field of image enhancement for requiring color constancy using very extensive, be current One of colored enhancing theory of most study.
Specific embodiment 2: a kind of microscopical cromogram of metering described in present embodiment and specific embodiment one The difference of image intensifying method is that the surround function expression formula of the Retinex algorithm is
Wherein, F (x, y) indicates Gaussian convolution kernel function, and k indicates that coefficient, e indicate natural Exponents.
Specific embodiment 3: a kind of microscopical coloured silk of metering described in present embodiment and specific embodiment one or two The difference of color image enchancing method is, in the step two, to treated, luminance component r (x, y) carries out local contrast Degree enhancing, obtains the detailed process of new luminance component I ' (x, y) are as follows:
Step 2 one obtains the local detail re (x, y) of luminance component using following formula one and two,
Re (x, y)=r (x, y)-ravg (x, y) (formula one),
Ravg (x, y)=F (x, y) * r (x, y) (formula two),
Step 2 two carries out gamma transformation to the local detail re (x, y) of the luminance component of acquisition, obtains rn (x, y), In,
Rn (x, y)=sign (re (x, y)) | re (x, y) |r(formula three),
Rn (x, y) and r (x, y) is added, real number field is then switched to, to obtain new luminance component by step 2 three I′(x,y);
Wherein, rn (x, y) is that local detail re (x, y) carries out the local detail obtained after gamma transformation, ravg (x, y) table Show a weighted mean, sign () sign function.
Specific embodiment 4: a kind of microscopical cromogram of metering described in present embodiment and specific embodiment one The difference of image intensifying method is, described to carry out adaptive saturation compensation to initial saturation component S (x, y), obtains new Bright saturation degree component S ' (x, y) detailed process, using formula four realize, wherein
S ' (x, y)=S (x, y)+(r (x, y)-I (x, y) ρ (x, y)) (formula four),
Described
ρ (x, y) indicates the related coefficient of luminance component and saturation degree component,
Coordinate is luminance component of the pixel of (x, y) in neighborhood w in I (i, j) original luminance component, and (i, j) is indicated The coordinate of pixel,
Indicate that coordinate is mean value of the pixel of (x, y) in neighborhood w in original brightness figure,
S (i, j) indicates that coordinate is saturation degree component of the pixel of (x, y) in neighborhood w in initial saturation component,
Indicate that coordinate is mean value of the pixel of (x, y) in neighborhood w in initial saturation figure,
δ r (x, y) indicates that coordinate is variance of the pixel of (x, y) in neighborhood w in original luminance component,
δ s (x, y) indicates that coordinate is variance of the pixel of (x, y) in neighborhood w in initial saturation component.
A kind of detailed process for measuring microscopical colour-image reinforcing method of the present invention is not limited to above-mentioned each reality Detailed process documented by mode is applied, can also be the reasonable combination of technical characteristic documented by the respective embodiments described above.

Claims (3)

1. a kind of microscopical colour-image reinforcing method of metering, this method comprises the following steps:
Step 1: the collected RGB image of biomicroscope is transformed into HIS space, obtains three points of image in HIS space Amount, respectively original chrominance components H (x, y), original luminance component I (x, y) and initial saturation component S (x, y);Wherein, (x, Y) coordinate of pixel is indicated;
Step 2: being handled original luminance component I (x, y) using Retinex algorithm, the luminance component r that obtains that treated (x, y), then to treated, luminance component r (x, y) carries out local contrast enhancing, obtains new luminance component I ' (x, y); The value of the Retinex algorithm mesoscale parameter c is 15,80 or 250;
Step 3: adaptive saturation compensation is carried out to initial saturation component S (x, y), obtains new bright saturation degree component S ' (x,y);
Step 4: by new luminance component I ' (x, y), new bright saturation degree component S ' (x, y) and original chrominance components H (x, y) Rgb space is transformed to from HIS space, the RGB image that obtains that treated, then RGB image carries out gray scale stretching to treated, from And it completes to Color Image Processing;
It is characterized in that, described carry out adaptive saturation compensation to initial saturation component S (x, y), obtain new bright full With the detailed process of degree component S ' (x, y), realized using formula four, wherein
S ' (x, y)=S (x, y)+(r (x, y)-I (x, y) ρ (x, y)) (formula four),
Described
ρ (x, y) indicates the related coefficient of luminance component and saturation degree component,
Coordinate is luminance component of the pixel of (x, y) in neighborhood w in I (i, j) original luminance component, and (i, j) indicates pixel The coordinate of point,
Indicate that coordinate is mean value of the pixel of (x, y) in neighborhood w in original brightness figure,
S (i, j) indicates that coordinate is saturation degree component of the pixel of (x, y) in neighborhood w in initial saturation component,
Indicate that coordinate is mean value of the pixel of (x, y) in neighborhood w in initial saturation figure,
δr(x, y) indicates that coordinate is variance of the pixel of (x, y) in neighborhood w in original luminance component,
δs(x, y) indicates that coordinate is variance of the pixel of (x, y) in neighborhood w in initial saturation component.
2. a kind of microscopical colour-image reinforcing method of metering according to claim 1, which is characterized in that described The surround function expression formula of Retinex algorithm is
Wherein, F (x, y) indicates Gaussian convolution kernel function, and k indicates that coefficient, e indicate natural Exponents.
3. a kind of microscopical colour-image reinforcing method of metering according to claim 1 or 2, which is characterized in that described The step of two in, local contrast enhancing is carried out to treated luminance component r (x, y), obtains new luminance component I ' (x, y) Detailed process are as follows:
Step 2 one obtains the local detail re (x, y) of luminance component using following formula one and two,
Re (x, y)=r (x, y)-ravg (x, y) (formula one),
Ravg (x, y)=F (x, y) * r (x, y) (formula two),
Step 2 two carries out gamma transformation to the local detail re (x, y) of the luminance component of acquisition, obtains rn (x, y), wherein
Rn (x, y)=sign (re (x, y)) | re (x, y) |r(formula three),
Rn (x, y) and r (x, y) are added, then switch to real number field by step 2 three, thus obtain new luminance component I ' (x, y);
Wherein, rn (x, y) is that local detail re (x, y) carries out the local detail obtained after gamma transformation, and ravg (x, y) indicates one A weighted mean, sign () sign function, r indicate the coefficient of gamma transformation.
CN201611122603.4A 2016-12-08 2016-12-08 A kind of microscopical colour-image reinforcing method of metering Active CN106780379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611122603.4A CN106780379B (en) 2016-12-08 2016-12-08 A kind of microscopical colour-image reinforcing method of metering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611122603.4A CN106780379B (en) 2016-12-08 2016-12-08 A kind of microscopical colour-image reinforcing method of metering

Publications (2)

Publication Number Publication Date
CN106780379A CN106780379A (en) 2017-05-31
CN106780379B true CN106780379B (en) 2019-08-23

Family

ID=58881763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611122603.4A Active CN106780379B (en) 2016-12-08 2016-12-08 A kind of microscopical colour-image reinforcing method of metering

Country Status (1)

Country Link
CN (1) CN106780379B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109785240B (en) * 2017-11-13 2021-05-25 中国移动通信有限公司研究院 Low-illumination image enhancement method and device and image processing equipment
CN109493289B (en) * 2018-10-26 2021-06-01 华侨大学 Method for enhancing dual nonlinear images with brightness and saturation
CN109903247B (en) * 2019-02-22 2023-02-03 西安工程大学 High-precision graying method for color image based on Gaussian color space correlation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103996179A (en) * 2014-06-17 2014-08-20 东南大学 Fast real-time image enhancement method based on single-scale Retinex
CN105469373A (en) * 2014-09-04 2016-04-06 南京理工大学 Retinex image enhancing method and system
CN105654437A (en) * 2015-12-24 2016-06-08 广东迅通科技股份有限公司 Enhancement method for low-illumination image
CN105654433A (en) * 2015-12-28 2016-06-08 桂林电子科技大学 Color image enhancement method based on improved multi-scale Retinex
CN105844601A (en) * 2016-05-20 2016-08-10 中国矿业大学(北京) Mine image enhancement method based on bilateral filtering and multi-scale Retinex algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103996179A (en) * 2014-06-17 2014-08-20 东南大学 Fast real-time image enhancement method based on single-scale Retinex
CN105469373A (en) * 2014-09-04 2016-04-06 南京理工大学 Retinex image enhancing method and system
CN105654437A (en) * 2015-12-24 2016-06-08 广东迅通科技股份有限公司 Enhancement method for low-illumination image
CN105654433A (en) * 2015-12-28 2016-06-08 桂林电子科技大学 Color image enhancement method based on improved multi-scale Retinex
CN105844601A (en) * 2016-05-20 2016-08-10 中国矿业大学(北京) Mine image enhancement method based on bilateral filtering and multi-scale Retinex algorithm

Also Published As

Publication number Publication date
CN106780379A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
Shi et al. Let you see in sand dust weather: A method based on halo-reduced dark channel prior dehazing for sand-dust image enhancement
Santhi et al. Adaptive contrast enhancement using modified histogram equalization
Abd Halim et al. Nucleus segmentation technique for acute leukemia
CN106780379B (en) A kind of microscopical colour-image reinforcing method of metering
CN106886985A (en) A kind of self adaptation enhancement method of low-illumination image for reducing colour cast
Liu et al. Low-light video image enhancement based on multiscale retinex-like algorithm
Fan et al. An improved single image defogging method based on Retinex
Jang et al. Adaptive color enhancement based on multi-scaled Retinex using local contrast of the input image
CN109325922A (en) A kind of image self-adapting enhancement method, device and image processing equipment
CN111968065B (en) Self-adaptive enhancement method for image with uneven brightness
CN105225205B (en) Image enchancing method, apparatus and system
Kao High dynamic range imaging by fusing multiple raw images and tone reproduction
CN108305232A (en) A kind of single frames high dynamic range images generation method
CN108711160A (en) A kind of Target Segmentation method based on HSI enhancement models
WO2018203514A1 (en) Image analysis evaluation method, computer program, and image analysis evaluation device
CN110246086A (en) The image processing method and its image processing system of color image enhancement
CN112435184A (en) Haze sky image identification method based on Retinex and quaternion
Rattanapitak et al. Comparative efficiency of color models for multi-focus color image fusion
Barai et al. Human visual system inspired saliency guided edge preserving tone-mapping for high dynamic range imaging
Abdullah et al. Digital image processing analysis using Matlab
CN116452447A (en) Low-illumination high-definition image processing method
Fang et al. Color Endoscopic Image Enhancement Technology Based on Nonlinear Unsharp Mask and CLAHE
CN109118458A (en) A kind of low-luminance color image enchancing method
Toh et al. Implementation of high dynamic range rendering on acute leukemia slide images using contrast stretching
CN105184746B (en) Color image enhancement processing method based on histogram equalization

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231024

Address after: Room 1107, 11 / F, National University Science Park, Harbin Institute of technology, No. 434, youyou street, Nangang District, Harbin City, Heilongjiang Province, 150001

Patentee after: Liu Jian

Patentee after: Zhao Yixuan

Patentee after: Harbin Institute of Technology Asset Management Co.,Ltd.

Address before: 150001 No. 92 West straight street, Nangang District, Heilongjiang, Harbin

Patentee before: HARBIN INSTITUTE OF TECHNOLOGY

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240201

Address after: Room 304-2, Building 16, No. 1616, Chuangxin Road, Songbei District, Harbin, Heilongjiang Province, 150001

Patentee after: Rongyi Shangke photoelectric technology (Harbin) Co.,Ltd.

Country or region after: China

Address before: Room 1107, 11 / F, National University Science Park, Harbin Institute of technology, No. 434, youyou street, Nangang District, Harbin City, Heilongjiang Province, 150001

Patentee before: Liu Jian

Country or region before: China

Patentee before: Zhao Yixuan

Patentee before: Harbin Institute of Technology Asset Management Co.,Ltd.