CN100397907C - Bell pattern format based image processing method and apparatus - Google Patents

Bell pattern format based image processing method and apparatus Download PDF

Info

Publication number
CN100397907C
CN100397907C CNB2005100691373A CN200510069137A CN100397907C CN 100397907 C CN100397907 C CN 100397907C CN B2005100691373 A CNB2005100691373 A CN B2005100691373A CN 200510069137 A CN200510069137 A CN 200510069137A CN 100397907 C CN100397907 C CN 100397907C
Authority
CN
China
Prior art keywords
lattice point
image processing
green
current
processing method
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.)
Expired - Fee Related
Application number
CNB2005100691373A
Other languages
Chinese (zh)
Other versions
CN1671212A (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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2005100691373A priority Critical patent/CN100397907C/en
Publication of CN1671212A publication Critical patent/CN1671212A/en
Application granted granted Critical
Publication of CN100397907C publication Critical patent/CN100397907C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The present invention discloses a method and a device for image processing, which are based on a Bell pattern format. The method comprises the following steps: whether the current lattice point is a green lattice point or not is judged; an original value of the current lattice point is output under the condition that the current lattice point is the green lattice point; the original value of the current lattice point is abandoned under the condition that the current lattice point is not the green lattice point, and the value of the current lattice point is determined by calculating values of all green lattice points adjacent to the current lattice point in a weighted average mode and output. The present invention in the application having the only requirement for a gray level image can shorten processing time additionally increased owing to the generation of a color image in an intermediate step and reduce power consumption.

Description

Image processing method and device based on bell pattern format
Technical field
The present invention relates to a kind of image processing method and device, especially, relate to image processing method and device based on bell pattern (Bayer Pattern) form.
Background technology
Along with increasing mobile phone is equipped with colour imagery shot, the increasing application relevant with image also occurred.Wherein a kind of application is business card is taken pictures and to discern by mobile phone, and in this application, sensor devices carries out digitlization to image, the digital picture of output business card.
This moment, the form of digital picture generally comprised forms such as Bel, RGB24, YUV.The main flow form of sensor devices output is Bel on the low and middle-end mobile phone at present.With reference to Fig. 1, Fig. 1 is the schematic diagram of bell pattern format in the prior art, and wherein each point only provides a color component, R to represent redness, and G represents green, and B represents blueness.The arrangement mode of bell pattern fully takes into account the sensitiveness of people's vision to green light, and in all pixels, green lattice point accounts for 50%, and red and blue lattice point accounts for 25% respectively.
After the data of sensor devices output bell pattern format, obtain coloured image, need to generate the RGB24 form through interpolation process, two other color component that is about to lack on each location of pixels calculates.For example, on red lattice point, originally do not contain green and blue data, but will obtain green and blue component on the red lattice point with near the data this lattice point according to certain computing formula.With reference to Fig. 2, Fig. 2 is to the schematic diagram of red lattice point interpolation in the prior art.Suppose that current pixel point is R0, can ask two color component G0, B0 in addition of current pixel point by following formula, three color components on this pixel of polishing:
G0=(G1+G2+G3+G4)/4
B0=(B1+B2+B3+B4)/4
For another example, on green lattice point, need obtain redness and blue component on this lattice point with near the data this lattice point.With reference to Fig. 3, Fig. 3 is to the schematic diagram of green lattice point interpolation in the prior art.Suppose that current pixel point is G0, can ask two color component R0, B0 in addition of current pixel point by following formula:
R0=(R1+R2)/2
B0=(B1+B2)/2
And for example, on blue lattice point, need obtain redness and green component on this lattice point with near the data this lattice point.With reference to Fig. 4, Fig. 4 is to the schematic diagram of blue lattice point interpolation in the prior art.Suppose that current pixel point is B0, can ask two color component R0, G0 in addition of current pixel point by following formula:
R0=(R1+R2+R3+R4)/4
G0=(G1+G2+G3+G4)/4
Obtain three color components on each pixel like this, thereby obtain coloured image.
Above-mentioned interpolation process amount of calculation is bigger.And many business cards are black and white, represent both to have wasted processor resource, increased power consumption with the RGB24 form, have wasted memory space again, because the data volume of RGB24 is three times of Bel.
Moreover, on mobile phone, do to the business card of taking discern etc. further handle in, generally be that gray level image is operated.Thereby, need once more coloured image to be changed into gray level image, so that have only one-component on each pixel, represent brightness.Discern in this class application at business card, in fact only need gray level image.Like this, producing coloured image in intermediate steps has just additionally increased the processing time, has consumed the power supply that mobile phone stores, thereby there is no need fully.
Summary of the invention
The objective of the invention is to, shorten the processing time of above-mentioned extra increase, and reduce power consumption.
According to a first aspect of the invention, provide a kind of image processing method, may further comprise the steps: judge whether current lattice point is green lattice point based on bell pattern format; At current lattice point is under the situation of green lattice point, exports the initial value of this lattice point; And be not under the situation of green lattice point at current lattice point, give up the initial value of this lattice point, be weighted average calculating operation by value to each adjacent green lattice point of this lattice point, determine the value and the output of this lattice point.
In first aspect, preferably, adopt green light source to produce described image based on bell pattern format as the shooting light source.
Preferably, each weights of described weighted average computing are 0.25.
Preferably, described image processing method uses in mobile phone.
Preferably, described image processing method is used for business card and takes pictures.
According to a second aspect of the invention, provide a kind of image processing apparatus based on bell pattern format, described device comprises: the lattice point judgment means is used to judge whether current lattice point is green lattice point; The initial value output device, being used at current lattice point is under the situation of green lattice point, exports the initial value of this lattice point; And lattice values determines device, and being used at current lattice point is not under the situation of green lattice point, gives up the initial value of this lattice point, is weighted average calculating operation by the value to each adjacent green lattice point of this lattice point, determines the value and the output of this lattice point.
In second aspect, preferably, adopt green light source to produce described image based on bell pattern format as the shooting light source.
Preferably, each weights of described weighted average computing are 0.25.
Preferably, described image processing apparatus uses in mobile phone.
Preferably, described image processing apparatus is used for business card and takes pictures.
According to the present invention, based on some unit of bell pattern format, the color interpolation process in the middle of skipping, and directly interpolation obtains a width of cloth gray level image.Can shorten because of produce the extra processing time that increases of coloured image in intermediate steps, save processor resource, and reduce power consumption.
Description of drawings
Fig. 1 is the schematic diagram of bell pattern format in the prior art;
Fig. 2 is to the schematic diagram of red lattice point interpolation in the prior art;
Fig. 3 is to the schematic diagram of green lattice point interpolation in the prior art;
Fig. 4 is to the schematic diagram of blue lattice point interpolation in the prior art;
Fig. 5 is the form schematic diagram that only adopts green lattice point in the bell pattern format according to the present invention;
Fig. 6 is a gray level image interpolation schematic diagram of the present invention.
The implication that wherein identical letter representation is identical.For understanding the present invention better, the invention will be further described below in conjunction with the drawings and specific embodiments.
Embodiment
Present embodiment is that example illustrates the present invention with the gray level image interpolation method in the process of carrying out business card at mobile phone and taking pictures.Referring again to Fig. 1, in bell pattern format, each lattice point all has only data.Because green lattice point accounts for 50% of all lattice point sums, in order to simplify calculating, present embodiment only adopts the green lattice point in the bell pattern format.Directly give up on redness, the blue lattice point data need not, the data on promptly red, the blue lattice point are not participated in computing.
Because mobile phone cam is generally nearer apart from business card, under normal conditions, ambient lighting can both satisfy the requirement of shooting.When ambient lighting is dark, need a secondary light source on the mobile phone, when taking pictures, business card is thrown light on.Here preferably, in the selection of secondary light source, adopt green light source, like this data on redness, the blue lattice point understand smaller, directly give up they need not, do not compare with adopting green light source, can improve the quality of imaging.With reference to Fig. 5, Fig. 5 is the form schematic diagram that only adopts green lattice point in the bell pattern format according to the present invention, gives up the data on R, the B lattice point here, only the data on the G lattice point under the thorn.
After the data of sensor devices output bell pattern format, carry out interpolation according to following process: the lattice point judgment means judges whether current lattice point is green lattice point, if current lattice point is green lattice point, then the initial value output device is directly exported initial value; Otherwise four the adjacent lattice points in the upper and lower, left and right of current lattice point are inevitable all to be green lattice point, and lattice values determines that device is weighted the value of these four adjacent lattice points on average, with the value of result's output as current lattice point.
With reference to Fig. 6, Fig. 6 is a gray level image interpolation schematic diagram of the present invention.Suppose that current lattice point G0 is not green lattice point, the initial value of G0 be rejected need not, the value of its four lattice points in upper and lower, left and right is respectively G1, G2, G3, G4, can obtain the value G0 of current lattice point according to following formula:
G0=a1*G1+a2*G2+a3*G3+a4*G4
Wherein a1, a2, a3, a4 are respectively the weights of G1, G2, G3, G4.Each weights sum is 1.0, i.e. a1+a2+a3+a4=1.0, and a1, a2, a3, a4 are generally the numerical value between 0 to 1.0.Preferably, get a1=a2=a3=a4=0.25, this moment, G0=(G1+G2+G3+G4)/4 only need move to right two when the computer-internal computing, realized easily; Also desirable a1=1.0, a2=a3=a4=0, this moment, G0=G1 was equivalent to directly duplicate the value of adjacent lattice point on it; Also desirable a1=a2=0, a3=a4=0.5, this moment, G0=(G3+G4)/2 was equivalent to come average with the value of its adjacent lattice point in left and right sides.Determine after the G0, this result is placed on the current lattice point value and output as it.
So just obtain piece image, wherein each lattice point has only one-component, and all is green component values.Because what secondary light source adopted is green light source, so this width of cloth image can reflect the gray level image of object under normal optical is shone well.
Preamble is an example with the gray level image interpolation method in the process of carrying out business card at mobile phone and taking pictures, the description of property that the invention has been described.In addition, the present invention can be used in the application that other any portable type camera shot equipments handle the image with bell pattern format, and this is obvious to those skilled in the art.
Obviously, the present invention described here can have many variations, and this variation can not be thought and departs from the spirit and scope of the present invention.Therefore, the change that all it will be apparent to those skilled in the art all is included within the covering scope of these claims.

Claims (10)

1. image processing method based on bell pattern format may further comprise the steps:
Judge whether current lattice point is green lattice point;
At current lattice point is under the situation of green lattice point, exports the initial value of this lattice point; And
At current lattice point is not under the situation of green lattice point, gives up the initial value of this lattice point, is weighted summation operation by the value to each adjacent green lattice point of this lattice point, determines the value and the output of this lattice point, and wherein each weights sum is 1.0.
2. image processing method as claimed in claim 1 is characterized in that, adopts green light source to produce described image based on bell pattern format as the shooting light source.
3. image processing method as claimed in claim 1 is characterized in that, each weights of described weighted average computing are 0.25.
4. as each described image processing method in the claim 1 to 3, it is characterized in that described image processing method uses in mobile phone.
5. as each described image processing method in the claim 1 to 3, it is characterized in that described image processing method is used for business card and takes pictures.
6. image processing apparatus based on bell pattern format comprises:
The lattice point judgment means is used to judge whether current lattice point is green lattice point;
The initial value output device, being used at current lattice point is under the situation of green lattice point, exports the initial value of this lattice point; And
Lattice values is determined device, and being used at current lattice point is not under the situation of green lattice point, gives up the initial value of this lattice point, is weighted summation operation by the value to each adjacent green lattice point of this lattice point, determines the value and the output of this lattice point, and wherein each weights sum is 1.0.
7. image processing apparatus as claimed in claim 6 is characterized in that, adopts green light source to produce described image based on bell pattern format as the shooting light source.
8. image processing apparatus as claimed in claim 6 is characterized in that, each weights of described weighted average computing are 0.25.
9. as each described image processing apparatus in the claim 6 to 8, it is characterized in that described image processing apparatus uses in mobile phone.
10. as each described image processing apparatus in the claim 6 to 8, it is characterized in that described image processing apparatus is used for business card and takes pictures.
CNB2005100691373A 2005-05-11 2005-05-11 Bell pattern format based image processing method and apparatus Expired - Fee Related CN100397907C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100691373A CN100397907C (en) 2005-05-11 2005-05-11 Bell pattern format based image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100691373A CN100397907C (en) 2005-05-11 2005-05-11 Bell pattern format based image processing method and apparatus

Publications (2)

Publication Number Publication Date
CN1671212A CN1671212A (en) 2005-09-21
CN100397907C true CN100397907C (en) 2008-06-25

Family

ID=35042242

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100691373A Expired - Fee Related CN100397907C (en) 2005-05-11 2005-05-11 Bell pattern format based image processing method and apparatus

Country Status (1)

Country Link
CN (1) CN100397907C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100563302C (en) * 2007-08-22 2009-11-25 北京中星微电子有限公司 A kind of bad point self-adapted grid noise elimination device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999039509A1 (en) * 1998-01-29 1999-08-05 Koninklijke Philips Electronics N.V. Color signal interpolation
US20040032517A1 (en) * 1999-05-25 2004-02-19 Walmsley Simon Robert Method and apparatus for bayer mosaic image conversion
US20040263651A1 (en) * 2003-06-30 2004-12-30 Shin Kazunobu Method and system for printing images captured by a mobile camera telephone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999039509A1 (en) * 1998-01-29 1999-08-05 Koninklijke Philips Electronics N.V. Color signal interpolation
US6727945B1 (en) * 1998-01-29 2004-04-27 Koninklijke Philips Electronics N.V. Color signal interpolation
US20040032517A1 (en) * 1999-05-25 2004-02-19 Walmsley Simon Robert Method and apparatus for bayer mosaic image conversion
US20040263651A1 (en) * 2003-06-30 2004-12-30 Shin Kazunobu Method and system for printing images captured by a mobile camera telephone

Also Published As

Publication number Publication date
CN1671212A (en) 2005-09-21

Similar Documents

Publication Publication Date Title
CN107431760B (en) The image processing method and storage medium of photographic device, photographic device
US20220207680A1 (en) Image Processing Method and Apparatus
CN110136183B (en) Image processing method and device and camera device
US10602069B2 (en) Digital camera and display method of digital camera
CN104995911B (en) Image processing device, image capture device, filter generating device, image restoration method, and program
CN104704806B (en) Image processing apparatus, camera device and image processing method
CN105578006B (en) Imaging method, imaging device and electronic installation
CN106165390A (en) Image processing apparatus, photographic attachment, image processing method and program
CN104995912B (en) Camera head, image processing apparatus and image processing method
CN105075239B (en) Restore wave filter generating means and method, image processing apparatus and method, camera device and recording medium
CN105103534B (en) Photographic device and calibration method
CN105009563B (en) Restore wave filter generating means and method, image processing apparatus, camera device, recovery wave filter generation program and recording medium
CN105453539B (en) Image processing apparatus, photographic device and image processing method
KR20150142038A (en) Reference image selection for motion ghost filtering
CN104380727B (en) Image processing apparatus and image processing method
CN105432069A (en) Image processing device, image capture device, image processing method, and program
CN102754443A (en) Image processing device and image processing method
CN104205204A (en) Image display device and method
KR20190041586A (en) Electronic device composing a plurality of images and method
CN104797967B (en) Image pick-up device and focus control method
CN105578080B (en) Imaging method, imaging device and electronic device
CN106165392B (en) Image processing apparatus, camera and image processing method
CN105432068A (en) Imaging device, imaging method, and image processing device
CN105453540A (en) Image processing device, imaging device, image processing method, and program
CN110447223A (en) Image-forming component and photographic device

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080625

Termination date: 20120511