CN109472843A - A kind of auxiliary line generation method - Google Patents
A kind of auxiliary line generation method Download PDFInfo
- Publication number
- CN109472843A CN109472843A CN201811267302.XA CN201811267302A CN109472843A CN 109472843 A CN109472843 A CN 109472843A CN 201811267302 A CN201811267302 A CN 201811267302A CN 109472843 A CN109472843 A CN 109472843A
- Authority
- CN
- China
- Prior art keywords
- pixel
- auxiliary line
- file
- bytes
- byte
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R1/00—Optical viewing arrangements; Real-time viewing arrangements for drivers or passengers using optical image capturing systems, e.g. cameras or video systems specially adapted for use in or on vehicles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
Abstract
The present invention provides a kind of auxiliary line generation methods, and described method includes following steps: step a: obtaining the RGBA file of rear tyre trajectory line under different directions disk corner, the RGBA file is the file for recording the Pixel Information of auxiliary line on vehicle-carrying display screen;Step b: the RGBA file is converted into the user-defined file with custom file format;Step c: show that program parses the user-defined file by auxiliary line;And step d: dynamic auxiliary line chart is generated on vehicle-carrying display screen, wherein the user-defined file is made of multiple trunk blocks, and each trunk block is used to record the information of the auxiliary line pixel of every a line on the vehicle-carrying display screen.Due to having used new customized compressed file format, treatment effeciency can be improved, system performance can be improved well, the stability of vehicle entertainment system operation is improved, to effectively improve the stability and safety parked, in reversing process.
Description
Technical field
The present invention relates to a kind of auxiliary line generation methods.
Background technique
Backsight reversing image module (RVC) has become the standard configuration of each car at present, according to the different of wheel steering
Angle, generates different dynamic auxiliary line charts and carrys out assist driver and be safely completed reversing or parking manoeuvres.It is current in RVC module
In dynamic auxiliary line be all according to different vehicles, need by calibration.Calibration way traditional at present, is counterclockwise and suitable
Hour hands rotate different angles respectively, and each rotational angle is obtained by the steering wheel angle that CAN signal is returned, then different
Under angle, the marking that lower or so rear wheel crosses is drawn, the rear wheel trajectory line under the angle is obtained according to the wheel marking, then will
Art designing's mapping through the phase later after these trajectory diagrams arrange, forms a sheet by a sheet dynamic auxiliary line picture, for backsight reverse image RVC
Module calls the display for realizing dynamic auxiliary line.The auxiliary line of high definition in order to obtain, some original texts of high-resolution pictures RGBA
The capacity of part is very big, and with the citing of 1280*720 resolution ratio, the size of RGBA file is 1280*720*4=3600KB, and system is aobvious
During diagram piece, a large amount of CPU and memory can be consumed, or even sometimes in picture loading procedure, will lead to system crash
The problem of, the safety for affecting driving serious in this way.If reducing the size of picture, the resolution ratio of picture, shadow will be reduced
Ring the clarity of auxiliary line.
Therefore, it is necessary to a kind of new auxiliary line generation methods, can be in the case where not influencing auxiliary line clarity, very well
Ground solve picture loading procedure in largely consume the performance issue of CPU, thus reach improve systematic entirety energy, improve reversing or
The purpose of stability and safety during parking.
Summary of the invention
The present invention provides a kind of auxiliary line generation method, RGBA file format compression is converted to new make by oneself by this method
The file format of justice, the Pixel Information of the outer portion without handling auxiliary line in large quantities greatly reduce the size of file,
Substantially increase the system performance in file implementation procedure.
A kind of novel auxiliary line generation method of the invention, described method includes following steps:
Step a: obtaining the RGBA file of rear tyre trajectory line under different directions disk corner, and the RGBA file is record vehicle
Carry the file of the Pixel Information of auxiliary line on display screen;
Step b: the RGBA file is converted into the user-defined file with custom file format;
Step c: showing that program parses the user-defined file by auxiliary line, and
Step d: generating dynamic auxiliary line chart on vehicle-carrying display screen,
Wherein, the user-defined file is made of multiple trunk blocks, and each trunk block is described vehicle-mounted for recording
The information of the auxiliary line pixel of every a line, the axis of ordinates of vehicle-carrying display screen is indicated with Y on display screen, indicates vehicle-mounted aobvious with X
The axis of abscissas of display screen, (X, Y) indicate the coordinate value of each pixel of the auxiliary line on the vehicle-carrying display screen, wherein
(X1, Y1) indicates the coordinate value of the first pixel in the upper left corner of the auxiliary line on the vehicle-carrying display screen, it is specified that each pixel
Information occupy 2 bytes, byte is used to indicate the color of the pixel, another byte is for indicating the pixel
The format of transparency alpha value, n-th of trunk block is customized as follows:
[value of ordinate Yn, 2 bytes] [all byte numbers of the calculating until next line Yn+1 from that point on, 2
Byte] [value of abscissa X1,2 bytes] [started with X1 along the occupied total bytes of the continuous pixel of axis of abscissas, 2
Byte] and [X1 column start the information of each pixel in subsequent continuous pixel, 2 byte * pixel quantities] [value of abscissa X2,2
A byte] [starting the subsequent continuous occupied total bytes of pixel, 2 bytes with X2 column] [X2 column start subsequent continuous
The information of each pixel in pixel, 2 byte * pixel quantities] [value of abscissa X3,2 bytes] [start subsequent company with X3 column
The occupied total bytes of continuous pixel, 2 bytes] [information of each pixel in the subsequent continuous pixel of X3 column beginning, 2
Byte * pixel quantity] [value of abscissa X4,2 bytes] [start the subsequent continuous occupied total byte of pixel with X4 column
Number, 2 bytes] [X4 column start the information of each pixel in subsequent continuous pixel, 2 byte * pixel quantities],
In above-mentioned format, the first item in bracket [] is content, and the 2nd is the occupied byte number of first item content;
Wherein, n is the positive integer more than or equal to 1.
Preferably, the auxiliary line includes 2 dynamic auxiliary lines and 2 static auxiliary lines, and the dynamic auxiliary line is divided into
Left and right rear wheel each 1.
Preferably, the color of the dynamic auxiliary line include green, it is yellow, orange and red.
The invention has the following beneficial effects: due to having used new customized compressed file format, place can be improved
Efficiency is managed, system performance can be improved well, the stability of vehicle entertainment system operation is improved, to effectively improve pool
Stability and safety in vehicle, reversing process.
Detailed description of the invention
Fig. 1 is the schematic diagram of auxiliary line on vehicle-carrying display screen.
Fig. 2 is the dynamic auxiliary line schematic diagram for starting amplification in Fig. 1 at X1 coordinate.
Fig. 3 is the flow chart of auxiliary line generation method of the invention.
Specific embodiment
Embodiments of the present invention are explained below with reference to Figure of description.It should be noted that this specification
Involved in embodiment be not it is exhausted, do not represent unique embodiment of the invention.Corresponding embodiment is below
In order to clearly illustrate the summary of the invention of the invention patent, not to the restriction to embodiments thereof.For the common of the field
For technical staff, various forms of variations and change can also be made on the basis of the embodiments such as this explanation, it is all to belong to
Technical concept and summary of the invention of the invention and obvious changes or variations are also within protection scope of the present invention.
A kind of auxiliary line generation method of the invention, described method includes following steps:
Step a: obtaining the RGBA file of rear tyre trajectory line under different directions disk corner, and the RGBA file is record vehicle
Carry the file of the Pixel Information of auxiliary line;Step b: the RGBA file is converted into having the customized of custom file format
File, referred to as rawdata file;Step c: show that program parses the user-defined file by auxiliary line;And step d:
Dynamic auxiliary line chart is generated on vehicle-carrying display screen.
In above-mentioned steps a, the RGBA text of rear tyre trajectory line under different directions disk corner can be obtained with existing method
Part.
In step b, the user-defined file is made of multiple trunk blocks, and each trunk block is for recording the vehicle
The information for carrying the auxiliary line pixel of every a line on display screen, the axis of ordinates of vehicle-carrying display screen is indicated with Y, indicates vehicle-mounted with X
The axis of abscissas of display screen, (X, Y) indicate the coordinate value of each pixel of the auxiliary line on the vehicle-carrying display screen, wherein
(X1, Y1) indicates the coordinate value of the first pixel in the upper left corner of the auxiliary line on the vehicle-carrying display screen, it is specified that each pixel
Information occupy 2 bytes, byte is used to indicate the color of the pixel, another byte is for indicating the pixel
Transparency alpha value.
The format of n-th of trunk block is customized as follows:
[value of ordinate Yn, 2 bytes] [all byte numbers of the calculating until next line Yn+1 from that point on, 2
Byte] [value of abscissa X1,2 bytes] [started with X1 along the occupied total bytes of the continuous pixel of axis of abscissas, 2
Byte] [starting the information of each pixel in the continuous pixel of axis of abscissas, 2 byte * pixel quantities with X1] [abscissa X2
Value, 2 bytes] [starting subsequent continuous occupied total bytes of pixel, 2 bytes with X2 column] [started with X2 along cross
The information of each pixel in the continuous pixel of reference axis, 2 byte * pixel quantities] [value of abscissa X3,2 bytes] [with X3
Column start the subsequent continuous occupied total bytes of pixel, 2 bytes] [started along the continuous pixel of axis of abscissas with X3
Each pixel information, 2 byte * pixel quantities] [value of abscissa X4,2 bytes] [start subsequent continuous picture with X4 column
The occupied total bytes of element, 2 bytes] [start the information of each pixel in the continuous pixel of axis of abscissas with X4,2
Byte * pixel quantity].
In above-mentioned format, the first item in bracket [] is content, and the 2nd is the occupied byte number of first item content.
N is the positive integer more than or equal to 1 in format.As n=1, i.e. the auxiliary of the 1st row on the 1st trunk block expression vehicle-carrying display screen
The information of line pixel.[value of ordinate Yn, 2 bytes] are indicated with 2 bytes (16 bit) Lai Jilu first in format
Capable ordinate value Y1.Here it is considered that the display resolution of vehicle entertainment system is 1280*720, abscissa is defined as
X, ordinate are defined as Y, it is therefore desirable to which 2 bytes (0~65525) indicate Y-coordinate value, are similarly also required to 2 bytes and carry out table
Show X-coordinate value.
[calculating all byte numbers until next line Yn+1,2 bytes from that point on] in format indicates the trunk
All byte numbers in addition to being previously used for indicating 2 bytes of value of ordinate Yn of block.
In format, [value of abscissa X1,2 bytes] indicate 2 bytes (16 bit) Lai Jilu abscissa value
X1.[being started with X1 along the occupied total bytes of the continuous pixel of axis of abscissas, 2 bytes] indicates with 2 byte (16
Bit) Lai Jilu is started with X1 along the occupied total bytes of the continuous pixel of axis of abscissas.For example, being started with X1 along abscissa
Axis totally 5 continuous image vegetarian refreshments, that total bytes is 5*2=10, since decimal number " 10 " is expressed as binary number
" 1010 " are recorded with 2 bytes, then are " 0000000000001010 " (16).
In format, [start the information of each pixel in the continuous pixel of axis of abscissas, 2 byte * pixel numbers with X1
Amount], first item is the specifying information of each pixel, including color and transparency in [], and Section 2 is these information of first item
The byte number occupied altogether.For example, starting totally 5 continuous image vegetarian refreshments with X1, then just recording this 5 pictures respectively with 10 bytes
The information of vegetarian refreshments.
In format, the definition of X2, X3, X4 and X1 are identical.X1~X4 is to indicate auxiliary line in Yn row from left to right
Four pixels, as shown in Figure 2.Specifically, the auxiliary line inside general RVC module is all by two static auxiliary line (left and right
Each one of rear-wheel) and two dynamic auxiliary line (each one of left and right rear-wheel) compositions, dynamic auxiliary line can be according to steering wheel angle not
Disconnected changes, and is dynamic auxiliary line, another two as static auxiliary lines in Fig. 1 as shown in two curves of Fig. 1.Fig. 1
Shown in Y1 row X1~X4 be indicate four articles of auxiliary lines Y1 row first pixel from left to right coordinate value.Fig. 2 is Fig. 1
Start the dynamic auxiliary line schematic diagram of amplification at middle X1 coordinate.As shown in Fig. 2, X1 starts have continuous 5 pictures along axis of abscissas
Vegetarian refreshments.
The color of the dynamic auxiliary line includes green, yellow, orange and red.It can be obtained with the method for index.
In step b, the user-defined file (rawdata that can be invented RGBA file conversion cost by known software
File).
In computer, the index of color:
Above-mentioned { } is array, indicates different colors.If there is color not inside, required for oneself can also adding
Color.
Traditional RGBA file is and of the invention new for describing picture color space information all of the above
Rawdata file only records the pixel dot format of each auxiliary line for needing to draw by new algorithm, other than auxiliary line
Color space information part is not dealt with.From the point of view of 1280*720 resolution ratio, RGBA file size originally is 1280*720*4
=3600KB, the file size after converting through the invention greatly reduce 2 orders of magnitude into 36KB.Then pass through auxiliary again
Line shows that program parses the new user-defined file (rawdata file) of the compression, and on vehicle-carrying display screen required for generation
Dynamic assist line chart.In the case that the present invention maintains resolution ratio or the 1280*720 of original picture, considerably reduce
The size of file to substantially increase the system performance in file implementation procedure, and does not influence the clarity of picture.
Obviously, those of ordinary skill in the art it should be appreciated that more than embodiment be intended merely to illustrate this
Invention, and be not used as limitation of the invention, as long as in spirit of the invention, to embodiment described above
Variation, modification will all fall in claims of the present invention range.
Claims (3)
1. a kind of auxiliary line generation method, which is characterized in that described method includes following steps:
Step a: obtaining the RGBA file of rear tyre trajectory line under different directions disk corner, and the RGBA file is to record vehicle-mounted show
The file of the Pixel Information of auxiliary line in display screen;
Step b: the RGBA file is converted into the user-defined file with custom file format;
Step c: showing that program parses the user-defined file by auxiliary line, and
Step d: generating dynamic auxiliary line chart on vehicle-carrying display screen,
Wherein, the user-defined file is made of multiple trunk blocks, and each trunk block is for recording the car-mounted display
The information of the auxiliary line pixel of every a line, the axis of ordinates of vehicle-carrying display screen is indicated with Y on screen, indicates vehicle-carrying display screen with X
Axis of abscissas, (X, Y) indicates the coordinate value of each pixel of the auxiliary line on the vehicle-carrying display screen, wherein (X1,
Y1) indicate the coordinate value of the first pixel in the upper left corner of the auxiliary line on the vehicle-carrying display screen, it is specified that each pixel letter
Breath occupies 2 bytes, and a byte is used to indicate the color of the pixel, another byte is for indicating the transparent of the pixel
Alpha value is spent, the format of n-th of trunk block is customized as follows:
[value of ordinate Yn, 2 bytes] [calculate all byte numbers until next line Yn+1,2 words from that point on
Section] [value of abscissa X1,2 bytes] [started with X1 along the occupied total bytes of the continuous pixel of axis of abscissas, 2 words
Section] and [X1 column start the information of each pixel in subsequent continuous pixel, 2 byte * pixel quantities] [value of abscissa X2,2
Byte] [starting the subsequent continuous occupied total bytes of pixel, 2 bytes with X2 column] [X2 column start subsequent continuous picture
The information of each pixel in element, 2 byte * pixel quantities] [value of abscissa X3,2 bytes] [started subsequent continuous with X3 column
The occupied total bytes of pixel, 2 bytes] [X3 column start the information of each pixel in subsequent continuous pixel, 2 words
Save * pixel quantity] and [value of abscissa X4,2 bytes] [it is arranged with X4 and starts the subsequent continuous occupied total bytes of pixel, 2
A byte] [X4 column start the information of each pixel in subsequent continuous pixel, 2 byte * pixel quantities],
In above-mentioned format, the first item in bracket [] is content, and the 2nd is the occupied byte number of first item content;Wherein,
N is the positive integer more than or equal to 1.
2. auxiliary line generation method according to claim 1, which is characterized in that the auxiliary line includes that 2 dynamics assist
Line and 2 static auxiliary lines, the dynamic auxiliary line are divided into left and right rear wheel each 1.
3. auxiliary line generation method according to claim 2, which is characterized in that the color of the dynamic auxiliary line includes green
It is color, yellow, orange and red.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811267302.XA CN109472843B (en) | 2018-10-29 | 2018-10-29 | Auxiliary line generation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811267302.XA CN109472843B (en) | 2018-10-29 | 2018-10-29 | Auxiliary line generation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109472843A true CN109472843A (en) | 2019-03-15 |
CN109472843B CN109472843B (en) | 2022-09-16 |
Family
ID=65666181
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811267302.XA Active CN109472843B (en) | 2018-10-29 | 2018-10-29 | Auxiliary line generation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109472843B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4736201A (en) * | 1985-02-08 | 1988-04-05 | Hitachi, Ltd. | High speed image drawing method and apparatus therefor |
US4847691A (en) * | 1986-09-19 | 1989-07-11 | Questech Limited | Processing of video image signals |
CN103786662A (en) * | 2012-10-31 | 2014-05-14 | 上海博泰悦臻电子设备制造有限公司 | Method and device for generating car backing assisting line |
US20170339391A1 (en) * | 2016-05-19 | 2017-11-23 | Avago Technologies General Ip (Singapore) Pte. Ltd. | 360 degree video system with coordinate compression |
CN107600008A (en) * | 2017-09-07 | 2018-01-19 | 沈阳中科创达软件有限公司 | Generation method, device, mobile unit and the storage medium for boost line of moving backward |
CN107878561A (en) * | 2017-09-26 | 2018-04-06 | 惠州市德赛西威汽车电子股份有限公司 | A kind of dynamic reverse trajectory discharge drawing method and its device |
CN108052908A (en) * | 2017-12-15 | 2018-05-18 | 郑州日产汽车有限公司 | Track keeping method |
CN108248688A (en) * | 2016-12-29 | 2018-07-06 | 长城汽车股份有限公司 | Auxiliary line setting method of moving backward and reversing aid system |
-
2018
- 2018-10-29 CN CN201811267302.XA patent/CN109472843B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4736201A (en) * | 1985-02-08 | 1988-04-05 | Hitachi, Ltd. | High speed image drawing method and apparatus therefor |
US4847691A (en) * | 1986-09-19 | 1989-07-11 | Questech Limited | Processing of video image signals |
CN103786662A (en) * | 2012-10-31 | 2014-05-14 | 上海博泰悦臻电子设备制造有限公司 | Method and device for generating car backing assisting line |
US20170339391A1 (en) * | 2016-05-19 | 2017-11-23 | Avago Technologies General Ip (Singapore) Pte. Ltd. | 360 degree video system with coordinate compression |
CN108248688A (en) * | 2016-12-29 | 2018-07-06 | 长城汽车股份有限公司 | Auxiliary line setting method of moving backward and reversing aid system |
CN107600008A (en) * | 2017-09-07 | 2018-01-19 | 沈阳中科创达软件有限公司 | Generation method, device, mobile unit and the storage medium for boost line of moving backward |
CN107878561A (en) * | 2017-09-26 | 2018-04-06 | 惠州市德赛西威汽车电子股份有限公司 | A kind of dynamic reverse trajectory discharge drawing method and its device |
CN108052908A (en) * | 2017-12-15 | 2018-05-18 | 郑州日产汽车有限公司 | Track keeping method |
Non-Patent Citations (1)
Title |
---|
冉光伟 等: "乘用车动态倒车辅助线设计", 《汽车零部件》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109472843B (en) | 2022-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20050212806A1 (en) | Graphics engine converting individual commands to spatial image information, and electrical device and memory incorporating the graphics engine | |
CN101908216B (en) | Method and device for realizing vector fonts | |
CN102930575A (en) | Method and device for drawing auxiliary graphs and information terminal | |
JP3306746B2 (en) | Display graphics adapter and method of storing pixel data in a window system handling different pixel sizes | |
JP2003044035A (en) | Irreversible compression and storage method for font | |
CN1710946A (en) | Method for overlaying character on digital picture | |
CN109472843A (en) | A kind of auxiliary line generation method | |
JPH02289067A (en) | Character pattern signal generating device | |
CN101957837B (en) | Method for accessing stroke vector font | |
CN101201829A (en) | Chinese character library system as well as character code display method thereof | |
WO2014083776A1 (en) | Three-dimensional image generating device and three-dimensional image generating method | |
TWI795215B (en) | Gamma comparison table storage method, display driver chip, display device and information processing device | |
JPH0449119B2 (en) | ||
CN115938264A (en) | Display preprocessing method and system for SPI bus driving display screen | |
CN112258375B (en) | Method and system for filling specific text information into associated image boundary | |
CN113284050A (en) | Image pixel value model, high-resolution display method and system and automobile instrument | |
JP3375069B2 (en) | Drawing processing device | |
CN113096209A (en) | Display method of vehicle-mounted image trajectory line | |
CN111986283A (en) | Remote sensing image fast re-projection method based on lookup table | |
JPH05242257A (en) | Bit map memory for high speed curve plotting | |
JP2022119523A (en) | Control device and display device | |
CN112070142A (en) | Vehicle accessory grouping method and device, electronic equipment and storage medium | |
JPS5965339A (en) | Document editing device | |
JP3057811B2 (en) | Data converter | |
KR100796899B1 (en) | Color display method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |