CN102063702B - Method for enhancing optical image - Google Patents

Method for enhancing optical image Download PDF

Info

Publication number
CN102063702B
CN102063702B CN2010105427503A CN201010542750A CN102063702B CN 102063702 B CN102063702 B CN 102063702B CN 2010105427503 A CN2010105427503 A CN 2010105427503A CN 201010542750 A CN201010542750 A CN 201010542750A CN 102063702 B CN102063702 B CN 102063702B
Authority
CN
China
Prior art keywords
pixel
point
value
image
current
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
CN2010105427503A
Other languages
Chinese (zh)
Other versions
CN102063702A (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.)
Jiangsu Juxin integrated circuit technology Limited by Share Ltd
Original Assignee
WUXI INTMICRO CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUXI INTMICRO CO Ltd filed Critical WUXI INTMICRO CO Ltd
Priority to CN2010105427503A priority Critical patent/CN102063702B/en
Publication of CN102063702A publication Critical patent/CN102063702A/en
Application granted granted Critical
Publication of CN102063702B publication Critical patent/CN102063702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for enhancing an optical image. The method comprises the following steps of: 1, inputting an image acquired in photoelectric navigation; 2, performing point-by-point scanning on the image, and acquiring a pixel value, namely pixel (a, b) of the current pixel point; 3, acquiring pixel values of adjacent pixel points at the top left corner, the bottom left corner, the top right corner and the bottom right corner of the current pixel point respectively; 4, solving relative difference values, namely difpix of the current pixel point and (2<n> + 2<m>) adjacent pixel points obtained in the step 3; 5, solving an absolute value of the relative difference value, namely the absolute value of difpix, comparing the absolute value with a set threshold, namely TH4, setting the pixel value of the current pixel point with a coordinate value of a (a, b) point to be the absolute value of difpix multiplying by M when the absolute value is larger than the threshold, namely the TH4, and setting the pixel value of the current pixel point with the coordinate value of the (a, b) point to be 0 when the absolute value is smaller than the threshold, namely the TH4; and 6, after performing the point-by-point scanning on the image, acquiring an enhanced contrast image. The method is easy to operate, good in enhancement effect and suitable for circuit realization, and enhancement efficiency is improved.

Description

The Enhancement Method of optical imagery
Technical field
The present invention relates to a kind of method for distilling of pixel, especially a kind of Enhancement Method of optical imagery belongs to the technical field that electronic eyes pattern-recognition and photoelectricity navigate.
Background technology
At present, the Enhancement Method of optical imagery mainly adopts the extraction of one dimension direction, thereby can obtain a CONT enhanced features image.Concrete extracting mode is as shown in Figure 1: on the one dimension direction of images acquired; Collect corresponding pixel pix; And on the one dimension direction, gather adjacent two some pix1 and the pix2 of said pixel pix; Judge whether need strengthen this pixel through difference then, promptly whether pix_new=2*pix-(pix1+pix2) greater than preset threshold, if just said unique point is strengthened during greater than preset threshold; The size of said threshold value is relevant with the contrast that image needs.Through this method for distilling, can access the characteristic image after a pair strengthens.But; Because the influence of image sensor array neighbor is very big; The gray-scale value of often gathering respective pixel with around the gray-scale value of several pixels very approaching, so on the one dimension direction, adopt adjacent pixels point relatively not reach the contrast purpose, to scheming the DeGrain of image intensifying.
Summary of the invention
The objective of the invention is to overcome the deficiency that exists in the prior art, a kind of Enhancement Method of optical imagery is provided, its method is simple to operate, and reinforced effects is good, improves to strengthen efficient, is fit to circuit and realizes.
According to technical scheme provided by the invention, the Enhancement Method of said optical imagery is characterized in that, the Enhancement Method of said image comprises the steps: 1, imports the image that obtains in the photoelectricity navigation; 2, above-mentioned image is carried out point by point scanning, obtain current pixel point pixel value pixel (a, b), wherein, a, b are respectively the horizontal ordinate and the ordinate values of current pixel point; 3, obtain the pixel value of the neighbor pixel in a current pixel point n upper left corner and n the lower left corner respectively, and obtain the pixel value of the neighbor pixel in a current pixel point m upper right corner and m the lower right corner respectively, said n and m are all more than or equal to 1; 4, the current pixel point of obtaining according to step 3 and (2n+2m) relative difference of individual neighbor pixel, said relative difference is:
difpix = ( 2 n + 2 m ) * pixel ( a , b ) - [ &Sigma; i = 1 n pixel ( a - i , b - i ) + &Sigma; j = 1 m pixel ( a + j , b + j )
+ &Sigma; k = 1 m Pixel ( a - k , b + k ) + &Sigma; l = 1 n Pixel ( a + l , b - l ) ] ; Wherein, &Sigma; i = 1 n Pixel ( a - i , b - i ) For current pixel point pixel (a, b) upper left corner n neighbor pixel with, &Sigma; j = 1 m Pixel ( a + j , b + j ) For current pixel point pixel (a, b) lower right corner m neighbor pixel with, &Sigma; k = 1 m Pixel ( a - k , b + k ) For current pixel point pixel (a, b) upper right corner m neighbor pixel with, &Sigma; l = 1 n Pixel ( a + l , b - l ) For current pixel point pixel (a, b) lower left corner n neighbor pixel with; 5, ask the absolute value of said relative difference difpix | difpix|; And with said absolute value | difpix| compares with preset threshold TH4; When said absolute value | the size of difpix| is during greater than threshold value TH4, and current pixel point is a feature pixel, is (a with the current pixel point coordinate figure; B) pixel value is changed to | difpix|*M, the multiple of said M for needing to strengthen; When said absolute value | the size of difpix| is during less than threshold value TH4, and current pixel point is non-feature pixel, with the current pixel point coordinate figure be (a, pixel value b) is changed to 0; 6, to after the image point by point scanning, and each point of above-mentioned image carried out relative set, the contrast images after obtaining to strengthen.
When obtaining current pixel point and be positioned at edge of image, the pixel value in the n of a said current pixel point upper left corner, a n lower left corner, a m upper right corner or m the lower right corner is to obtain the pixel value of image averaging or the pixel value of neighbor pixel.
Advantage of the present invention: on the two-dimensional directional of image, take a plurality of diagonal angles adjacent pixels value of current pixel point to compare, avoided on image one dimension direction the neighbor pixel gray-scale value close, influence the enhancing of pixel; Method is simple to operate, and reinforced effects is good, improves to strengthen efficient, is fit to circuit and realizes.
Description of drawings
The synoptic diagram that Fig. 1 strengthens for existing optical imagery.
Fig. 2 is the synoptic diagram of the embodiment of the invention.
Fig. 3 is the extraction process flow diagram of the embodiment of the invention.
Embodiment
Below in conjunction with concrete accompanying drawing and embodiment the present invention is described further.
In order to strengthen the contrast of image; The characteristic information of outstanding image; To make things convenient for the coupling degree of accuracy in the mode identification procedure, avoided adopting the defective that adopts the consecutive point contrast on the image one dimension direction simultaneously, the present invention adopts the respective pixel point upper left corner, the lower left corner, the upper right corner and lower right corner symmetry adjacent pixels to put reference as a comparison; More can embody the brightness of respective pixel point local environment in image, accurately strengthen the contrast of image.
In order to strengthen the contrast of image, obtain the improved image normalization after respective image contrasts, need extract the unique point in the image, and the brightness of individual features point is strengthened, thus the contrast images that meets with a response.Said method for distilling can be realized as follows:
1, the image that obtains in the navigation of input photoelectricity; The said image that obtains is the image with certain length and width, comprises some pixels in the said image, and the pixel value of each pixel is different; Need to strengthen the brightness of respective point in the image; Reduce the brightness of background in the image, thereby obtain the big contrast images of a secondary brightness, be convenient to the coupling degree of accuracy in mode identification procedure;
2, above-mentioned image is carried out point by point scanning, obtain current pixel point pixel value pixel (a, b), wherein, a, b are respectively the horizontal ordinate and the ordinate values of current pixel point;
3, obtain the pixel value of the neighbor pixel in a current pixel point n upper left corner and n the lower left corner respectively, and obtain the pixel value of the neighbor pixel in a current pixel point m upper right corner and m the lower right corner respectively, said n and m are all more than or equal to 1; When m=n=1, just adopt each pixel of the current pixel point upper left corner, the lower left corner, the upper right corner and the lower right corner as a comparison; When m and n got other values, the brightness contrast of other neighbor pixels in current pixel point and the image more can embody the brightness value of current pixel point in image, had improved the degree of accuracy of current pixel point contrast;
D, the current pixel point of obtaining according to step 3 and (2n+2m) relative difference of individual neighbor pixel subtract each other the mode of asking contrast according to image pixel, and said relative difference is:
difpix = ( 2 n + 2 m ) * pixel ( a , b ) - [ &Sigma; i = 1 n pixel ( a - i , b - i ) + &Sigma; j = 1 m pixel ( a + j , b + j )
+ &Sigma; k = 1 m Pixel ( a - k , b + k ) + &Sigma; l = 1 n Pixel ( a + l , b - l ) ] ; Wherein, &Sigma; i = 1 n Pixel ( a - i , b - i ) For current pixel point pixel (a, b) upper left corner n neighbor pixel with, &Sigma; j = 1 m Pixel ( a + j , b + j ) For current pixel point pixel (a, b) lower right corner m neighbor pixel with, &Sigma; k = 1 m Pixel ( a - k , b + k ) For current pixel point pixel (a, b) upper right corner m neighbor pixel with, &Sigma; l = 1 n Pixel ( a + l , b - l ) For current pixel point pixel (a, b) lower left corner n neighbor pixel with;
5, ask the absolute value of said relative difference difpix | difpix|; And with said absolute value | difpix| compares with preset threshold TH4; When said absolute value | the size of difpix| is during greater than threshold value TH4, and current pixel point is a feature pixel, is (a with the current pixel point coordinate figure; B) pixel value is changed to | difpix|*M, the multiple of said M for needing to strengthen; When said absolute value | the size of difpix| is during less than threshold value TH4, and current pixel point is non-feature pixel, with the current pixel point coordinate figure be (a, pixel value b) is changed to 0; Said threshold value TH4 and intensification factor M all carry out corresponding setting according to the needs of picture contrast.In to the image that obtains, each pixel all adopts above-mentioned extraction and enhancing, just can access the contrast images after a pair strengthens, and has improved the coupling degree of accuracy in the mode identification procedure;
6,, confirm unique point and non-unique point in the image, and said unique point and non-unique point are carried out corresponding setting, the contrast images after being enhanced to after each point by point scanning in the image.
When current pixel point is positioned at edge of image; Can calculate the average pixel value that obtains image in advance; When the said pixel upper left corner, the lower left corner, the upper right corner or the lower right corner do not have corresponding pixel value; The pixel value in the corresponding upper left corner, the lower left corner, the upper right corner or the lower right corner just is changed to the average pixel value of image; Also can adopt the pixel value of image border neighbor pixel to fill the pixel value in the corresponding upper left corner, the lower left corner, the upper right corner or the lower right corner, make the pixel that obtains the image border also can accomplish above-mentioned comparison process, improve the contrast of image border.
Embodiment
As shown in Figures 2 and 3: following with n=1, m=1 is an example, and the process of the Enhancement Method of extraction of the present invention and image is described;
1, import the image that obtains, the size of said image is TH1 * TH2;
2, above-mentioned image is carried out point by point scanning, obtain current pixel point pixel value pixel (pixRow, pixCol), wherein, pixRow, pixCol are respectively the horizontal ordinate and the ordinate values of current pixel point; In order to obtain corresponding contrast images, need initialization corresponding line train value, make that image all can extract each pixel and processing accordingly to obtaining; Wherein, pixCol representes train value, and pixRow representes the row value;
3, obtain the pixel value of the neighbor pixel in 1 upper left corner of current pixel point and 1 lower left corner respectively, and obtain the pixel value of the neighbor pixel in 1 upper right corner of current pixel point and 1 lower right corner respectively;
4, the current pixel point of obtaining according to step 3 and the relative difference of 4 neighbor pixels, the computation process of said relative difference is
Difpix=-((pixel4-pixel)-(pixel-pixel1)+(pixel3-pixel)-(pixel-pixel2)), i.e. difpix=4*pixel-(pixel1+pixel2+pixel3+pixel4).Said calculating thought is basic processing mode in the Flame Image Process, and promptly image pixel subtracts each other and asks contrast.Because a pixel is all got in the upper left corner, the lower left corner, the upper right corner and the lower right corner of current pixel point, thus the pixel1 pixel value that is the current pixel point upper left corner and, the pixel value of pixel1 be pixel (pixRow-1, pixCol-1); Pixel4 be pixel value and, the pixel value of pixel4 in the current pixel point lower right corner be pixel (pixRow+1, pixCol+1); Pixel3 be pixel value and, the pixel value of pixel3 in the current pixel point lower left corner be pixel (pixRow+1, pixCol-1); Pixel2 be pixel value and, the pixel value of pixel2 in the current pixel point upper right corner be pixel (pixRow-1, pixCol+1); When a plurality of upper left corners of getting current pixel point, the lower left corner, the upper right corner and lower right corner value, can obtain corresponding relative difference according to this
5, ask the absolute value of said relative difference difpix | difpix|; And with said absolute value | difpix| compares with preset threshold TH4; When said absolute value | the size of difpix| confirms that current pixel point is the unique point of image during greater than threshold value TH4, is (pixRow with the current pixel point coordinate figure; PixCol) pixel value is changed to | difpix|*M, the multiple of said M for needing to strengthen; When said absolute value | the size of difpix| is during less than threshold value TH4, and current pixel point is not the unique point of image, with the current pixel point coordinate figure be (pixRow, pixel value pixCol) is changed to 0; With size is the value order of TH1 * TH2 image according to corresponding ranks; Successively to corresponding pixel contrast; Search corresponding unique point and non-unique point; And the pixel value of unique point and non-unique point handled accordingly, can access required contrast images, said contrast images has been given prominence to the characteristic information of image;
6,, confirm unique point and non-unique point in the image, and said unique point and non-unique point are carried out corresponding setting, the contrast images after being enhanced to after each point by point scanning in the image.
The present invention takes a plurality of diagonal angles adjacent pixels value of current pixel point to compare on the two-dimensional directional of image, has avoided on image one dimension direction the neighbor pixel gray-scale value close, influences the enhancing of pixel; Method is simple to operate, and reinforced effects is good, improves to strengthen efficient, is fit to circuit and realizes

Claims (2)

1. the Enhancement Method of an optical imagery is characterized in that, the Enhancement Method of said image comprises the steps:
(1), the image that obtains in the navigation of input photoelectricity;
(2), above-mentioned image is carried out point by point scanning, obtain current pixel point pixel value pixel (a, b), wherein, a, b are respectively the horizontal ordinate and the ordinate values of current pixel point;
(3), respectively obtain the pixel value of the neighbor pixel in a current pixel point n upper left corner and n the lower left corner, and obtain the pixel value of the neighbor pixel in a current pixel point m upper right corner and m the lower right corner respectively, said n and m are all more than or equal to 1;
(4), the current pixel point obtained according to step (3) and (2n+2m) relative difference of individual neighbor pixel, said relative difference is:
difpix = ( 2 n + 2 m ) * pixel ( a , b ) - [ &Sigma; i = 1 n pixel ( a - i , b - i ) + &Sigma; j = 1 m pixel ( a + j , b + j )
+ &Sigma; k = 1 m Pixel ( a - k , b + k ) + &Sigma; l = 1 n Pixel ( a + l , b - l ) ] ; Wherein, &Sigma; i = 1 n Pixel ( a - i , b - i ) For current pixel point pixel (a, b) upper left corner n neighbor pixel with, &Sigma; j = 1 m Pixel ( a + j , b + j ) For current pixel point pixel (a, b) lower right corner m neighbor pixel with, &Sigma; k = 1 m Pixel ( a - k , b + k ) For current pixel point pixel (a, b) upper right corner m neighbor pixel with, &Sigma; l = 1 n Pixel ( a + l , b - l ) For current pixel point pixel (a, b) lower left corner n neighbor pixel with;
(5), ask the absolute value of said relative difference difpix | difpix|; And with said absolute value | difpix| compares with preset threshold TH4; When said absolute value | the size of difpix| is during greater than threshold value TH4, and current pixel point is a feature pixel, is (a with the current pixel point coordinate figure; B) pixel value is changed to | difpix|*M, the multiple of said M for needing to strengthen; When said absolute value | the size of difpix| is during less than threshold value TH4, and current pixel point is non-feature pixel, with the current pixel point coordinate figure be (a, pixel value b) is changed to 0;
(6), to after the image point by point scanning, and each point of above-mentioned image carried out relative set, the contrast images after obtaining to strengthen.
2. according to the Enhancement Method of the said optical imagery of claim 1; It is characterized in that: when obtaining current pixel point and be positioned at edge of image, the pixel value in the n of a said current pixel point upper left corner, a n lower left corner, a m upper right corner or m the lower right corner is to obtain the pixel value of image averaging or the pixel value of neighbor pixel.
CN2010105427503A 2010-11-15 2010-11-15 Method for enhancing optical image Active CN102063702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105427503A CN102063702B (en) 2010-11-15 2010-11-15 Method for enhancing optical image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105427503A CN102063702B (en) 2010-11-15 2010-11-15 Method for enhancing optical image

Publications (2)

Publication Number Publication Date
CN102063702A CN102063702A (en) 2011-05-18
CN102063702B true CN102063702B (en) 2012-07-04

Family

ID=43998967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105427503A Active CN102063702B (en) 2010-11-15 2010-11-15 Method for enhancing optical image

Country Status (1)

Country Link
CN (1) CN102063702B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886556B (en) * 2014-03-13 2016-10-12 江苏钜芯集成电路技术股份有限公司 A kind of abnormality eliminating method of photoelectric navigation system
CN104616264B (en) * 2015-02-12 2017-12-19 厦门大学 The automatic contrast enhancement method of gene-chip Image
CN106205437A (en) * 2015-05-05 2016-12-07 联想(北京)有限公司 A kind of dead pixel detection method, electronic equipment and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6097849A (en) * 1998-08-10 2000-08-01 The United States Of America As Represented By The Secretary Of The Navy Automated image enhancement for laser line scan data
CN1588424A (en) * 2004-07-02 2005-03-02 清华大学 Finger print identifying method based on broken fingerprint detection
US7248751B2 (en) * 2004-03-11 2007-07-24 United States Of America As Represented By The Secretary Of The Navy Algorithmic technique for increasing the spatial acuity of a focal plane array electro-optic imaging system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6097849A (en) * 1998-08-10 2000-08-01 The United States Of America As Represented By The Secretary Of The Navy Automated image enhancement for laser line scan data
US7248751B2 (en) * 2004-03-11 2007-07-24 United States Of America As Represented By The Secretary Of The Navy Algorithmic technique for increasing the spatial acuity of a focal plane array electro-optic imaging system
CN1588424A (en) * 2004-07-02 2005-03-02 清华大学 Finger print identifying method based on broken fingerprint detection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
林雪辉 等.基于Hilbert曲线的数字图像置乱方法研究.《中国体视学与图像分析》.2004,第9卷(第4期),全文. *
许正光 等.像增强器视场缺陷检测方法研究.《应用光学》.2005,第26卷(第3期),全文. *

Also Published As

Publication number Publication date
CN102063702A (en) 2011-05-18

Similar Documents

Publication Publication Date Title
CN107045629B (en) Multi-lane line detection method
CN107507167B (en) Cargo tray detection method and system based on point cloud plane contour matching
CN103411553B (en) The quick calibrating method of multi-linear structured light vision sensors
CN102006425B (en) Method for splicing video in real time based on multiple cameras
CN104966065B (en) target identification method and device
CN105023014B (en) A kind of shaft tower target extraction method in unmanned plane inspection transmission line of electricity image
CN103488988B (en) Method for extracting insulators in electrical equipment based on unmanned aerial vehicle line patrol visible light image
CN103345755B (en) A kind of Chessboard angular point sub-pixel extraction based on Harris operator
CN102999757B (en) Leading line extraction method
CN110096920B (en) High-precision high-speed positioning label and positioning method for visual servo
CN104200461B (en) The remote sensing image registration method of block and sift features is selected based on mutual information image
CN104077577A (en) Trademark detection method based on convolutional neural network
CN104809422A (en) QR code recognizing method based on image processing
CN108256467B (en) Traffic sign detection method based on visual attention mechanism and geometric features
CN104835164A (en) Method and device for processing binocular camera depth image
CN106407924A (en) Binocular road identifying and detecting method based on pavement characteristics
CN103700110B (en) Full-automatic image matching method
CN108596975A (en) A kind of Stereo Matching Algorithm for weak texture region
CN102393902A (en) Vehicle color detection method based on H_S two-dimensional histogram and regional color matching
CN108133471B (en) Robot navigation path extraction method and device based on artificial bee colony algorithm
CN107169947A (en) A kind of image co-registration experimental method of feature based point location and rim detection
CN102063702B (en) Method for enhancing optical image
CN102446356A (en) Parallel and adaptive matching method for acquiring remote sensing images with homogeneously-distributed matched points
CN103903238A (en) Method for fusing significant structure and relevant structure of characteristics of image
CN103226829A (en) Image edge detection method based on edge enhancement operator

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20110518

Assignee: Wuxi Wanyin Semiconductor Science & Technology Co., Ltd.

Assignor: Wuxi IntMicro Co., Ltd.

Contract record no.: 2013320000405

Denomination of invention: Method for enhancing optical image

Granted publication date: 20120704

License type: Common License

Record date: 20130503

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
ASS Succession or assignment of patent right

Owner name: NST CHIP TECHNOLOGY LIMITED

Free format text: FORMER OWNER: WUXI INTMICRO CO., LTD.

Effective date: 20131224

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20131224

Address after: 214128 Jiangsu Province, Wuxi City District Zhenze Road No. 18 National Software Park building a layer of cancer A

Patentee after: NST Chip Technology Limited

Address before: 214128 Jiangsu Province, Wuxi City District (Xin'an Street) Zhenze Wuxi Road No. 18 national software park, Leo A District 3 Building

Patentee before: Wuxi IntMicro Co., Ltd.

PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method for enhancing optical image

Effective date of registration: 20140428

Granted publication date: 20120704

Pledgee: Bank of Jiangsu, Limited by Share Ltd, Wuxi science and Technology Branch

Pledgor: NST Chip Technology Limited

Registration number: 2014990000302

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: Block C No. 18 Wuxi Software Park 214128 cancer in Jiangsu province Wuxi City District Road Zhenze layer

Patentee after: Jiangsu Juxin integrated circuit technology Limited by Share Ltd

Address before: 214128 Jiangsu Province, Wuxi City District Zhenze Road No. 18 National Software Park building a layer of cancer A

Patentee before: NST Chip Technology Limited