CN106231212B - A kind of method and device of image procossing - Google Patents
A kind of method and device of image procossing Download PDFInfo
- Publication number
- CN106231212B CN106231212B CN201610822694.6A CN201610822694A CN106231212B CN 106231212 B CN106231212 B CN 106231212B CN 201610822694 A CN201610822694 A CN 201610822694A CN 106231212 B CN106231212 B CN 106231212B
- Authority
- CN
- China
- Prior art keywords
- parameter
- data
- constant
- current source
- dark
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N25/00—Circuitry of solid-state image sensors [SSIS]; Control thereof
- H04N25/60—Noise processing, e.g. detecting, correcting, reducing or removing noise
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N25/00—Circuitry of solid-state image sensors [SSIS]; Control thereof
- H04N25/50—Control of the SSIS exposure
Abstract
The invention discloses a kind of method and devices of image procossing.This method comprises: AD gain parameter is set gradually, AD offset parameter and constant-current source DC parameter;It adjusts constant-current source GS parameter and obtains bright data and dark data;Image data is obtained, and described image is handled according to default updating formula, the bright data and the dark data;Described image data after output calibration.The present invention achievees the purpose that elimination background data by increasing the value of the dark data in updating formula, and dark data are obtained in shorter increase exposure time appropriate;CIS imaging sensor acquires image data with this solution, can reach after calibrated and completely eliminates background data, and image data consistency is preferable.
Description
Technical field
The present embodiments relate to the technical field of image procossing more particularly to a kind of method and devices of image procossing.
Background technique
The application of CIS imaging sensor needs A/D chip to complete sampling and analog-to-digital conversion, constant current source chip completion driving point
Bright light source.A/D chip has two registers of gain and biasing, wherein biasing may be configured as positive bias and negative bias.Constant current source chip
There are DC parameter and GS parameter, DC parameter provides the electric current of driving light source, when GS parameter provides light source exposure in the form of PWM wave
It is long.CIS acquire image must it is calibrated after just meet application when image consistency requirement.
When image is handled after algorithm part is to correction, generally require to eliminate background data.Currently, scheme eliminates school
It is negative bias to realize that the background data of positive image, which adjusts offset register parameter, but this method often can not be complete
Eliminate image background data.If setting bigger negative bias for offset parameter to achieve the purpose that eliminate background data, but have
The consistency effect that may result in acquisition image data becomes very poor.
Summary of the invention
The purpose of the embodiment of the present invention is to propose a kind of method and device of image procossing, it is intended to solve how to improve school
The problem of positive image effect.
For this purpose, the embodiment of the present invention uses following technical scheme:
In a first aspect, a kind of method of image procossing, which comprises
Set gradually AD gain parameter, AD offset parameter and constant-current source DC parameter;
It adjusts constant-current source GS parameter and obtains bright data and dark data;
Image data is obtained, and described image is carried out according to default updating formula, the bright data and the dark data
Processing;
Described image data after output calibration.
It is preferably, described to set gradually AD gain parameter, AD offset parameter and constant-current source DC parameter, comprising:
The constant-current source DC parameter is set first and the constant-current source GS parameter is maximum value, and is meeting default principle
In the case of select the AD gain parameter;Secondly the setting AD offset parameter is 0;Then in the feelings for meeting the default principle
The constant-current source DC parameter is selected under condition;
The default principle will meet image data mean value in 0~255 adjustable range when being acquisition image.
Preferably, the adjusting constant-current source GS parameter obtains dark data, comprising:
Under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter, pass through setting the
One constant-current source GS parameter obtains the dark data, and the first constant-current source GS parameter meets the x in the default updating formulai-di
Value is 0;Wherein, the xiTo acquire raw image data;The diFor dark data.
Preferably, the adjusting constant-current source GS parameter obtains bright data, comprising:
Under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter, pass through setting the
Two constant-current source GS parameters obtain the bright data, need to meet the default principle when choosing the second constant-current source GS parameter.
Preferably, the default updating formula are as follows:
Y=((xi-di)×256)/(wi-di)
Wherein, the y is image correcting data;The xiTo acquire raw image data;The wiFor bright data;It is described
diFor dark data.
Second aspect, a kind of device of image procossing, described device include:
Setup module, for setting gradually AD gain parameter, AD offset parameter and constant-current source DC parameter;
Adjustment module obtains bright data and dark data for adjusting constant-current source GS parameter;
Processing module, for obtaining image data, and according to default updating formula, the bright data and the dark data pair
Described image is handled;
Output module, for described image data after output calibration.
Preferably, the setup module, is specifically used for:
The constant-current source DC parameter is set first and the constant-current source GS parameter is maximum value, and is meeting default principle
In the case of select the AD gain parameter;Secondly the setting AD offset parameter is 0;Then in the feelings for meeting the default principle
The constant-current source DC parameter is selected under condition;
The default principle will meet image data mean value in 0~255 adjustable range when being acquisition image.
Preferably, the adjustment module, is specifically used for:
Under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter, pass through setting the
One constant-current source GS parameter obtains the dark data, and the first constant-current source GS parameter meets the x in the default updating formulai-di
Value is 0;Wherein, the xiTo acquire raw image data;The diFor dark data.
Preferably, the adjustment module, also particularly useful for:
Under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter, pass through setting the
Two constant-current source GS parameters obtain the bright data, need to meet the default principle when choosing the second constant-current source GS parameter.
Preferably, the default updating formula are as follows:
Y=((xi-di)×256)/(wi-di);
Wherein, the y is image correcting data;The xiTo acquire raw image data;The wiFor bright data;It is described
diFor dark data.
The embodiment of the present invention provides a kind of method and device of image procossing, sets gradually AD gain parameter, AD biasing ginseng
Several and constant-current source DC parameter;It adjusts constant-current source GS parameter and obtains bright data and dark data;Image data is obtained, and according to default school
Positive formula, the bright data and the dark data handle described image;Described image data after output calibration.The present invention
Achieve the purpose that eliminate background data by increasing the value of the dark data in updating formula, dark data are appropriate shorter
Increase exposure time to obtain;CIS imaging sensor acquires image data with this solution, can reach after calibrated and completely eliminates back
Scape data, image data consistency are preferable.
Detailed description of the invention
Fig. 1 is the flow diagram for a kind of method that the embodiment of the present invention provides image procossing;
Fig. 2 is the flow diagram of the method for another image procossing provided in an embodiment of the present invention;
Fig. 3 is the image schematic diagram before a kind of correction provided in an embodiment of the present invention;
Fig. 4 is the image schematic diagram after a kind of correction provided in an embodiment of the present invention
Fig. 5 is a kind of the functional block diagram of the device of image procossing provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this
Locate described specific embodiment and is used only for explaining the embodiment of the present invention, rather than the restriction to the embodiment of the present invention.In addition also
It should be noted that only parts related to embodiments of the present invention are shown rather than entire infrastructure for ease of description, in attached drawing.
It is a kind of flow diagram of the method for image procossing provided in an embodiment of the present invention with reference to Fig. 1, Fig. 1.
As shown in Figure 1, the method for described image processing includes:
Step 101, AD gain parameter, AD offset parameter and constant-current source DC parameter are set gradually;
It is preferably, described to set gradually AD gain parameter, AD offset parameter and constant-current source DC parameter, comprising:
The constant-current source DC parameter is set first and the constant-current source GS parameter is maximum value, and is meeting default principle
In the case of select the AD gain parameter;Secondly the setting AD offset parameter is 0;Then in the feelings for meeting the default principle
The constant-current source DC parameter is selected under condition;
The default principle will meet image data mean value in 0~255 adjustable range when being acquisition image.
Step 102, it adjusts constant-current source GS parameter and obtains bright data and dark data;
Preferably, the adjusting constant-current source GS parameter obtains dark data, comprising:
Under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter, pass through setting the
One constant-current source GS parameter obtains the dark data, and the first constant-current source GS parameter meets the x in the default updating formulai-di
Value is 0;Wherein, the xiTo acquire raw image data;The diFor dark data.
Preferably, the adjusting constant-current source GS parameter obtains bright data, comprising:
Under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter, pass through setting the
Two constant-current source GS parameters obtain the bright data, need to meet the default principle when choosing the second constant-current source GS parameter.
Step 103, image data is obtained, and according to default updating formula, the bright data and the dark data to described
Image is handled;
Wherein, the default updating formula are as follows:
Y=((xi-di)×256)/(wi-di)
Wherein, the y is image correcting data;The xiTo acquire raw image data;The wiFor bright data;It is described
diFor dark data.
Step 104, described image data after output calibration.
The embodiment of the present invention provides a kind of method of image procossing, sets gradually AD gain parameter, AD offset parameter and perseverance
Stream source DC parameter;It adjusts constant-current source GS parameter and obtains bright data and dark data;Image data is obtained, and public according to default correction
Formula, the bright data and the dark data handle described image;Described image data after output calibration.The present invention passes through
Increase the value of the dark data in updating formula to achieve the purpose that eliminate background data, dark data are in shorter increase appropriate
Exposure time obtains;CIS imaging sensor acquires image data using the program, can reach after calibrated and completely eliminates background number
According to image data consistency is preferable.
It is the flow diagram of the method for another image procossing provided in an embodiment of the present invention with reference to Fig. 2, Fig. 2.
As shown in Fig. 2, the method for described image processing includes:
Step 201, fixed AD gain parameter and constant-current source DC parameter, and AD offset parameter is set;
Step 202, first select AD gain parameter, then after AD offset parameter is set, then be arranged the constant-current source DC parameter and
The constant-current source GS parameter;
Preferably, described first to select AD gain parameter, then after AD offset parameter is set, then the constant-current source DC parameter is set
With the constant-current source GS parameter, comprising:
If blank sheet of paper is the acquisition background of CIS imaging sensor, constant-current source DC parameter is set and constant-current source GS parameter is maximum
Value, and different AD gain parameters are selected in the case where meeting default principle, the default principle will meet when being acquisition image
Image data mean value is in 0~255 adjustable range;
AD gain parameter after fixed selection, it is 0 that the AD offset parameter, which is arranged, the AD when obtaining the dark data
Offset parameter immobilizes;
When the CIS imaging sensor acquires image, the fixed constant-current source DC parameter adjusts different constant-current source GS
Parameter change exposure time, the constant-current source DC parameter selection need to meet the default principle, and the constant-current source GS parameter is chosen
It is required that the x in the updating formulai-diValue is 0;Wherein, the xiTo acquire raw image data;The diSecretly to count
According to.
Step 203, in the AD gain parameter of selection, the AD offset parameter, constant-current source DC parameter and constant-current source GS
Under parameter, the dark data are obtained by default LED duration collection, the bright data are collected by LED;
Step 204, image data is obtained, and according to default updating formula, the bright data and the dark data to described
Image is handled.
Wherein, the updating formula are as follows: y=((xi-di)×256)/(wi-di);
The y is image correcting data;The xiTo acquire raw image data;The wiFor bright data, lights led and obtain
It arrives;The diFor dark data, led is not closed and is obtained.
Specifically, as shown in figure 3, Fig. 3 is the image schematic diagram before a kind of correction provided in an embodiment of the present invention;Fig. 4 is
Image schematic diagram after a kind of correction provided in an embodiment of the present invention.
It is a kind of the functional block diagram of the device of image procossing provided in an embodiment of the present invention with reference to Fig. 5, Fig. 5.
As shown in figure 5, described device includes:
Setup module 501, for setting gradually AD gain parameter, AD offset parameter and constant-current source DC parameter;
Preferably, the setup module 501, is specifically used for:
The constant-current source DC parameter is set first and the constant-current source GS parameter is maximum value, and is meeting default principle
In the case of select the AD gain parameter;Secondly the setting AD offset parameter is 0;Then in the feelings for meeting the default principle
The constant-current source DC parameter is selected under condition;
The default principle will meet image data mean value in 0~255 adjustable range when being acquisition image.
Adjustment module 502 obtains bright data and dark data for adjusting constant-current source GS parameter;
Preferably, the adjustment module 502, is specifically used for:
Under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter, pass through setting the
One constant-current source GS parameter obtains the dark data, and the first constant-current source GS parameter meets the x in the default updating formulai-di
Value is 0;Wherein, the xiTo acquire raw image data;The diFor dark data.
Preferably, the adjustment module 502, also particularly useful for:
Under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter, pass through setting the
Two constant-current source GS parameters obtain the bright data, need to meet the default principle when choosing the second constant-current source GS parameter.
Processing module 503, for obtaining image data, and according to default updating formula, the bright data and the dark number
It is handled according to described image;
Preferably, the default updating formula are as follows:
Y=((xi-di)×256)/(wi-di);
Wherein, the y is image correcting data;The xiTo acquire raw image data;The wiFor bright data;It is described
diFor dark data.
Output module 504, for described image data after output calibration.
The embodiment of the present invention provides a kind of device of image procossing, sets gradually AD gain parameter, AD offset parameter and perseverance
Stream source DC parameter;It adjusts constant-current source GS parameter and obtains bright data and dark data;Image data is obtained, and public according to default correction
Formula, the bright data and the dark data handle described image;Described image data after output calibration.The present invention passes through
Increase the value of the dark data in updating formula to achieve the purpose that eliminate background data, dark data are in shorter increase appropriate
Exposure time obtains;CIS imaging sensor acquires image data with this solution, can reach after calibrated and completely eliminates background number
According to image data consistency is preferable.
Describe the technical principle of the embodiment of the present invention in conjunction with specific embodiments above.These descriptions are intended merely to explain this
The principle of inventive embodiments, and it cannot be construed to the limitation to protection scope of the embodiment of the present invention in any way.Based on herein
Explanation, those skilled in the art, which does not need to pay for creative labor, can associate the other specific of the embodiment of the present invention
Embodiment, these modes are fallen within the protection scope of the embodiment of the present invention.
Claims (8)
1. a kind of method of image procossing, which is characterized in that the described method includes:
Set gradually AD gain parameter, AD offset parameter and constant-current source DC parameter;
It adjusts constant-current source GS parameter and obtains bright data and dark data;
The adjusting constant-current source GS parameter obtains dark data, comprising:
It is permanent by setting first under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter
Stream source GS parameter obtains the dark data, and the first constant-current source GS parameter meets the x in default updating formulai-diValue is 0;Its
In, the xiTo acquire raw image data;The diFor dark data;
Image data is obtained, and described image data are carried out according to default updating formula, the bright data and the dark data
Processing;
Described image data after output calibration.
2. set gradually AD gain parameter the method according to claim 1, wherein described, AD offset parameter and
Constant-current source DC parameter, comprising:
The constant-current source DC parameter is set first and the constant-current source GS parameter is maximum value, and the case where meeting default principle
The lower selection AD gain parameter;Secondly the setting AD offset parameter is 0;Then in the case where meeting the default principle
Select the constant-current source DC parameter;
The default principle will meet image data mean value in 0~255 adjustable range when being acquisition image.
3. according to the method described in claim 2, it is characterized in that, the adjusting constant-current source GS parameter obtains bright data, comprising:
It is permanent by setting second under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter
Stream source GS parameter obtains the bright data, need to meet the default principle when choosing the second constant-current source GS parameter.
4. the method according to claim 1, wherein the default updating formula are as follows:
Y=((xi-di)×256)/(wi-di)
Wherein, the y is image correcting data;The xiTo acquire raw image data;The wiFor bright data;The diFor
Dark data.
5. a kind of device of image procossing, which is characterized in that described device includes:
Setup module, for setting gradually AD gain parameter, AD offset parameter and constant-current source DC parameter;
Adjustment module obtains bright data and dark data for adjusting constant-current source GS parameter;
The adjustment module, is specifically used for:
It is permanent by setting first under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter
Stream source GS parameter obtains the dark data, and the first constant-current source GS parameter meets the x in default updating formulai-diValue is 0;Its
In, the xiTo acquire raw image data;The diFor dark data;
Processing module, for obtaining image data, and according to default updating formula, the bright data and the dark data to described
Image data is handled;
Output module, for described image data after output calibration.
6. device according to claim 5, which is characterized in that the setup module is specifically used for:
The constant-current source DC parameter is set first and the constant-current source GS parameter is maximum value, and the case where meeting default principle
The lower selection AD gain parameter;Secondly the setting AD offset parameter is 0;Then in the case where meeting the default principle
Select the constant-current source DC parameter;
The default principle will meet image data mean value in 0~255 adjustable range when being acquisition image.
7. device according to claim 6, which is characterized in that the adjustment module, also particularly useful for:
It is permanent by setting second under the AD gain parameter of setting, the AD offset parameter and the constant-current source DC parameter
Stream source GS parameter obtains the bright data, need to meet the default principle when choosing the second constant-current source GS parameter.
8. device according to claim 5, which is characterized in that the default updating formula are as follows:
Y=((xi-di)×256)/(wi-di);
Wherein, the y is image correcting data;The xiTo acquire raw image data;The wiFor bright data;The diFor
Dark data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610822694.6A CN106231212B (en) | 2016-09-13 | 2016-09-13 | A kind of method and device of image procossing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610822694.6A CN106231212B (en) | 2016-09-13 | 2016-09-13 | A kind of method and device of image procossing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106231212A CN106231212A (en) | 2016-12-14 |
CN106231212B true CN106231212B (en) | 2019-06-07 |
Family
ID=58075060
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610822694.6A Active CN106231212B (en) | 2016-09-13 | 2016-09-13 | A kind of method and device of image procossing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106231212B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107147901A (en) * | 2017-05-02 | 2017-09-08 | 深圳怡化电脑股份有限公司 | A kind of sensor calibration method, device, equipment and storage medium |
CN107452122B (en) * | 2017-07-06 | 2019-09-20 | 深圳怡化电脑股份有限公司 | The ameliorative way of contact-type image sensor and its detection accuracy |
CN107277379B (en) * | 2017-08-14 | 2020-02-07 | 深圳怡化电脑股份有限公司 | Parameter configuration method and device |
CN107507328B (en) * | 2017-08-14 | 2019-10-11 | 深圳怡化电脑股份有限公司 | A kind of paper money discrimination method and device |
CN107707846B (en) * | 2017-10-12 | 2020-08-18 | 深圳怡化电脑股份有限公司 | CIS parameter correction method, device, equipment and storage medium |
CN110033414B (en) * | 2019-03-18 | 2020-12-29 | 华中科技大学 | Infrared image non-uniformity correction method and system based on averaging processing |
CN111541827B (en) * | 2020-03-26 | 2021-12-10 | 深圳怡化电脑股份有限公司 | Image correction method and device |
CN112135009B (en) * | 2020-11-25 | 2021-03-16 | 恒银金融科技股份有限公司 | Multichannel CIS image calibration method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0447871A3 (en) * | 1990-03-20 | 1992-11-04 | Fuji Photo Film Co., Ltd. | Method of correcting image signal |
CN103108107A (en) * | 2013-03-05 | 2013-05-15 | 广州广电运通金融电子股份有限公司 | Image processing device and image data correcting method thereof |
CN103997590A (en) * | 2014-06-13 | 2014-08-20 | 广州广电运通金融电子股份有限公司 | Image calibration method and device |
CN104680489A (en) * | 2015-02-11 | 2015-06-03 | 深圳怡化电脑股份有限公司 | Image correcting method and system |
-
2016
- 2016-09-13 CN CN201610822694.6A patent/CN106231212B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0447871A3 (en) * | 1990-03-20 | 1992-11-04 | Fuji Photo Film Co., Ltd. | Method of correcting image signal |
CN103108107A (en) * | 2013-03-05 | 2013-05-15 | 广州广电运通金融电子股份有限公司 | Image processing device and image data correcting method thereof |
CN103997590A (en) * | 2014-06-13 | 2014-08-20 | 广州广电运通金融电子股份有限公司 | Image calibration method and device |
CN104680489A (en) * | 2015-02-11 | 2015-06-03 | 深圳怡化电脑股份有限公司 | Image correcting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106231212A (en) | 2016-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106231212B (en) | A kind of method and device of image procossing | |
CN106331515B (en) | A kind of method and device of image procossing | |
EP4243359A3 (en) | Image distortion correction in a wireless terminal | |
WO2007064495A3 (en) | Adjusting digital image exposure and tone scale | |
CN103997633B (en) | A kind of method of multichannel ccd image splicing heterogeneity automatic calibration | |
CN101521755A (en) | Cmos image sensor reading circuit and reading method | |
TW200603625A (en) | Gradation attributes control according to characteristics of image | |
WO2009050972A1 (en) | Endoscopic apparatus and setting method thereof | |
CN104660766B (en) | The backlight adjusting method and device of a kind of mobile terminal | |
EP1599052A3 (en) | Imaging device, image processing method, and color area setting program | |
EP2536126A3 (en) | Image processing apparatus, image processing method, and program | |
EP2034716A3 (en) | Method of determining gain using output signals | |
CN109462918A (en) | A kind of LED driver and its implementation based on technology of Internet of things | |
CN105718922A (en) | Adaptive regulation method and device for iris identification | |
CN106878634A (en) | The compensation method of black level and device in a kind of image | |
DE602006005490D1 (en) | COMMUNICATION DEVICES WITH INTEGRATED, DIFFERENT FREQUENCY WORKING DIGITAL CAMERAS AND METHOD THEREFOR | |
EP3611363A3 (en) | Power system optimization | |
CN103592786B (en) | Liquid crystal module Auto-Flicker Self-regulation track method | |
CN103905738A (en) | High-dynamic-range image generation system and method | |
CN108709508A (en) | A kind of fry Size Measuring System and its method | |
CN105323493B (en) | Localized reinforcements, multiple-exposure image system and local enhancement methods | |
CN105704349A (en) | Single frame width dynamic enhancing method based on individual adjustment of clear zone and dark zone | |
EP1601186A3 (en) | Image-Capturing Apparatus And Computer-Readable Computer Program Product Including Image Processing Program | |
CN101996324B (en) | Dynamic sampling-based method for extracting laser spot | |
TWI265316B (en) | Method for calibrating the deviation of OECFs and apparatus thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |