CN104144291A - Method for conversion between Bayer format data and equivalent same-structure brightness and chromatic aberration component data - Google Patents

Method for conversion between Bayer format data and equivalent same-structure brightness and chromatic aberration component data Download PDF

Info

Publication number
CN104144291A
CN104144291A CN201310175265.0A CN201310175265A CN104144291A CN 104144291 A CN104144291 A CN 104144291A CN 201310175265 A CN201310175265 A CN 201310175265A CN 104144291 A CN104144291 A CN 104144291A
Authority
CN
China
Prior art keywords
data
baeyer
conversion
formatted
formatted data
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.)
Granted
Application number
CN201310175265.0A
Other languages
Chinese (zh)
Other versions
CN104144291B (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.)
Ava Electronic Technology Co Ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201310175265.0A priority Critical patent/CN104144291B/en
Priority to CN201711451358.6A priority patent/CN107864366A/en
Publication of CN104144291A publication Critical patent/CN104144291A/en
Application granted granted Critical
Publication of CN104144291B publication Critical patent/CN104144291B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method for conversion between Bayer format data and equivalent same-structure brightness and chromatic aberration component data. The method involves a mutual conversion formula and an implementing method of the Bayer format data and equivalent same-structure brightness and chromatic aberration components. According to the method for conversion, when the brightness components and chromatic aberration components are used for image processing operations, operation processing is conducted with the minimum operand, and therefore hardware cost and power consumption cost can be reduced to the maximum degree.

Description

The conversion method of a kind of Baeyer formatted data and equivalent isostructure brightness color difference components data
Technical field
The present invention relates to a kind of colorful digital video tape recorder.
Background technology
The data of transducer output Baeyer (BAYER) form that colorful digital video camera adopts conventionally, by processing links thereafter, the data transaction of Baeyer form is become to RGB data, and in certain link, again RGB data transaction is become brightness-color difference components data (hereinafter referred to as YC bc rdata) because YC bc rdata have some unique conveniences in the processing of many images processing and video compression.RGB data and YC bc rthe conversion of data has formula to follow, and conventionally adopts the computing formula of luminance component value [0,255], color difference components value [128,127] in computer vision is used.
At some occasions, C b, C rcomponent is also referred to as U, V component.Without loss of generality, herein with C b, C runified representation.
RGB data and YC bc rthe conversion of data is normally carried out after the link that is converted to 24 RGB data by Baeyer formatted data, and after the computing of this link, data volume increases to original three times.Although some image processing, Video compression need to use YC bc rdata, but still need to adopt RGB data in links such as for example demonstrations, be therefore also necessary YC bc rdata are transformed into RGB data again.
Such multiple conversions operation has brought the increase of data volume, the sharp increase of computing expense, causes that manufacturing cost increases thereby cause resource overhead to increase; Thereby and power consumption increases the deterioration that causes product facility stability factor.
Summary of the invention
The object of this patent is to optimize the data structure of colorful digital video tape recorder, makes video tape recorder in keeping carrying out computing with Baeyer formatted data amount, can use data mode more easily.
If RGB data and YC bc rthe conversion of data is carried out before the link that is converted to 24 RGB data by Baeyer formatted data, can, in the case of the data volume of maintenance and Baeyer formatted data is constant, make subsequent treatment link can adopt YC bc rcomponent data carries out computing.
Baeyer formatted data has four components, G rrBG b, its arrangement mode as shown in Figure 1, therefore YC bc requal data volume and same structure for data acquisition, should be Y rc rc by b, as shown in Figure 2.
Due to Baeyer formatted data and Y rc rc by bdata have four components, therefore common RGB data and YC bc rthe conversion formula of data is not suitable for Baeyer formatted data and Y rc rc by bthe conversion of data.This method, according to the data structure characteristic of Baeyer formatted data, under the prerequisite of maintenance brightness color difference components characteristic, is derived by Baeyer formatted data to Y rc rc by bthe conversion computing formula of data:
Y r=0.587G r+0.299R+0.114B
C r=-0.2093G r+0.500R-0.0814B-0.2093G b
C b=-0.1656G r-0.1688R+0.500B-0.1656G b
Y b=0.299R+0.114B+0.587G b
And by Y rc rc by bdata are to the conversion computing formula of Baeyer formatted data:
G r=1.3518Y r-0.7142C r-0.3443C b-0.3518Y b
R=0.500Y r+1.4021C r+0.500Y b
B=0.500Y r+1.7720C b+0.500Y b
Y b=1.3518Y r-0.7142C r-0.3443C b-0.3518Y b
If with matrix representation, as shown in Figure 3.
Work as G r, R, B, G binterval while being [0,255], Y r, Y binterval be [0,255], C r, C binterval be [128,127]; Work as G r, R, B, G binterval while being [0,4095], Y r, Y binterval be [0,4095], C r, C binterval be [2048,2047].
Realize the technical scheme of above-mentioned purpose:
Baeyer formatted data, to a conversion method for equivalent isostructure brightness color difference components data, comprises input Baeyer formatted data, conversion core and output brightness color difference components data.Described input Baeyer formatted data is one group of data of arranging as shown in Figure 1, after being exported, after data receiver circuit receives, provides by transducer; Described conversion core is matrix as described in Figure 4; The brightness color difference components data of described output are arrangement mode data as shown in Figure 2.The Baeyer formatted data of input is arranged by vector form as shown in Figure 3 and conversion core is carried out with it to dot-product operation by capable, obtains brightness color difference components data as shown in Figure 2, and its quantity is identical with Baeyer formatted data with structure.
A kind of brightness color difference components data, to the isostructural Baeyer formatted data of equivalent conversion method, comprise input brightness color difference components data, reverse conversion core and output Baeyer formatted data.Described input brightness color difference components data are arrangement mode data as shown in Figure 2, and the module of being changed by need provides; Described reverse conversion core is matrix as described in Figure 5; Described output Baeyer formatted data is array data as shown in Figure 1.The brightness color difference components data of input as shown in Figure 3 vector form are arranged and reverse conversion core are carried out with it to dot-product operation by row, obtain Baeyer formatted data as shown in Figure 1.
Adopt technique scheme, the technique effect that the present invention is useful is:
(1) colorful digital video tape recorder carries out Digital Image Processing computing with minimum data volume, makes that colorful digital video tape recorder is simple in structure, power-dissipation-reduced, cost;
(2) Y rc rc by by in data r, Y bcomponent is the luminance component of view data, and the computational methods that video data compression computing and other Digital Image Processing computing can use brightness one chromatism data to separate under the prerequisite that keeps Baeyer format data structure and data volume are processed color digital image;
(3) when needed can be by Y after treatment as calculated rc rc by bdata transaction becomes Baeyer formatted data.
Embodiment
Conversion method and the execution mode of Baeyer formatted data and equivalent isostructure brightness color difference components data, as shown in Figure 6, comprise conversion core coefficient module 1, multiplication module 2, adder Module 3, control module 4.Baeyer formatted data is input to multiplication module 1, under the control of control module 4, conversion core coefficient module 2 is transported to coefficient multiplication module 1 successively, and successively itself and input data are carried out to computing by multiplication module 1, operation result is transported to successively adder Module 3 and carries out therein accumulating operation under the control of control module 4, and operation result is output as Y rc rc by bdata.
A kind of Y rc rc by bdata, to Baeyer formatted data conversion method and execution mode, as shown in Figure 7, comprise reverse conversion core coefficient module 1, multiplication module 2, adder Module 3, control module 4.Y rc rc by bdata are input to multiplication module 1, under the control of control module 4, reverse conversion core coefficient module 2 is transported to coefficient multiplication module 1 successively, and successively itself and input data are carried out to computing by multiplication module 1, operation result is transported to successively adder Module 3 and carries out therein accumulating operation under the control of control module 4, and operation result is output as Baeyer formatted data.
Brief description of the drawings
Fig. 1 is Baeyer formatted data G rrBG barrangement mode.
Fig. 2 is Y rc rc by bthe arrangement mode of data.
Fig. 3 is Baeyer formatted data and Y rc rc by bdata are the computing formula of conversion mutually.
Fig. 4 is that Baeyer formatted data is to Y rc rc by bthe conversion core of data.
Fig. 5 is Y rc rc by bdata are to the conversion core of Baeyer formatted data.
Fig. 6 is that Baeyer formatted data is to Y rc rc by bthe enforcement block diagram of data transaction.
Fig. 7 is Y rc rc by bblock diagram is implemented in data to the conversion of Baeyer formatted data.

Claims (7)

1. Baeyer formatted data, to a conversion method for equivalent isostructure brightness color difference components data, is characterized in that, converts Baeyer formatted data to Y rc rc by bformatted data.
2. Baeyer formatted data, to a conversion method for equivalent isostructure brightness color difference components data, is characterized in that, by Y rc rc by bformatted data converts Baeyer formatted data to.
3. a kind of Baeyer formatted data as described in claim 1,2, to the conversion method of equivalent isostructure brightness color difference components data, is characterized in that, the data structure before and after conversion is identical.
4. a kind of Baeyer formatted data as described in claim 1,2, to the conversion method of equivalent isostructure brightness color difference components data, is characterized in that, the data volume before and after conversion is identical.
5. a kind of Baeyer formatted data as described in claim 1,2, to the conversion method of equivalent isostructure brightness color difference components data, is characterized in that, before and after changing, has a kind of data into Baeyer formatted data.
6. a kind of Baeyer formatted data as claimed in claim 1, to the conversion method of equivalent isostructure brightness color difference components data, is characterized in that, as changes front data into Baeyer formatted data, and after changing, data are Y rc rc by bformatted data, conversion formula is:
Yr=0.587G r+0.299R+0.114B
C r=-0.2093G r+0.500R-0.0814B-0.2093G b
C b=-0.1656G r-0.1688R+0.500B-0.1656G b
Y b=0.299R+0.114B+0.587G b
7. a kind of Baeyer formatted data as claimed in claim 2, to the conversion method of equivalent isostructure brightness color difference components data, is characterized in that, as changes front data into Y rc rc by bformatted data, after changing, data are Baeyer formatted data, conversion formula is:
G r=1.3518Y r-0.7142C r-0.3443C b-0.3518Y b
R=0.500Y r+1.4021C r+0.500Y b
B=0.500Y r+1.7720C b+0.500Y b
Y b=1.3518Y r-0.7142C r-0.3443C b-0.3518Y b
CN201310175265.0A 2013-05-08 2013-05-08 A kind of conversion method of Baeyer formatted data with equivalent with structure luminance color component component data Active CN104144291B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310175265.0A CN104144291B (en) 2013-05-08 2013-05-08 A kind of conversion method of Baeyer formatted data with equivalent with structure luminance color component component data
CN201711451358.6A CN107864366A (en) 2013-05-08 2013-05-08 A kind of data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310175265.0A CN104144291B (en) 2013-05-08 2013-05-08 A kind of conversion method of Baeyer formatted data with equivalent with structure luminance color component component data

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201711451358.6A Division CN107864366A (en) 2013-05-08 2013-05-08 A kind of data transfer device

Publications (2)

Publication Number Publication Date
CN104144291A true CN104144291A (en) 2014-11-12
CN104144291B CN104144291B (en) 2018-04-13

Family

ID=51853354

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201711451358.6A Pending CN107864366A (en) 2013-05-08 2013-05-08 A kind of data transfer device
CN201310175265.0A Active CN104144291B (en) 2013-05-08 2013-05-08 A kind of conversion method of Baeyer formatted data with equivalent with structure luminance color component component data

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201711451358.6A Pending CN107864366A (en) 2013-05-08 2013-05-08 A kind of data transfer device

Country Status (1)

Country Link
CN (2) CN107864366A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891138A (en) * 2018-09-10 2020-03-17 杭州萤石软件有限公司 Black light full-color realization method and black light full-color camera

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050206784A1 (en) * 2001-07-31 2005-09-22 Sha Li Video input processor in multi-format video compression system
US20080044088A1 (en) * 2006-08-21 2008-02-21 Fujitsu Limited Image processing device and method
CN101193314A (en) * 2006-11-30 2008-06-04 北京思比科微电子技术有限公司 Image processing device and method for image sensor
CN101287130A (en) * 2007-04-12 2008-10-15 三星电子株式会社 Apparatus and method for generating wide colour gamut signal in image capturing device
CN101977330A (en) * 2010-11-12 2011-02-16 北京空间机电研究所 Bayer image compression method based on YUV conversion

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7589858B2 (en) * 2002-06-18 2009-09-15 Nokia Corporation Image processing apparatus and method, image output unit, as well as digital camera and portable terminal using the image processing apparatus and output unit
EP1530377A4 (en) * 2002-06-28 2006-05-10 Nokia Corp Information terminal
JP4683994B2 (en) * 2005-04-28 2011-05-18 オリンパス株式会社 Image processing apparatus, image processing method, electronic camera, scanner
CN102158714B (en) * 2010-02-11 2013-04-17 昆山锐芯微电子有限公司 Method and device for enhancing image edge based on RGB (Red, Green and Blue) format of Bayer domain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050206784A1 (en) * 2001-07-31 2005-09-22 Sha Li Video input processor in multi-format video compression system
US20080044088A1 (en) * 2006-08-21 2008-02-21 Fujitsu Limited Image processing device and method
CN101193314A (en) * 2006-11-30 2008-06-04 北京思比科微电子技术有限公司 Image processing device and method for image sensor
CN101287130A (en) * 2007-04-12 2008-10-15 三星电子株式会社 Apparatus and method for generating wide colour gamut signal in image capturing device
CN101977330A (en) * 2010-11-12 2011-02-16 北京空间机电研究所 Bayer image compression method based on YUV conversion

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891138A (en) * 2018-09-10 2020-03-17 杭州萤石软件有限公司 Black light full-color realization method and black light full-color camera

Also Published As

Publication number Publication date
CN104144291B (en) 2018-04-13
CN107864366A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
US11429852B2 (en) Convolution acceleration and computing processing method and apparatus, electronic device, and storage medium
US20180350322A1 (en) Scalable Chromatic Adaptation
CN101009851B (en) Image processing method and its device
US20160358536A1 (en) Data acquisition module and method, data processing unit, driver and display device
US8717462B1 (en) Camera with color correction after luminance and chrominance separation
CN110536078A (en) Handle the method and dynamic visual sensor of the data of dynamic visual sensor
CN107547904B (en) FPGA-based YUV data 8x8block conversion method and device in video compression
US8942473B2 (en) Image processing method and display apparatus
CN102280096A (en) Method for combining image scaling and color space switching
WO2016095474A1 (en) Display data transmission method and apparatus, display panel drive method and apparatus
US10127887B2 (en) Acceleration of color conversion
CN111193917B (en) Operation method, device and related product
CN109711540B (en) Computing device and board card
CN104144291A (en) Method for conversion between Bayer format data and equivalent same-structure brightness and chromatic aberration component data
CN104639925A (en) Method and device for converting image from RGB (red, green and blue) signals to RGBW (red, green, blue and white) signals
CN101640795A (en) Video decoding optimization method and device
CN101483768B (en) Electronic apparatus
CN110113590A (en) A kind of conversion method and device of image color space
CN113554721B (en) Image data format conversion method and device
US11501418B2 (en) Multi-level lookup tables for control point processing and histogram collection
US20120246364A1 (en) Data processing apparatus and data processing method
CN111382856B (en) Data processing device, method, chip and electronic equipment
CN109636863B (en) Color space conversion circuit
US8966145B2 (en) Data conversion apparatus and method
CN101859429A (en) Embedded image processing method and device for machine vision

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Yang Lifa

Inventor before: Zhang Chunlan

CB03 Change of inventor or designer information
TA01 Transfer of patent application right

Effective date of registration: 20171227

Address after: 226600 Haian County, Nantong, Jiangsu, the Millennium Garden West villa district 21 3

Applicant after: Yang Lifa

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Nanshan Road 1312 sunshine court

Applicant before: Zhang Chunlan

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180315

Address after: 510000 room 15, section 501, two street, Luogang District science Avenue science Avenue, Luogang District Science City, Guangzhou City, Guangdong

Applicant after: Guangzhou Ava Electronic Technology Co., Ltd.

Address before: 226600 Haian County, Nantong, Jiangsu, the Millennium Garden West villa district 21 3

Applicant before: Yang Lifa

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant