CN107885880A - A kind of storage method of LOGO pictures - Google Patents
A kind of storage method of LOGO pictures Download PDFInfo
- Publication number
- CN107885880A CN107885880A CN201711233287.2A CN201711233287A CN107885880A CN 107885880 A CN107885880 A CN 107885880A CN 201711233287 A CN201711233287 A CN 201711233287A CN 107885880 A CN107885880 A CN 107885880A
- Authority
- CN
- China
- Prior art keywords
- pixel
- pattern image
- vegetarian refreshments
- image vegetarian
- logo
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to picture technical field of memory, more particularly to a kind of storage method of LOGO pictures, comprise the following steps:1) the pixel progressive scan LOGO pictures in LOGO pictures are pressed;2) location parameter of the pattern image vegetarian refreshments in often row pixel is stored;3) the storage horizontal line view data corresponding with the location parameter of the often capable pattern image vegetarian refreshments.The goal of the invention of the present invention is to provide a kind of storage method of LOGO pictures, vehicular platform of the technical scheme provided by the invention based on the low Wince operating systems of hardware configuration, solves dynamic LOGO picture playings interim card and the big technical problem of memory space.
Description
Technical field
The present invention relates to picture technical field of memory, more particularly to a kind of storage method of LOGO pictures.
Background technology
Vehicle mounted guidance mainly has three kinds of operating systems at present, is respectively:These three platforms of Wince, Linux, Android are each
There is advantage.The vehicular platform for being currently based on Wince operating systems is configured on hardware typically than relatively low, be mainly reflected in CPU,
These parts of RAM, Flash, the CPU frequency of this platform is low, and computing capability is poor, and RAM and Flash memory space are small.This
The hardware of a little low configurations brings very big difficulty with trouble, it is necessary to which doing some advanced algorithms can just solve to ask to software development
Topic.
Onboard navigation system start when due to needing to do some relatively time-consuming initialization, so UI in this process
Need to do some transitional displays.Some significant animations can typically be done to show, dynamic LOGO is referred to as in industry.Dynamically
LOGO is with saying that it is a kind of animation effect caused by one group of picture continuously plays if more popular.
If dynamic LOGO picture is using PNG, these decode more time-consuming picture, then animation display can be non-
Chang Ka, it is not smooth.Because base is low with the vehicular platform CPU frequency of Wince operating systems, and need to consume when onboard system starts
Take substantial amounts of cpu resource, so CPU can not provide enough resources and play the time-consuming picture group animation of the decoding such as PNG.
If change these pictures into BMP forms, then it is smooth that dynamic LOGO animation, which is shown,.But same resolution ratio
Picture, BMP forms need more memory spaces than PNG format, and this is a pressure to limited Flash spaces.And
With Vehicular screen resolution ratio raising, it is necessary to memory space it is just bigger.
The content of the invention
The goal of the invention of the present invention is to provide a kind of storage method of LOGO pictures, technical scheme base provided by the invention
In the vehicular platform of the low Wince operating systems of hardware configuration, solve dynamic LOGO picture playings interim card and memory space
Big technical problem.
In order to solve the above-mentioned technical problem, the present invention provides a kind of storage method of LOGO pictures, comprises the following steps:
1) the pixel progressive scan LOGO pictures in LOGO pictures are pressed;
2) location parameter of the pattern image vegetarian refreshments in often row pixel is stored;
3) the storage horizontal line view data corresponding with the location parameter of the often capable pattern image vegetarian refreshments.
Preferably, the location parameter of the pattern image vegetarian refreshments in often row pixel is stored in step 2);Wherein described pixel
Select including background colour pixel and pattern image vegetarian refreshments.
Preferably, the location parameter of the pattern image vegetarian refreshments in often row pixel is stored in step 2);Wherein described pattern
The location parameter of pixel includes the X1 coordinates and Y1 coordinates and the figure of the pattern image vegetarian refreshments first left pixel
Length of the case pixel along X-axis.
Preferably, in step 1) and 2), including simultaneously from the left and right sides by pixel progressive scan LOGO pictures;Left side
When running into pattern image vegetarian refreshments, the X1 coordinates and Y1 coordinates of the pattern image vegetarian refreshments run into are write down;Right side runs into pattern image vegetarian refreshments
When, write down the X2 coordinates of the pattern image vegetarian refreshments run into;The length of pattern image vegetarian refreshments in the row is obtained by formula X2-X1;
Store X1 coordinates, Y1 coordinates and the length.
Preferably, the location parameter of the pattern image vegetarian refreshments in often row pixel is stored in step 2);Including passing through color
Weight computing formula the color weight of each pixel and next pixel is calculated along scanning direction;Two pixels
Color weight approaches, and it is background colour pixel to judge two pixels;The color weight of two pixels differs greatly, and judges the
One pixel is background colour pixel, and it is pattern image vegetarian refreshments that second pixel, which is selected, and stores the coordinate value of second pixel point.
Preferably, each pixel and next pixel are calculated along scanning direction by the weight computing formula of color
Color weight;Wherein the weight computing formula of color is (R2+G2+B2)1/2, R, G, B are the RGB component value of color.
Preferably, the horizontal line view data is rgb format.
Preferably, the form of the LOGO pictures is BMP forms.
Preferably, during display, including:The internal memory DC of former LOGO picture sizes is established, first spreads background color, from storage
Have in location parameter and the file of horizontal line view data, horizontal line view data is read one by one according to the location parameter and signs in DC
On, form a LOGO picture.
Therefore following beneficial effect can be reached using technical scheme provided by the invention:The present invention is according to pixel
Point progressive scan LOGO pictures, the pixel information of background colour is removed, stores the pixel information of pattern, the pixel of storage
Information is only the pattern of coordinate data and rgb format, and without the picture decoding process of complexity, is not only greatly reduced
The memory space of LOGO pictures, and cpu resource occupancy is low, can meet the low consumption demand to cpu resource.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the present invention will be implemented below
The required accompanying drawing used is briefly described in the description of example or prior art.It should be evident that drawings in the following description
Only part of the embodiment of the invention, for those of ordinary skill in the art, is not paying creative labor
Under the premise of, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is FB(flow block) of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes.Obviously, described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The present embodiment provides a kind of storage method of LOGO pictures, before the present embodiment is illustrated, first to LOGO pictures
Illustrate, LOGO pictures are a kind of picture of uniform background color and tundish containing pattern.In LOGO picture storing process, no
Pattern-information is only stored, also stored for the garbage of the non-pattern such as background colour, and these garbages account for whole picture letter
The ratio of breath is very big, accounts for 10%~90%.And a dynamic LOGO animation, there is several even tens of BMP forms
LOGO pictures combine, therefore one dynamic LOGO animation of storage needs to occupy larger memory space.
In the present embodiment, the vehicular platform based on Wince operating systems, its hardware configuration is low, with vehicle-mounted dynamic LOGO
Illustrated exemplified by the storage method of animation.Certainly effect is different caused by different LOGO picture materials, but at this
Reason method is applicable to most LOGO pictures.
In order to solve vehicle mounted guidance dynamic LOGO picture playings interim card and dynamic LOGO pictures, to take memory space big
Technical problem, refers to Fig. 1, and the present embodiment provides a kind of storage method of vehicle-mounted LOGO pictures, comprised the following steps:
1) the pixel progressive scan LOGO pictures in LOGO pictures are pressed;
2) location parameter of the pattern image vegetarian refreshments in often row pixel is stored;
3) the horizontal line view data corresponding with the location parameter of often row pattern image vegetarian refreshments is stored.
The location parameter of the pattern image vegetarian refreshments in often row pixel is stored in step 2), wherein pixel includes background colour
Pixel and pattern image vegetarian refreshments.It should be noted that because LOGO pictures are that a kind of uniform background color and tundish contain pattern
Picture, background colour pixel is being distinguished and during pattern image vegetarian refreshments, although background colour pixel is visually looking like a kind of face
Color, but background colour is not only a kind of color, in fact background colour is likely to be approximate color group.
The position of the location parameter, wherein pattern image vegetarian refreshments of the pattern image vegetarian refreshments in often row pixel is stored in step 2)
Parameter includes the length of the X1 coordinates and Y1 coordinates and pattern image vegetarian refreshments of pattern image vegetarian refreshments first left pixel along X-axis.
Specifically, simultaneously from the left and right sides by pixel progressive scan LOGO pictures.When left side runs into pattern image vegetarian refreshments, note
Under the X1 coordinates and Y1 coordinates of the pattern image vegetarian refreshments that run into;When right side runs into pattern image vegetarian refreshments, the pattern image vegetarian refreshments run into is write down
X2 coordinates.The left side coordinate value of first pattern image vegetarian refreshments is obtained with after the coordinate value of the first pattern image vegetarian refreshments in right side, leading to
Cross formula X2-X1 and obtain the length of pattern image vegetarian refreshments in the row.Store the X1 coordinates, Y1 coordinates and length of the row pattern image vegetarian refreshments
Degree.The like, every a line of LOGO pictures is scanned and stored per a line pattern pixel using above-mentioned scan method
The location parameter of point.
In above-mentioned scanning process, in order to distinguish background colour pixel and pattern image vegetarian refreshments, it is necessary to each to what is scanned
Pixel passes through ranking operation.Before computing, need to understand, background colour is not only a kind of color, in fact they have can
It can be approximate color group, therefore need to judge whether two adjacent pixel colors are advancing colour.
The color of each pixel and next pixel is calculated along scanning direction by the weight computing formula of color
The weight computing formula of weights, wherein color is (R2+G2+B2)1/2, R, G, B are the RGB component value of color.Two pixels
Color weight approaches, and the color of two pixels is then advancing colour, and it is background colour pixel to judge two pixels;Two
The color weight of pixel differs greatly, and judges that first pixel is background colour pixel, second pixel point is pattern pixel
Point, and the coordinate value of second pixel point is stored, and then realize the effect that pattern is drawn out from background colour and come.
After the location parameter of every row pattern image vegetarian refreshments is stored, it is necessary to by the corresponding pattern of every row pattern position parameter
Save, preserved in step 3) using linearisation, this figure is divided into N equal portions, every part of height during progressive scan
For a pixel, the line segment length that this width of part intersects with LOGO picture boundaries.Storage and the position of often row pattern image vegetarian refreshments are joined
The horizontal line view data of the corresponding rgb format of number.Then this N part horizontal line view data is connected and writes file, completed
Preserve work.It is as follows per a data structure:
The upper left corner X-coordinate of horizontal line | The upper left corner Y-coordinate of horizontal line | The length of horizontal line | The horizontal line view data of rgb format |
After the completion of storage, during the information of storage is read and shown, including:Establish former LOGO picture sizes
Internal memory DC, first spreads background color, from the file for being stored with location parameter and horizontal line view data, according to location parameter by horizontal line figure
Signed in as data are read one by one on DC, form a LOGO picture.
The LOGO picture storage methods that the present embodiment provides, LOGO pictures are progressively scanned according to pixel, by background colour
Pixel information removes, and stores the pixel information of pattern, the pixel information of storage is only coordinate data and rgb format
Pattern, and without the picture decoding process of complexity, not only greatly reduce the memory spaces of LOGO pictures, and cpu resource
Take low, the low consumption demand to cpu resource can be met.
Embodiments described above, the restriction to the technical scheme protection domain is not formed.It is any in above-mentioned implementation
Modifications, equivalent substitutions and improvements made within the spirit and principle of mode etc., should be included in the protection model of the technical scheme
Within enclosing.
Claims (9)
- A kind of 1. storage method of LOGO pictures, it is characterised in that:Comprise the following steps:1) the pixel progressive scan LOGO pictures in LOGO pictures are pressed;2) location parameter of the pattern image vegetarian refreshments in often row pixel is stored;3) the storage horizontal line view data corresponding with the location parameter of the often capable pattern image vegetarian refreshments.
- A kind of 2. storage method of LOGO pictures according to claim 1, it is characterised in that:Storage is often gone in step 2) The location parameter of pattern image vegetarian refreshments in pixel;WhereinThe pixel includes background colour pixel and pattern image vegetarian refreshments.
- A kind of 3. storage method of LOGO pictures according to claim 2, it is characterised in that:Storage is often gone in step 2) The location parameter of pattern image vegetarian refreshments in pixel;WhereinThe location parameter of the pattern image vegetarian refreshments includes the X1 coordinates of the pattern image vegetarian refreshments first left pixel and Y1 is sat It is marked with and length of the pattern image vegetarian refreshments along X-axis.
- A kind of 4. storage method of LOGO pictures according to claim 3, it is characterised in that:Step 1) and 2) in, bag IncludeSimultaneously from the left and right sides by pixel progressive scan LOGO pictures;When left side runs into pattern image vegetarian refreshments, the institute run into is write down State the X1 coordinates and Y1 coordinates of pattern image vegetarian refreshments;When right side runs into pattern image vegetarian refreshments, the pattern image vegetarian refreshments that runs into is write down X2 coordinates;The length of pattern image vegetarian refreshments in the row is obtained by formula X2-X1;Store X1 coordinates, Y1 coordinates and the length.
- A kind of 5. storage method of LOGO pictures according to claim 4, it is characterised in that:Storage is often gone in step 2) The location parameter of pattern image vegetarian refreshments in pixel;IncludingThe color weight of each pixel and next pixel is calculated along scanning direction by the weight computing formula of color; The color weight of two pixels approaches, and it is background colour pixel to judge two pixels;The color weight of two pixels Differ greatly, judge that first pixel is background colour pixel, it is pattern image vegetarian refreshments that second pixel, which is selected, and stores second picture The coordinate value of vegetarian refreshments.
- A kind of 6. storage method of LOGO pictures according to claim 5, it is characterised in that:Pass through the weight computing of color Formula calculates the color weight of each pixel and next pixel along scanning direction;WhereinThe weight computing formula of color is (R2+G2+B2)1/2, R, G, B are the RGB component value of color.
- A kind of 7. storage method of LOGO pictures according to claim 1, it is characterised in that:The horizontal line view data is Rgb format.
- A kind of 8. storage method of LOGO pictures according to claim 1, it is characterised in that:The form of the LOGO pictures For BMP forms.
- 9. according to a kind of storage method of LOGO pictures according to any one of claims 1 to 8, it is characterised in that:Showing During, including:The internal memory DC of former LOGO picture sizes is established, first spreads background color, from the text for being stored with location parameter and horizontal line view data In part, horizontal line view data is read one by one according to the location parameter and signed on DC, form a LOGO picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711233287.2A CN107885880A (en) | 2017-11-30 | 2017-11-30 | A kind of storage method of LOGO pictures |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711233287.2A CN107885880A (en) | 2017-11-30 | 2017-11-30 | A kind of storage method of LOGO pictures |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107885880A true CN107885880A (en) | 2018-04-06 |
Family
ID=61776319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711233287.2A Pending CN107885880A (en) | 2017-11-30 | 2017-11-30 | A kind of storage method of LOGO pictures |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107885880A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113449129A (en) * | 2020-03-25 | 2021-09-28 | 北京小米移动软件有限公司 | Picture storage method, picture storage device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4847677A (en) * | 1988-04-27 | 1989-07-11 | Universal Video Communications Corp. | Video telecommunication system and method for compressing and decompressing digital color video data |
JP2010234876A (en) * | 2009-03-30 | 2010-10-21 | Denso It Laboratory Inc | Vehicle device |
CN105096240A (en) * | 2015-07-21 | 2015-11-25 | 南京师范大学 | Method for hiding image sensitive object based texture synthesis |
CN106293578A (en) * | 2016-07-27 | 2017-01-04 | 青岛海信电器股份有限公司 | Video card, image display device, method for displaying image and system |
-
2017
- 2017-11-30 CN CN201711233287.2A patent/CN107885880A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4847677A (en) * | 1988-04-27 | 1989-07-11 | Universal Video Communications Corp. | Video telecommunication system and method for compressing and decompressing digital color video data |
JP2010234876A (en) * | 2009-03-30 | 2010-10-21 | Denso It Laboratory Inc | Vehicle device |
CN105096240A (en) * | 2015-07-21 | 2015-11-25 | 南京师范大学 | Method for hiding image sensitive object based texture synthesis |
CN106293578A (en) * | 2016-07-27 | 2017-01-04 | 青岛海信电器股份有限公司 | Video card, image display device, method for displaying image and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113449129A (en) * | 2020-03-25 | 2021-09-28 | 北京小米移动软件有限公司 | Picture storage method, picture storage device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100587720C (en) | Rendering apparatus and method, and shape data generation apparatus and method | |
US20200210766A1 (en) | Image processing apparatus and image processing method thereof | |
CN106055295A (en) | Picture processing method and device, and picture drawing method and device | |
US20170293992A1 (en) | Image code for processing information and device and method for generating and parsing same | |
JP2019515374A (en) | Method and apparatus for recognizing character areas in an image | |
CN112650460B (en) | Media display method and media display device | |
US8341546B2 (en) | Method for visualizing a change caused by scrolling in a scrolling direction of a section of a text and/or graphic displayed on an optical display means | |
CN104461436A (en) | Displaying method of multiple terminals based on different resolution ratios | |
CN103606179A (en) | Animation image display method and device | |
JP4370438B2 (en) | Vector image drawing apparatus, vector image drawing method and program | |
CN107885880A (en) | A kind of storage method of LOGO pictures | |
US20150169970A1 (en) | Image processing apparatus and image processing method | |
CN105786776A (en) | Animation display method and apparatus | |
JP2009065640A (en) | Image forming device, image formation method, image formation program, and computer-readable recording medium with recording image forming program stored | |
US20160042722A1 (en) | Dynamic label arrangement device, display device, dynamic label arrangement method, and display method | |
CN111161127B (en) | Picture resource rendering optimization method | |
US8120620B2 (en) | Graphics system and drawing method thereof | |
CA1200025A (en) | Graphic and textual image generator for a raster scan display | |
CN101471040B (en) | Simulated overlapping surface implementing method based on MPU interface LCD module | |
CN102394053B (en) | Method and device for displaying pure monochrome picture | |
Hashemı | Review of algorithms changing image size | |
CN112419445A (en) | Primitive state switching method and device based on layer switching and storage medium | |
US7667714B2 (en) | Patterned polygon rendering apparatus | |
JP2017097120A (en) | Display controller, multi-display system, and display method of multi-display system | |
CN111401165A (en) | Station caption extraction method, display device and computer-readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180406 |
|
RJ01 | Rejection of invention patent application after publication |