METHOD FOR CONVERTING AN IMAGE, DRIVER ASSISTANCE SYSTEM AND MOTOR VEHICLE
20170264788 · 2017-09-14
Assignee
Inventors
Cpc classification
H04N23/10
ELECTRICITY
H04N1/6005
ELECTRICITY
B60R2300/30
PERFORMING OPERATIONS; TRANSPORTING
B60R1/00
PERFORMING OPERATIONS; TRANSPORTING
H04N1/646
ELECTRICITY
International classification
B60R1/00
PERFORMING OPERATIONS; TRANSPORTING
H04N1/64
ELECTRICITY
Abstract
The invention relates to a method for converting (S1) an image (7) by means of an evaluation unit (4) of a motor vehicle (1), wherein the image (7) is captured from an environmental region (6) of a motor vehicle (1) by means of a camera (3) of the motor vehicle (1), and the image (7) includes an alpha channel (12) and at least one color channel in a predetermined color model, and the image (7) is converted into an alpha channel (12) and a Y channel (9) of a YUV color model and a U channel (10) of the YUV color model and a V channel (11) of the YUV color model, wherein in converting the image (7), the alpha channel (12) and the Y channel (9) and the U channel (10) and the V channel (11) are embedded in a converted image (8) of the image (7).
Claims
1. A method for converting an image by an evaluation unit of a motor vehicle, wherein the image is captured from an environmental region of a motor vehicle by a camera of the motor vehicle, the method comprising: providing the image with an alpha channel and at least one color channel in a predetermined color model; and converting the image into the alpha channel and a Y channel of a YUV color model, a U channel of the YUV color model and a V channel of the YUV color model, wherein, in converting the image, the alpha channel, the Y channel, end the U channel and the V channel are embedded in a converted image of the image provided as a two-dimensional matrix, wherein the alpha channel, the Y channel, the U channel, the V channel or a zero value of a pixel of the converted image is described by each element of the matrix, wherein in the converted image, a safety area void of information is disposed between the channels of the YUV color model and the alpha channel.
2. The method according to claim 1, wherein in the two-dimensional matrix, immediately at a column of the alpha channel, at least one column with zero values is disposed.
3. The method according to claim 1, characterized in that an RGB color model is described as the predetermined color model and an R channel, a G channel and/or a B channel are described as the at least one color channel.
4. The method according to claim 1, wherein the image is provided in an ARGB data format.
5. The method according to claim 1, wherein the converted image is provided in an extended YUV422 data format, which includes a YUV422 data format and the alpha channel.
6. The method according to claim 1, wherein the conversion is performed with a software and a digital signal processor in the evaluation unit.
7. The method according to claim 1, wherein that the converted image is further processed with an application-specific integrated circuit of the evaluation unit.
8. The method according to claim 7, wherein the converted image is transmitted to the application-specific integrated circuit with all of the channels at the same time.
9. The method according to claim 1, wherein the converted image is converted back into the predetermined color model after the conversion.
10. The method according to claim 1, wherein the converted image is scaled by the evaluation unit.
11. The method according to claim 10, wherein multiple of the converted images are transformed in parallel by the evaluation unit.
12. Driver assistance system comprising: a camera; and an evaluation unit configured to perform a method according to claim 1.
13. A motor vehicle with a driver assistance system according to claim 12.
Description
[0022] Below, embodiments of the invention are explained in more detail based on schematic drawings.
[0023] There show:
[0024]
[0025]
[0026]
[0027] In
[0028] The camera 3 can be a CMOS camera or else a CCD camera or any image capturing device, which is able to provide an image 7 of the environmental region 6 of the motor vehicle 1. Multiple such cameras 3 can also be employed. The camera 3 is a video camera, which continuously provides an image sequence of images 7. The image 7 is a frame. The evaluation unit 4 then processes the image sequence of the images 7 for example in real time.
[0029] The application-specific integrated circuit 4a is an electronic circuit, which is realized as an integrated circuit. The function of the application-specific integrated circuit 4a is thereby no longer variable.
[0030] The image 7 is for example present in an ARGB data format. This means that an alpha channel and an R channel and a B channel and a G channel are embedded in the image 7. The alpha channel is an additional channel, which stores a transparency or a translucency of the individual pixels of the image 7 in addition to brightness information and/or color information in raster graphics such as the image 7. A representation of the image 7 with the alpha channel on a background is for example referred to as alpha blending.
[0031] The image is converted preferably from the ARGB data format to an extended YUV422 data format by means of a color space transformation. Thus, the alpha channel and the R channel, which is used for the color red, and the G channel, which is used for the color green, and the B channel, which is used for the color blue, are converted into a converted image 8 of the image 7.
[0032]
[0033] The conversion means a different storage of the information of the image 7 in the converted image 8. With the different storage, for example, a new organization concept of the various channels and/or a decompression or compression can be associated, for example by combining redundant information of the image 7.
[0034]
[0035] In the embodiment according to
[0036] Adjoining to the safety area 13 void of information, the alpha channel 12 extends, which has as many columns as the image 7 or the converted image 8 has. The columns of the alpha channel 12 are separated by columns with a zero value 18 and for example have a width of each one pixel 17. The zero value 18 can for example be 0, however, other values are also conceivable, which indicate that this zero value 18 does not contain any information content of the converted image 8. Thus, the safety area 13 void of information is for example also provided with the zero value 18.
[0037] A data format 19 of the converted image 8 according to
[0038] The data format 19 or the extended YUV422 data format is preferably constructed as follows. First, there is a column of the Y channel 9, then a column of the U channel 10 follows, then a column of the Y channel 9, then a column of the V channel 11, then a column of the Y channel 9 again follows, and the procedure repeats until all of the columns of the converted image 8 for the Y channel 9 and the U channel 10 and the V channel 11 are passed or processed. Adjoining to the YUV channels 9, 10, 11, the safety area 13 void of information follows, which for example extends over four columns. Adjoining to the safety area 13 void of information on the other side than the YUV channels 9, 10, 11 the alpha channels 12 are disposed, which preferably are each separated by a column with zero values 18. This corresponds to a representation of the YUV422 data format, which is extended by the safety area 16 void of information and the alpha channel 12 or the columns of the alpha channel 12 and the columns with the zero values 18, which separate the columns of the alpha channel 12.
[0039] A conversion of the image 7 with for example the alpha channel 12 and the R channel and the B channel and the G channel to the converted image 8 with the alpha channel 12 and the YUV channels 9, 10, 11 can be mathematically described as follows.
[0040] The value of the alpha channel 12 each remains the same, that is the pixel 17 in the image 7 has the same value for the alpha channel 12 as the pixel 17 of the converted image 8. However, the RGB channels are converted. This can be effected as follows:
Y channel=0.299*R channel+0.587*G channel+0.114*B channel.
U channel=(B channel−Y channel)*0.493
V channel=(R channel−Y channel)*0.877
[0041] Furthermore, according to an embodiment, it is provided that the YUV color model is described as a YCbCr color model. Thus, the YCbCr color model can be described as follows:
Y channel=R channel*0.1226+G channel*0.7152+B channel*0.0722
Cb channel=0.5*(B channel−Y channel)/(1−0.0722)
Cr channel=0.5*(R channel−Y channel)/(1−Kr)
wherein Kr can for example be 0.299.
[0042] The equations for the color models are to be exemplarily understood and can be differently determined from application to application.
[0043] According to an embodiment, it is provided that the converted image 8 is transformed by means of an application-specific integrated circuit 4a of the evaluation unit 4 and finally, after transformation, is converted back into for example an ARGB data format. Due to the data format 19 of the converted image 8, all of the channels 9, 10, 11, 12 can be transmitted to the application-specific integrated circuit 4a of the evaluation unit 4 at the same time.
[0044] Furthermore, according to an embodiment, it is provided that multiple of the converted images 8 are combined or composed to a large converted image to thus transmit the large converted image at a time to the application-specific integrated circuit 4a. Thus, multiple of the converted images 8 can also be transmitted in parallel.