CN107885880A - A kind of storage method of LOGO pictures - Google Patents

A kind of storage method of LOGO pictures Download PDF

Info

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
Application number
CN201711233287.2A
Other languages
Chinese (zh)
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.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive Co Ltd
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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201711233287.2A priority Critical patent/CN107885880A/en
Publication of CN107885880A publication Critical patent/CN107885880A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

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

A kind of storage method of LOGO pictures
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)

  1. 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.
  2. 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;Wherein
    The pixel includes background colour pixel and pattern image vegetarian refreshments.
  3. 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;Wherein
    The 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.
  4. A kind of 4. storage method of LOGO pictures according to claim 3, it is characterised in that:Step 1) and 2) in, bag Include
    Simultaneously 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.
  5. 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;Including
    The 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.
  6. 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;Wherein
    The weight computing formula of color is (R2+G2+B2)1/2, R, G, B are the RGB component value of color.
  7. 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.
  8. 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. 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.
CN201711233287.2A 2017-11-30 2017-11-30 A kind of storage method of LOGO pictures Pending CN107885880A (en)

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)

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Similar Documents

Publication Publication Date Title
US11003951B2 (en) Image processing apparatus and image processing method thereof
CN106055295A (en) Picture processing method and device, and picture drawing method and device
JP2019515374A (en) Method and apparatus for recognizing character areas in an image
US20170293992A1 (en) Image code for processing information and device and method for generating and parsing same
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
CN101656037B (en) Method for displaying large-format picture on small screen equipment and small screen equipment
CN103606179A (en) Animation image display method and device
JP4370438B2 (en) Vector image drawing apparatus, vector image drawing method and program
CN105786776A (en) Animation display method and apparatus
US9639763B2 (en) Image target detecting apparatus and method
CN111161127B (en) Picture resource rendering optimization method
CN107885880A (en) A kind of storage method of LOGO pictures
US8120620B2 (en) Graphics system and drawing method thereof
CA1200025A (en) Graphic and textual image generator for a raster scan display
CN112740278A (en) Blending adjacent bins
CN101471040B (en) Simulated overlapping surface implementing method based on MPU interface LCD module
Hashemı Review of algorithms changing image size
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
JP4803001B2 (en) Image processing apparatus and image processing program
CN102394053B (en) Method and device for displaying pure monochrome picture
CN1326071C (en) Electronic file display and treatment method and system
EP2988269B1 (en) A system and method for scaling and copying graphics

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