CN105844681A - Thermodynamic diagram drawing method and apparatus - Google Patents

Thermodynamic diagram drawing method and apparatus Download PDF

Info

Publication number
CN105844681A
CN105844681A CN201610166181.4A CN201610166181A CN105844681A CN 105844681 A CN105844681 A CN 105844681A CN 201610166181 A CN201610166181 A CN 201610166181A CN 105844681 A CN105844681 A CN 105844681A
Authority
CN
China
Prior art keywords
color
value
cell
default
map
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
CN201610166181.4A
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.)
Beijing Jianfei Wuxian Science Technology Co Ltd
Original Assignee
Beijing Jianfei Wuxian Science Technology 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 Beijing Jianfei Wuxian Science Technology Co Ltd filed Critical Beijing Jianfei Wuxian Science Technology Co Ltd
Priority to CN201610166181.4A priority Critical patent/CN105844681A/en
Publication of CN105844681A publication Critical patent/CN105844681A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Steam Or Hot-Water Central Heating Systems (AREA)

Abstract

The invention provides a thermodynamic diagram drawing method and apparatus and belongs to the image processing field. The method includes the following steps that: a map to be processed and thermodynamic data corresponding to the map are obtained; the map is divided into a plurality of cells; thermodynamic density values corresponding to each cell are calculated according to the thermodynamic data; color descent gradient is calculated according to a preset color shallowest value, a preset color deepest value, a maximum thermodynamic density value and a minimum thermodynamic density value in the thermodynamic density values corresponding to all the cells; and a thermodynamic diagram can be drawn on the map according to the color descent gradient, the thermodynamic density values corresponding to each cell, and the preset color shallowest value.

Description

Thermodynamic chart method for drafting and device
Technical field
The present invention relates to image processing field, in particular to a kind of thermodynamic chart drafting side Method and device.
Background technology
Thermodynamic chart is the page area or visitor institute made earnest efforts with special highlighted form display visitor The diagram of geographic area.Existing thermodynamic chart method for drafting, makes each heating power density value A corresponding fixing color value, when in map, heating power density value is the least, drafting Thermodynamic chart color may be the most shallow, and when in map, heating power density value is the biggest, The thermodynamic chart color drawn may be the deepest, and the color contrast between diverse location Inconspicuous, make the contrast effect of thermodynamic chart have a greatly reduced quality.
Summary of the invention
In view of this, embodiments provide a kind of thermodynamic chart method for drafting and device, After each heating power density value that each cell is corresponding in obtaining map, according to default face The most shallow value of color, default color be the most deeply worth between difference and maximum heat force density value with The ratio of the difference between little heating power density value, it is thus achieved that the downward gradient of color, according to color Downward gradient obtains the color of thermodynamic chart and draws standard, close to adapt to heating power corresponding in map The dynamic change of angle value.
To achieve these goals, the technical solution used in the present invention is as follows:
A kind of thermodynamic chart method for drafting, described method includes:
Obtain pending map and heating power data corresponding to described map;By described map It is divided into multiple cell;Each described cell is calculated corresponding according to described heating power data Heating power density value;The most deeply it is worth according to the default the most shallow value of color, default color and all Maximum heat force density value in the heating power density value that described cell is corresponding, minimum thermal force density Value calculates color downward gradient;According to described color downward gradient, each described cell pair Heating power density value and the default the most shallow value of described color answered draw heating power on the map Figure.
A kind of thermodynamic chart drawing apparatus, described device includes:
Data acquisition module, for obtaining pending map and heat corresponding to described map Force data;Stress and strain model module, being used for described map partitioning is multiple cell;Heating power Density value computing module is corresponding for calculating each described cell according to described heating power data Heating power density value;Color downward gradient computing module, for the most shallow according to the color preset In value, the heating power density value that color is worth the most deeply and all described cells are corresponding preset Maximum heat force density value, minimum thermal force density value calculate color downward gradient;Thermodynamic chart is drawn Module, for close according to described color downward gradient, heating power that each described cell is corresponding Angle value and the default the most shallow value of described color draw thermodynamic chart on the map.
The thermodynamic chart method for drafting of embodiment of the present invention offer and device, pending obtaining Map and heating power data corresponding to this map after, be multiple cell by map partitioning, After obtaining the heating power density value that each cell is corresponding, the most shallow according to the color pre-set In the heating power density value that value, the color pre-set value the most deeply and all cells are corresponding Maximum heat force density value, minimum thermal force density value obtain between different heating power density value corresponding Color downward gradient, according to this color downward gradient correspondence calculate all cells corresponding Heating power density value, to adapt to the dynamic change of heating power density value corresponding in map, makes drafting Thermodynamic chart in integral color will not be the deepest or the most shallow.
For making the above-mentioned purpose of the present invention, feature and advantage to become apparent, cited below particularly Preferred embodiment, and coordinate appended accompanying drawing, it is described in detail below.
Accompanying drawing explanation
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below will 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 clearly Chu, it is fully described by, it is clear that described embodiment is a part of embodiment of the present invention, Rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under not making creative work premise, broadly falls into The scope of protection of the invention.
Fig. 1 shows the block diagram of the computer that present pre-ferred embodiments provides;
Fig. 2 shows the flow process of the thermodynamic chart method for drafting that first embodiment of the invention provides Figure;
Fig. 3 a shows the first time period of employing existing thermodynamic chart method for drafting drafting Thermodynamic chart;
Fig. 3 b shows that the thermodynamic chart method for drafting using first embodiment of the invention to provide is painted The thermodynamic chart of the first time period of system;
Fig. 4 a shows the second time period of employing existing thermodynamic chart method for drafting drafting Thermodynamic chart;
Fig. 4 b shows that the thermodynamic chart method for drafting using first embodiment of the invention to provide is painted The thermodynamic chart of the second time period of system;
Fig. 5 a shows the 3rd time period of employing existing thermodynamic chart method for drafting drafting Thermodynamic chart;
Fig. 5 b shows that the thermodynamic chart method for drafting using first embodiment of the invention to provide is painted The thermodynamic chart of the 3rd time period of system;
Fig. 6 a shows the 4th time period of employing existing thermodynamic chart method for drafting drafting Thermodynamic chart;
Fig. 6 b shows that the thermodynamic chart method for drafting using first embodiment of the invention to provide is painted The thermodynamic chart of the 4th time period of system;
Fig. 7 a shows the 5th time period of employing existing thermodynamic chart method for drafting drafting Thermodynamic chart;
Fig. 7 b shows that the thermodynamic chart method for drafting using first embodiment of the invention to provide is painted The thermodynamic chart of the 5th time period of system;
Fig. 8 a shows the 6th time period of employing existing thermodynamic chart method for drafting drafting Thermodynamic chart;
Fig. 8 b shows that the thermodynamic chart method for drafting using first embodiment of the invention to provide is painted The thermodynamic chart of the 6th time period of system;
Fig. 9 shows the structural frames of the thermodynamic chart drawing apparatus that second embodiment of the invention provides Figure.
Detailed description of the invention
Below in conjunction with accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention Case is clearly and completely described, it is clear that described embodiment is only the present invention one Section Example rather than whole embodiments.Generally herein described in accompanying drawing and illustrate The assembly of the embodiment of the present invention can arrange with various different configurations and design.Therefore, Detailed description to the embodiments of the invention provided in the accompanying drawings is not intended to limit and wants below Seek the scope of the present invention of protection, but be merely representative of the selected embodiment of the present invention.Based on Embodiments of the invention, those skilled in the art are not on the premise of making creative work The every other embodiment obtained, broadly falls into the scope of protection of the invention.
It should also be noted that similar label and letter represent similar terms in following accompanying drawing, because of This, be defined in the most a certain Xiang Yi accompanying drawing, then it is right to need not in accompanying drawing subsequently It defines further and explains.Meanwhile, in describing the invention, term " first ", " second " etc. are only used for distinguishing and describe, and it is not intended that indicate or hint relative importance.
As it is shown in figure 1, be that the square frame of computer 100 that present pre-ferred embodiments provides shows It is intended to.This computer 100 includes thermodynamic chart drawing apparatus 200, memorizer 101, storage control Device 102 processed, processor 103, Peripheral Interface 104, input-output unit 105 and other.
Described memorizer 101, storage control 102, processor 103, Peripheral Interface 104, The each element of input-output unit is electrically connected with the most directly or indirectly, to realize data Transmission or mutual.Such as, these elements each other can be total by one or more communication Line or holding wire realize being electrically connected with.Described thermodynamic chart drawing apparatus 200 includes at least one Can with the form of software or firmware (firmware) be stored in described memorizer 101 soft Part functional module.Described processor 103 is for performing performing of storage in memorizer 101 Module, software function module that the most described thermodynamic chart drawing apparatus 200 includes or computer Program.
Wherein, memorizer 101 may be, but not limited to, random access memory 101 (Random Access Memory, RAM), read only memory 101 (Read Only Memory, ROM), programmable read only memory 101 (Programmable Read-Only Memory, PROM), erasable read-only memory 101 (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) 101 (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, Memorizer 101 is used for storing program, described processor 103 receive execution instruction after, Perform described program, the service flowing through Cheng Dingyi that embodiment of the present invention any embodiment discloses Method performed by device/computer can apply in processor 103, or by processor 103 realize.
Processor 103 is probably a kind of IC chip, has the disposal ability of signal. Above-mentioned processor 103 can be general processor 103, including central processing unit 103 (Central Processing Unit is called for short CPU), network processing unit 103 (Network Processor is called for short NP) etc.;Can also is that digital signal processor 103 (DSP), special IC (ASIC), ready-made programmable gate array (FPGA) or its His PLD, discrete gate or transistor logic, discrete hardware components. Can realize or perform disclosed each method, step and the box in the embodiment of the present invention Figure.General processor 103 can be that microprocessor 103 or this processor 103 can also It it is the processor 103 etc. of any routine.
Described Peripheral Interface 104 various input/output devices are coupled to processor 103 and Memorizer 101.In certain embodiments, Peripheral Interface 104, processor 103 and storage Controller 102 can realize in one single chip.In some other example, they are permissible Realized by independent chip respectively.
Input-output unit 105 is used for being supplied to user input data and realizes user and described clothes Business device (or local terminal) mutual.Described input-output unit 105 is not it may be that but It is limited to, mouse and keyboard etc..
First embodiment
Fig. 2 shows the flow process of the thermodynamic chart method for drafting that first embodiment of the invention provides Figure, refers to Fig. 2, and the method includes:
Step S110: obtain pending map and heating power data corresponding to described map.
In the present embodiment, first obtaining pending map, this map is for being used for drawing heat The map tried hard to, this map selects according to actual needs.As, if desired know some store Passenger flow situation, then obtain the map of region, market of correspondence for drawing performance passenger flow The thermodynamic chart of amount;If desired draw the thermodynamic chart of vehicle flowrate corresponding to some street, then obtain The map corresponding for this region, street.Certainly, when needing to know the visit of some webpage During visitor's click situation, this map can also be corresponding Webpage.
Meanwhile, the heating power data that this map is corresponding are obtained.In the present embodiment, heating power data The heating power object in this map and the change in location situation etc. of each heating power object can be included. It should be understood that when drawing the thermodynamic chart of performance vehicle flowrate, heating power object is car, one Car is considered as a heating power object, and when drawing the thermodynamic chart of the performance volume of the flow of passengers, heating power object is then Behaving, a people is considered as a heating power object.
Such as, if drawing the thermodynamic chart of the volume of the flow of passengers showing certain market, then map is this market Corresponding building scattergram, heating power object is the client in body of a map or chart, obtains this market Heating power data time, can by obtain exist in this market body of a map or chart be in use shape The mobile phone of state and the change in location situation of each mobile phone obtain flow of personnel situation, it is also possible to Flow of personnel situation in market is known by infrared monitoring.
It should be understood that the content that heating power data specifically include does not limits, Can also is that other any related datas for drawing thermodynamic chart.
Step S120: be multiple cell by described map partitioning.
Being multiple cell by the map partitioning of acquisition in step S110, concrete dividing mode can To be, according to the display size of this map, color gradient that default each cell is corresponding Described in the size in region and default each two, the crossing threshold value between color gradient region will Described map partitioning is m*n cell, wherein, and m=w1/w2* α, n=h1/h2* α, w1 Representing the length of map corresponding to the display size of described map, h1 represents the display of described map The width of the map that size is corresponding, i.e. (w1, h1) represent the display size of described map.W2 table Showing the length in the color gradient region that default each cell is corresponding, h2 represents default each The width in the color gradient region that cell is corresponding, i.e. (w2, h2) represent each unit preset The size in the color gradient region that lattice are corresponding, α represents color gradient described in default each two Crossing threshold value between region.
Concrete, the display size of map is according to this map display interface on the display screen Size determines, can be that to show that the display interface of this map has much, it is determined that this map Display size is much, it is possible to understand that, display size maximum is equal to showing the aobvious of this map The size of display screen curtain.During actual displayed, display size is according to the tool at user terminal The display interface of body display screen carries out adaptation.It addition, color corresponding to each cell is gradually Become the region that region is i.e. corresponding centered by the central point of this cell, color gradient region Size can be pre-set by user, and all cells being divided into by this map is big Little unanimously, the size in the color gradient region that each cell is corresponding is the most consistent.Further, face The size that color gradation zone is specifically arranged is also true according to practical situation and operating experience by user Fixed, it is not intended as in the present embodiment limiting.
Same, the crossing threshold value between each two color gradient region illustrates each two face Overlapping situation between color gradation zone, in the present embodiment, can be each color gradient The length of side in region is corresponding with the length of side of cell proportional, and crossing threshold value is color gradient region The ratio value of the length of side of the length of side and cell, even cell is rectangle, then corresponding face The crossing threshold value of the length of a length of cell of color gradation zone times, the wide phase of a width of cell Hand over threshold value times.In the method that the present embodiment provides, between each two color gradient region The span intersecting threshold value can be 1 to 3, when the span of crossing threshold value is 1, Color gradient region is in the same size with corresponding cell.Certainly, the concrete of threshold value is intersected Value size is not intended as the restriction of the embodiment of the present invention, it is also possible to be the value of other sizes.
Then, if the display size of map is (w1, h1), each cell pair pre-set The size in the color gradient region answered is (w2, h2), and the crossing threshold value chosen is α, then may be used Calculating this map partitioning is m=w1/w2* α, the n=h1/h2* α in m*n cell.
Step S130: calculate the heating power that each described cell is corresponding according to described heating power data Density value.
Concrete, in heating power data, except the heating power object in map and each heating power object Change in location situation outside, also include that each heating power object is at geography corresponding to each cell Weighted value corresponding in region, this weighted value according to the actual drafting of thermodynamic chart it needs to be determined that. As a example by continuing the thermodynamic chart to draw the volume of the flow of passengers showing certain market, the building in this market is divided In the map that Butut is corresponding, in certain predetermined time period, each heating power object is at each list Weighted value in the geographic area that unit's lattice are corresponding can be that everyone is corresponding at unit lattice Stay time in geographic area, the time of staying is the longest, illustrates that client is more had by this position Captivation, then give and higher weighted value.The heating power density value of each cell is this list The weighted value sum of all heating power objects in unit's lattice.
Concrete, according to the heating power object in each cell in heating power data and each The weighted value that heating power object is corresponding, can be according to formula Calculate the corresponding described heating power density value of each described cell, wherein, Gx,yRepresent All heating power objects in the cell of the xth row y row in corresponding map, x is little In the positive integer equal to m, the y positive integer less than or equal to n, dotiRepresent corresponding single I-th heating power object in unit's lattice, wiRepresenting the weighted value of this i-th heating power object, i is Positive integer.
Step S140: be the most deeply worth and institute according to the default the most shallow value of color, default color There are the maximum heat force density value in the heating power density value that described cell is corresponding, minimum heating power close Angle value calculates color downward gradient.
Concrete, the most shallow value of color is the pixel value that the most shallow color is corresponding, and color is the deepest Value is the pixel value that the deepest color is corresponding.In the present embodiment, the most shallow value of color and face Color value the most deeply can be pre-set according to practical situation by user, for example, it is possible to according to drafting The background colour of thermodynamic chart is arranged, so that the color in the gradation zone in the thermodynamic chart drawn Obvious with the difference of background colour, it is easy to identification.Certainly, the most shallow value of concrete color and color The most deeply it is worth and is not intended as in the present embodiment limiting.
Further, since each cell is corresponding there is a heating power density value, all In cell, there is a maximum heating power density value and a minimum heating power density value, Then the heating power density value of this maximum is then maximum heat force density value, the heating power density value of this minimum It is minimum thermal force density value.
In the present embodiment, color downward gradient can represent the heating power density value of each unit Corresponding pixel value.Can be with WmaxRepresent maximum density values, WminRepresent minimum density values, Meanwhile, representing the red value in the most shallow value of default color with r1, g1 represents default face Green value in the most shallow value of color, b1 represents the blue valve in the most shallow value of default color, i.e. with (r1, g1, b1) represents the most shallow value of color preset, and, represent default color with r2 Red value in value the most deeply, g2 represents the green value in default color value the most deeply, and b2 represents The color preset the most deeply be worth in blue valve, i.e. represent that default color is the deepest with (r2, g2, b2) Value, then can be according to Rt=(r2-r1)/(Wmax-Wmin), Gt=(g2-g1)/(Wmax-Wmin), Bt= (b2-b1)/(Wmax-Wmin) calculate the red downward gradient Rt in color downward gradient, green respectively Color downward gradient Gt and blue downward gradient Bt, it is possible to understand that, red, green with And blueness is for forming the three primary colors of the color in each cell.
Step S150: according to described color downward gradient, heat that each described cell is corresponding Force density value and the default the most shallow value of described color draw thermodynamic chart on the map.
In this step, can be first according to color downward gradient, heat that each cell is corresponding Force density value and the color of default described color the most shallow value computing unit center of a lattice point. Concrete, the calculating of the color of the central point of each cell can be R=Rt*W+r1, G= Gt*W+g1, B=Bt*W+b1, wherein R represents the face of the central point forming described cell The redness of color, G represents the green of the color of the central point forming described cell, and B represents Form the color of the central point of the blueness of the color of the central point of described cell, i.e. cell For (Rt*W+r1, Gt*W+g1, Bt*W+b1).Further, Rt represents that described color declines Red downward gradient in gradient, Gt represents the green decline ladder in described color downward gradient Degree, Bt represents the blue downward gradient in described color downward gradient, and W represents corresponding list The heating power density value that unit's lattice are corresponding.It addition, r1 represents the redness in the most shallow value of default color Value, g1 represents the green value in the most shallow value of default color, and b1 represents that default color is the most shallow Blue valve in value, i.e. (r1, g1, b1) represent the most shallow value of color preset.
Further according to color gradient region corresponding to described default each cell size and The color of the central point of each cell is drawn in the color gradient region that each cell is corresponding Color.
In the present embodiment, if concrete method for drafting is it may be that cell is square, i.e. Color gradient region is also square, then with unit center of a lattice as the center of circle, with color gradient The length of side in region be diameter make gradual change circle, make this gradual change circle in color from the center of circle to circle edge Uniformly shoal, be just white to color during the edge justified, i.e. at the picture of round edge Element value is (0,0,0).If cell is rectangle, color gradient region is also rectangle, then with face The shorter length of side of color gradation zone is as diameter, still with the central point of cell as the center of circle Determine gradual change circle, make color in this gradual change circle uniformly shoal from the center of circle to the edge of circle, to circle Edge time color be just white, certainly, the central point of cell namely gradation zone Central point.
Certainly, the color method for drafting in gradation zone can also be other, the most permissible Directly color even is made to shoal from the central point of cell to the surrounding of gradation zone.
Concrete, inventor acquire certain market six different time sections heating power data with Draw the thermodynamic chart as shown in Fig. 3 a, Fig. 3 b to Fig. 8 a, Fig. 8 b.Wherein, Fig. 3 a, Fig. 4 a ... be the thermodynamic chart using existing thermodynamic chart method for drafting to draw to Fig. 8 a, Fig. 3 b, Fig. 4 b ... to the heating power of the thermodynamic chart method for drafting drafting that Fig. 8 b provides for using the present embodiment Figure, and, a figure of same numbers numbering schemes, with b, the heating power that corresponding same time period gathers Data draw thermodynamic chart, e.g., Fig. 3 a and Fig. 3 b corresponding identical time period, Fig. 4 a and Fig. 4 b corresponding identical time period.
Utilize the thermodynamic chart that existing thermodynamic chart method for drafting is drawn, for specifying a maximum Heating power density value carrys out a corresponding default color and is the most deeply worth, then makes color with heating power density value Diminish and shoal, Fig. 3 a, Fig. 3 b to Fig. 8 a, Fig. 8 b can contrast and find out, use The thermodynamic chart that existing thermodynamic chart method for drafting is drawn, in every width thermodynamic chart, relatively large The more popular hot spot region that heating power density value is corresponding obscures, it is impossible to clear resolution from figure, Especially for Fig. 5 a ... big to the volume of the flow of passengers in this market corresponding for Fig. 8 a, major part When the heating power density value in region has approached the maximum heat force density value even more than specified, face Color is universal partially deep, cannot differentiate hot spot region.
And the thermodynamic chart method for drafting that the embodiment of the present invention provides, such as Fig. 3 b ... to Fig. 8 b institute Show, in this market, no matter how the volume of the flow of passengers changes, no matter the heating power i.e. in each unit lattice Density value is the most different in the different time periods, and the hot spot region in thermodynamic chart all can be clear Find out.
Second embodiment
As it is shown in figure 9, present embodiments provide a kind of thermodynamic chart drawing apparatus 200, this dress Put and include:
Data acquisition module 210 is corresponding for obtaining pending map and described map Heating power data;
Stress and strain model module 220, being used for described map partitioning is multiple cell.
Heating power density value computing module 230, for calculating each institute according to described heating power data State the heating power density value that cell is corresponding.
Color downward gradient computing module 240, for according to the most shallow value of color preset, pre- If the heating power density value that color is worth the most deeply and all described cells are corresponding in maximum heat Force density value, minimum thermal force density value calculate color downward gradient.
Thermodynamic chart drafting module 250, for according to described color downward gradient, each described Heating power density value that cell is corresponding and the default the most shallow value of described color are on the map Draw thermodynamic chart.
Concrete, need to provide a criteria for classifying when by map partitioning for multiple cell, Then, in the present embodiment, stress and strain model module 220 can be used for showing according to described map Show size, the size in color gradient region that default each cell is corresponding and default Described in each two, described map partitioning is m*n by the crossing threshold value between color gradient region Cell, wherein, m=w1/w2* α, n=h1/h2* α, w1 represent that the display of described map is big The length of the map of little correspondence, h1 represents the width of map corresponding to the display size of described map, W2 represents the length in the color gradient region that default each cell is corresponding, and h2 represents default The width in color gradient region corresponding to each cell, α represents described in default each two Crossing threshold value between color gradient region.
It addition, thermodynamic chart drafting module 250 may include that
Central point color calculation unit 251, for according to described color downward gradient, each Heating power density value and the most shallow value of default described color that described cell is corresponding calculate described The color of the central point of cell;
Color drawing unit 252, for the face corresponding according to described default each cell The color of the size of color gradation zone and the described central point of each described cell is drawn every Color in the color gradient region that individual described cell is corresponding.
Further, in the present embodiment, heating power density value computing module 230 is for basis Heating power object in each cell and weighted value corresponding to each described heating power object calculate The described heating power density value that each described cell is corresponding.
Further, in the present embodiment, color downward gradient computing module 240 is for root According to Rt=(r2-r1)/(Wmax-Wmin), Gt=(g2-g1)/(Wmax-Wmin), Bt=(b2-b1)/ (Wmax-Wmin) calculate respectively under the red downward gradient Rt in described color downward gradient, green Fall gradient G t and blue downward gradient Bt, wherein, WmaxRepresent in all described cells Maximum density values, WminRepresenting the minimum density values in all described cells, r1 represents Red value in the most shallow value of color preset, g1 represents the green in the most shallow value of default color Value, b1 represents the blue valve in the most shallow value of default color, and r2 represents that default color is the deepest Red value in value, g2 represents the green value in default color value the most deeply, and b2 represents default Color be the most deeply worth in blue valve.
In several embodiments provided herein, it should be understood that disclosed device And method, it is also possible to realize by another way.Device embodiment described above is only Being only illustrative, such as, flow chart and block diagram in accompanying drawing show according to the present invention's The device of multiple embodiments, the architectural framework in the cards of method and computer program product, Function and operation.In this, each square frame in flow chart or block diagram can represent one A part for module, program segment or code, a part for described module, program segment or code Comprise the executable instruction of one or more logic function for realizing regulation.Should also be as note Meaning, at some as in the implementation replaced, the function marked in square frame can also be with It is different from the order marked in accompanying drawing to occur.Such as, two continuous print square frames actually may be used To perform substantially in parallel, they can also perform sometimes in the opposite order, and this is according to involved And function depending on.It is also noted that each square frame in block diagram and/or flow chart, with And the combination of the square frame in block diagram and/or flow chart, can be with function or the action performing regulation Special hardware based system realize, or can refer to computer with specialized hardware The combination of order realizes.
It addition, each functional module in each embodiment of the present invention can integrate shape Become an independent part, it is also possible to be modules individualism, it is also possible to two or two Individual it is integrated to form an independent part with upper module.
If described function realizes and as independent product pin using the form of software function module When selling or use, can be stored in a computer read/write memory medium.Based on so Understanding, the portion that prior art is contributed by technical scheme the most in other words Divide or the part of this technical scheme can embody with the form of software product, this calculating Machine software product is stored in a storage medium, including some instructions with so that a meter Calculate machine equipment (can be personal computer, server, or the network equipment etc.) and perform basis Invent all or part of step of method described in each embodiment.And aforesaid storage medium bag Include: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. the various media that can store program code.It should be noted that in this article, such as The relational terms of first and second or the like be used merely to by an entity or operation and another Individual entity or operating space separate, and not necessarily require or imply these entities or operate it Between exist any this reality relation or order.And, term " includes ", " comprising " Or its any other variant is intended to comprising of nonexcludability, so that include that one is The process of row key element, method, article or equipment not only include those key elements, but also wrap Include other key elements being not expressly set out, or also include for this process, method, thing Product or the intrinsic key element of equipment.In the case of there is no more restriction, statement " include One ... " key element that limits, it is not excluded that including the process of described key element, method, thing Product or equipment there is also other identical element.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, For a person skilled in the art, the present invention can have various modifications and variations.All Within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, Should be included within the scope of the present invention.It should also be noted that similar label and letter In following accompanying drawing, represent similar terms, therefore, the most a certain Xiang Yi accompanying drawing is determined Justice, then need not define it further and explain in accompanying drawing subsequently.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention Being not limited thereto, any those familiar with the art is in the skill that the invention discloses In the range of art, change can be readily occurred in or replace, all should contain in protection scope of the present invention Within.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.

Claims (10)

1. a thermodynamic chart method for drafting, it is characterised in that described method includes:
Obtain pending map and heating power data corresponding to described map;
It is multiple cell by described map partitioning;
The heating power density value that each described cell is corresponding is calculated according to described heating power data;
The most deeply it is worth according to the default the most shallow value of color, default color and all described unit Maximum heat force density value, minimum thermal force density value in the heating power density value that lattice are corresponding calculate face Color downward gradient;
According to heating power density value corresponding to described color downward gradient, each described cell with And preset the most shallow value of described color draw thermodynamic chart on the map.
Method the most according to claim 1, it is characterised in that described by described map It is divided into multiple cell, including:
Display size according to described map, the color gradient that default each cell is corresponding Described in the size in region and default each two, the crossing threshold value between color gradient region will Described map partitioning is m*n cell,
Wherein, m=w1/w2* α, n=h1/h2* α, w1 represent the display size pair of described map The length of the map answered, h1 represents the width of map corresponding to the display size of described map, w2 Representing the length in color gradient region corresponding to each cell preset, h2 represents default every The width in the color gradient region that individual cell is corresponding, α represents color described in default each two Crossing threshold value between gradation zone.
Method the most according to claim 2, it is characterised in that described according to described face Heating power density value that color downward gradient, each described cell are corresponding and default described face The most shallow value of color draws thermodynamic chart on the map, including:
According to heating power density value corresponding to described color downward gradient, each described cell with And the color of the central point of the described color the most shallow value described cell of calculating preset;
Size according to color gradient region corresponding to described default each cell and every The color of the described central point of individual described cell draws the color that each described cell is corresponding Color in gradation zone.
Method the most according to claim 3, it is characterised in that according under described color Heating power density value that fall gradient, each described cell is corresponding and default described color are The color of the central point that shallow value calculates described cell is R=Rt*W+r1, G=Gt*W+g1, B=Bt*W+b1, wherein R represents the redness of color of the central point forming described cell, G represents the green of the color of the central point forming described cell, and B represents the described list of composition The blueness of the color of unit's center of a lattice point, Rt represents under the redness in described color downward gradient Fall gradient, Gt represents the green downward gradient in described color downward gradient, and Bt represents described Blue downward gradient in color downward gradient, W represents the heating power that corresponding cell is corresponding Density value, r1 represents the red value in the most shallow value of default color, and g1 represents default color Green value in the most shallow value, b1 represents the blue valve in the most shallow value of default color.
Method the most according to claim 2, it is characterised in that described in described each two The span of the crossing threshold value between color gradient region is 1 to 3.
Method the most according to claim 1, it is characterised in that described according to described heat The heating power density value that force data calculates each described cell corresponding includes:
According to the power that the heating power object in each cell and each described heating power object are corresponding Weight values calculates the described heating power density value that each described cell is corresponding.
Method the most according to claim 1, it is characterised in that described basis is preset The most shallow value of color, default color are worth and maximal density in all described cells the most deeply Value, minimum density values calculate color downward gradient, including:
According to Rt=(r2-r1)/(Wmax-Wmin), Gt=(g2-g1)/(Wmax-Wmin), Bt= (b2-b1)/(Wmax-Wmin) calculate the red downward gradient in described color downward gradient respectively Rt, green downward gradient Gt and blue downward gradient Bt,
Wherein, WmaxRepresent the maximum density values in all described cells, WminRepresent all Minimum density values in described cell, r1 represents the red value in the most shallow value of default color, G1 represents the green value in the most shallow value of default color, and b1 represents in the most shallow value of default color Blue valve, r2 represents the red value in default color value the most deeply, and g2 represents default face Color be the most deeply worth in green value, b2 represents the blue valve in default color value the most deeply.
8. a thermodynamic chart drawing apparatus, it is characterised in that described device includes:
Data acquisition module, for obtaining pending map and heat corresponding to described map Force data;
Stress and strain model module, being used for described map partitioning is multiple cell;
Heating power density value computing module, for calculating each described list according to described heating power data The heating power density value that unit's lattice are corresponding;
Color downward gradient computing module, for according to the most shallow value of color, default preset Maximum heating power in the heating power density value that color is worth the most deeply and all described cells are corresponding is close Angle value, minimum thermal force density value calculate color downward gradient;
Thermodynamic chart drafting module, for according to described color downward gradient, each described unit Heating power density value and the default the most shallow value of described color that lattice are corresponding are drawn on the map Thermodynamic chart.
Device the most according to claim 8, it is characterised in that described stress and strain model mould Block is for the color corresponding according to the display size of described map, default each cell gradually Become the crossing threshold value between color gradient region described in the size in region and default each two It is m*n cell by described map partitioning,
Wherein, m=w1/w2* α, n=h1/h2* α, w1 represent the display size pair of described map The length of the map answered, h1 represents the width of map corresponding to the display size of described map, w2 Representing the length in color gradient region corresponding to each cell preset, h2 represents default every The width in the color gradient region that individual cell is corresponding, α represents color described in default each two Crossing threshold value between gradation zone.
Device the most according to claim 9, it is characterised in that described thermodynamic chart is drawn Module includes:
Central point color calculation unit, for according to described color downward gradient, each described Heating power density value and the most shallow value of default described color that cell is corresponding calculate described unit The color of center of a lattice point;
Color drawing unit, for the color corresponding according to described default each cell gradually The color becoming the size in region and the described central point of each described cell draws each institute State the color in the color gradient region that cell is corresponding.
CN201610166181.4A 2016-03-22 2016-03-22 Thermodynamic diagram drawing method and apparatus Pending CN105844681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610166181.4A CN105844681A (en) 2016-03-22 2016-03-22 Thermodynamic diagram drawing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610166181.4A CN105844681A (en) 2016-03-22 2016-03-22 Thermodynamic diagram drawing method and apparatus

Publications (1)

Publication Number Publication Date
CN105844681A true CN105844681A (en) 2016-08-10

Family

ID=56588082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610166181.4A Pending CN105844681A (en) 2016-03-22 2016-03-22 Thermodynamic diagram drawing method and apparatus

Country Status (1)

Country Link
CN (1) CN105844681A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708955A (en) * 2016-11-29 2017-05-24 浙江宇视科技有限公司 Thermodynamic diagram generation method and equipment
CN107247657A (en) * 2017-05-18 2017-10-13 北京京东尚科信息技术有限公司 Methods, devices and systems for displayed web page coordinate click volume
CN107256225A (en) * 2017-04-28 2017-10-17 济南中维世纪科技有限公司 A kind of temperature drawing generating method and device based on video analysis
CN107392980A (en) * 2017-08-08 2017-11-24 南京英斯特网络科技有限公司 A kind of discrete block prolongs the determination method of gradual change proportion in rectilinear direction
WO2018032763A1 (en) * 2016-08-19 2018-02-22 华为技术有限公司 Method and device for generating thermodynamic diagram
CN108281717A (en) * 2017-11-30 2018-07-13 深圳市科列技术股份有限公司 A kind of heating power drawing generating method and device for battery management system
CN108280685A (en) * 2018-01-19 2018-07-13 百度在线网络技术(北京)有限公司 Information acquisition method and device
CN109141714A (en) * 2018-08-09 2019-01-04 重庆邮电大学 A kind of infant foot bottom pressure DATA REASONING and processing method
CN109272501A (en) * 2018-09-27 2019-01-25 深圳春沐源控股有限公司 Scenic spot information statistical method, system and storage medium
CN109753603A (en) * 2018-12-17 2019-05-14 平安科技(深圳)有限公司 Products Show information displaying method, device, computer equipment and storage medium
CN109949395A (en) * 2019-03-15 2019-06-28 智慧足迹数据科技有限公司 Thermodynamic chart rendering method and device
CN110110179A (en) * 2019-03-16 2019-08-09 平安城市建设科技(深圳)有限公司 House market heating power ground drawing generating method, device, equipment and storage medium
CN110717005A (en) * 2019-10-10 2020-01-21 支付宝(杭州)信息技术有限公司 Thermodynamic diagram texture generation method, device and equipment
CN110930474A (en) * 2019-12-06 2020-03-27 深圳大学 Insect density thermodynamic diagram construction method, device and system
WO2020181664A1 (en) * 2019-03-14 2020-09-17 Beijing Didi Infinity Technology And Development Co., Ltd. Methods and devices for displaying a heat map and providing heat data
CN111754597A (en) * 2020-06-24 2020-10-09 京东方科技集团股份有限公司 Thermodynamic diagram generation method, server and readable storage medium
CN112818632A (en) * 2021-01-28 2021-05-18 上海华力微电子有限公司 Method and device for analyzing graph density of chip and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314673A (en) * 2011-08-02 2012-01-11 中国科学院长春光学精密机械与物理研究所 Self-adapting image enhancement method
CN102496152A (en) * 2011-12-01 2012-06-13 四川虹微技术有限公司 Self-adaptive image contrast enhancement method based on histograms
CN103605716A (en) * 2013-11-14 2014-02-26 北京国双科技有限公司 Data processing method and device used for webpage click display
CN104199939A (en) * 2014-09-09 2014-12-10 北京国双科技有限公司 Webpage thermodynamic diagram generating method and device
CN104239617A (en) * 2014-09-02 2014-12-24 百度在线网络技术(北京)有限公司 Thermodynamic diagram showing method and device
CN104657417A (en) * 2014-12-17 2015-05-27 东软集团股份有限公司 Thermodynamic diagram processing method and thermodynamic diagram processing system
CN104731894A (en) * 2015-03-18 2015-06-24 百度在线网络技术(北京)有限公司 Thermodynamic diagram display method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314673A (en) * 2011-08-02 2012-01-11 中国科学院长春光学精密机械与物理研究所 Self-adapting image enhancement method
CN102496152A (en) * 2011-12-01 2012-06-13 四川虹微技术有限公司 Self-adaptive image contrast enhancement method based on histograms
CN103605716A (en) * 2013-11-14 2014-02-26 北京国双科技有限公司 Data processing method and device used for webpage click display
CN104239617A (en) * 2014-09-02 2014-12-24 百度在线网络技术(北京)有限公司 Thermodynamic diagram showing method and device
CN104199939A (en) * 2014-09-09 2014-12-10 北京国双科技有限公司 Webpage thermodynamic diagram generating method and device
CN104657417A (en) * 2014-12-17 2015-05-27 东软集团股份有限公司 Thermodynamic diagram processing method and thermodynamic diagram processing system
CN104731894A (en) * 2015-03-18 2015-06-24 百度在线网络技术(北京)有限公司 Thermodynamic diagram display method and device

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10783673B2 (en) 2016-08-19 2020-09-22 Huawei Technologies Co., Ltd. Method and apparatus for generating heatmap
WO2018032763A1 (en) * 2016-08-19 2018-02-22 华为技术有限公司 Method and device for generating thermodynamic diagram
CN107766375A (en) * 2016-08-19 2018-03-06 华为技术有限公司 A kind of method and device for generating thermodynamic chart
CN107766375B (en) * 2016-08-19 2020-06-09 华为技术有限公司 Method and device for generating thermodynamic diagram
CN106708955A (en) * 2016-11-29 2017-05-24 浙江宇视科技有限公司 Thermodynamic diagram generation method and equipment
CN106708955B (en) * 2016-11-29 2020-01-14 浙江宇视科技有限公司 Thermodynamic diagram generation method and equipment
CN107256225A (en) * 2017-04-28 2017-10-17 济南中维世纪科技有限公司 A kind of temperature drawing generating method and device based on video analysis
CN107247657A (en) * 2017-05-18 2017-10-13 北京京东尚科信息技术有限公司 Methods, devices and systems for displayed web page coordinate click volume
CN107247657B (en) * 2017-05-18 2021-04-30 北京京东尚科信息技术有限公司 Method, device and system for displaying webpage coordinate click rate
CN107392980A (en) * 2017-08-08 2017-11-24 南京英斯特网络科技有限公司 A kind of discrete block prolongs the determination method of gradual change proportion in rectilinear direction
CN107392980B (en) * 2017-08-08 2021-01-12 南京英斯特网络科技有限公司 Method for determining gradient proportion of discrete block in linear direction
CN108281717A (en) * 2017-11-30 2018-07-13 深圳市科列技术股份有限公司 A kind of heating power drawing generating method and device for battery management system
CN108280685B (en) * 2018-01-19 2019-07-23 百度在线网络技术(北京)有限公司 Information acquisition method and device
US11481666B2 (en) 2018-01-19 2022-10-25 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for acquiring information
CN108280685A (en) * 2018-01-19 2018-07-13 百度在线网络技术(北京)有限公司 Information acquisition method and device
CN109141714A (en) * 2018-08-09 2019-01-04 重庆邮电大学 A kind of infant foot bottom pressure DATA REASONING and processing method
CN109272501A (en) * 2018-09-27 2019-01-25 深圳春沐源控股有限公司 Scenic spot information statistical method, system and storage medium
CN109753603B (en) * 2018-12-17 2024-02-02 平安科技(深圳)有限公司 Product recommendation information display method and device, computer equipment and storage medium
CN109753603A (en) * 2018-12-17 2019-05-14 平安科技(深圳)有限公司 Products Show information displaying method, device, computer equipment and storage medium
US11140520B2 (en) 2019-03-14 2021-10-05 Beijing Didi Infinity Technology And Development Co., Ltd. Methods and devices for displaying a heat map and providing heat data
WO2020181664A1 (en) * 2019-03-14 2020-09-17 Beijing Didi Infinity Technology And Development Co., Ltd. Methods and devices for displaying a heat map and providing heat data
US11758366B2 (en) 2019-03-14 2023-09-12 Beijing Didi Infinity Technology & Development Co., Ltd. Methods and devices for displaying a heat map and providing heat data
CN109949395A (en) * 2019-03-15 2019-06-28 智慧足迹数据科技有限公司 Thermodynamic chart rendering method and device
CN110110179A (en) * 2019-03-16 2019-08-09 平安城市建设科技(深圳)有限公司 House market heating power ground drawing generating method, device, equipment and storage medium
CN110717005A (en) * 2019-10-10 2020-01-21 支付宝(杭州)信息技术有限公司 Thermodynamic diagram texture generation method, device and equipment
CN110717005B (en) * 2019-10-10 2022-06-24 支付宝(杭州)信息技术有限公司 Thermodynamic diagram texture generation method, device and equipment
CN110930474A (en) * 2019-12-06 2020-03-27 深圳大学 Insect density thermodynamic diagram construction method, device and system
CN110930474B (en) * 2019-12-06 2023-02-28 深圳大学 Insect density thermodynamic diagram construction method, device and system
CN111754597A (en) * 2020-06-24 2020-10-09 京东方科技集团股份有限公司 Thermodynamic diagram generation method, server and readable storage medium
WO2021258887A1 (en) * 2020-06-24 2021-12-30 京东方科技集团股份有限公司 Heat map generation method, server side, and readable storage medium
CN112818632A (en) * 2021-01-28 2021-05-18 上海华力微电子有限公司 Method and device for analyzing graph density of chip and electronic equipment
CN112818632B (en) * 2021-01-28 2024-02-02 上海华力微电子有限公司 Analysis method and device for pattern density of chip and electronic equipment

Similar Documents

Publication Publication Date Title
CN105844681A (en) Thermodynamic diagram drawing method and apparatus
KR102045695B1 (en) Facial image processing method and apparatus, and storage medium
CN105678813A (en) Skin color detection method and device
CN105184249A (en) Method and device for processing face image
CN106295476A (en) Face key point localization method and device
CN104751405B (en) A kind of method and apparatus for being blurred to image
CN1323370C (en) Method for detecting pornographic images
CN105719332B (en) The implementation method and device of animation between color is mended
CN109214298B (en) Asian female color value scoring model method based on deep convolutional network
WO2015038508A2 (en) Techniques to manage color representations for a digital map
CN104461614B (en) The processing method and electronic equipment of a kind of subject resource
CN109771949A (en) A kind of method and system of the interior dynamic adjustment rendering grade of game
CN106408632B (en) A kind of tone variations cartoon implementing method and device based on attribute animation
CN108764701A (en) A kind of degree resource allocation publicity method, system and equipment and storage medium
CN109978961A (en) A kind of pattern colour side removing method, device and electronic equipment
CN109447031A (en) Image processing method, device, equipment and storage medium
Jupp et al. On the visualization, verification and recalibration of ternary probabilistic forecasts
US10031534B1 (en) Providing set point comparison
CN103049754B (en) The picture recommendation method of social networks and device
Caplan Method without methodology: Data and the digital humanities
CN106846421A (en) A kind of skin color detection method and device
CN103559249B (en) Webpage thermodynamic coloring treatment process and device
CN107103010A (en) Visualize the processing method and processing device of data
CN103529939B (en) A kind of man-machine interaction method based on color, computer vision and stress and strain model
CN107316011A (en) Data processing method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160810