CN106981084A - A kind of method and device of drawing isoline - Google Patents

A kind of method and device of drawing isoline Download PDF

Info

Publication number
CN106981084A
CN106981084A CN201610961083.XA CN201610961083A CN106981084A CN 106981084 A CN106981084 A CN 106981084A CN 201610961083 A CN201610961083 A CN 201610961083A CN 106981084 A CN106981084 A CN 106981084A
Authority
CN
China
Prior art keywords
value
quantitative index
coordinate points
gray value
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610961083.XA
Other languages
Chinese (zh)
Other versions
CN106981084B (en
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610961083.XA priority Critical patent/CN106981084B/en
Publication of CN106981084A publication Critical patent/CN106981084A/en
Application granted granted Critical
Publication of CN106981084B publication Critical patent/CN106981084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)

Abstract

This application discloses a kind of method and device of drawing isoline, to solve in the prior art due to based on isopleth extraction method drawing isoline, then requiring that the coordinate of each value of the quantitative index for drawing isoline is uniformly distributed, the problem of otherwise can not drawing.Methods described includes:Determine the value of multiple coordinate points and the corresponding quantitative index of each coordinate points;The gray value gradation zone for including the coordinate points is drawn, the gray value gradation zone is to gray value gradual change around centered on the coordinate points, and the gray value is converted to by the value of the corresponding quantitative index of the coordinate points;According to the gray value of each point in the gray value gradation zone, the isopleth of the quantitative index is drawn.

Description

A kind of method and device of drawing isoline
Technical field
The application is related to field of computer technology, more particularly to a kind of method and device of drawing isoline.
Background technology
Isopleth is the smoothed curve being linked to be by the equal each coordinate points of a certain quantitative index value of map subject, in scientific research It is commonly used Deng field, common isopleth has thermoisopleth, isobar, contour, equipotential lines etc..The conventionally employed Freehandhand-drawing of isopleth Mode is drawn, and developing rapidly with computer technology, and computer drawing isopleth can also be used now.
In the prior art, in the case of using computer, it is typically based on isopleth extraction method and carrys out drawing isoline, with Draw exemplified by thermoisopleth, quantitative index is temperature.Can be toward incoming multiple temperature values and its coordinate data in computer, will be each The coordinate points of temperature value are distributed on the grid of corresponding flat map, and then, computer can use isopleth extraction method, pass through Mobile quadrangle drawing isoline one by one on grid.
But, in the above prior art, it is desirable to which the coordinate for each value of the quantitative index of drawing isoline uniformly divides Cloth, otherwise can not drawing isoline.
The content of the invention
The embodiment of the present application provides a kind of method and device of drawing isoline, to solve in the prior art due to based on Isopleth extraction method drawing isoline, then require that the coordinate of each value of the quantitative index for drawing isoline is uniformly distributed, no The problem of can not then drawing.
The embodiment of the present application uses following technical proposals:
A kind of method for drawing isoline that the embodiment of the present application is provided, including:
Determine the value of multiple coordinate points and the corresponding quantitative index of each coordinate points;
The gray value gradation zone for including the coordinate points is drawn, the gray value gradation zone is using the coordinate points in The heart is converted to gray value gradual change around, the gray value by the value of the corresponding quantitative index of the coordinate points;
According to the gray value of each point in the gray value gradation zone, the isopleth of the quantitative index is drawn.
A kind of device for drawing isoline that the embodiment of the present application is provided, including:
Determining module, determines the value of multiple coordinate points and the corresponding quantitative index of each coordinate points;
First drafting module, draws and includes the gray value gradation zones of the coordinate points, the gray value gradation zone with To gray value gradual change around centered on the coordinate points, the gray value by the corresponding quantitative index of the coordinate points value It is converted to;
Second drafting module, according to the gray value of each point in the gray value gradation zone, draws the quantitative index Isopleth.
At least one above-mentioned technical scheme that the embodiment of the present application is used can reach following beneficial effect:Grid need not be relied on Lattice, that is, be used in the coordinate skewness of each value of the quantitative index of drawing isoline, still can effectively draw the number The isopleth of figureofmerit, therefore, it can partly or entirely solve the problems of the prior art.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please is used to explain the application, does not constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 a are a kind of drawing area used in drawing isoline in the prior art;
Fig. 1 b are the principle schematic of isopleth extraction method in the prior art;
Fig. 1 c be a kind of practical application scene under, have a kind of map of isoplethes drawing demand;
A kind of schematic flow sheet of the method for drawing isoline that Fig. 2 provides for the embodiment of the present application;
Fig. 3 for the embodiment of the present application provide under a kind of practical application scene, for drawing isothermal portion temperature The coordinate points schematic diagram of value;
The reality to certain corresponding gray value gradation zone of two coordinate points in Fig. 3 that Fig. 4 provides for the embodiment of the present application Draw effect diagram;
Fig. 5 for the embodiment of the present application provide under Fig. 3 scene, drawn at least part after each gray scale gradation zone The schematic diagram of drawing area;
Fig. 6 for the embodiment of the present application provide under Fig. 3 scene, the thermoisopleth schematic diagram drawn out;
A kind of structural representation of the device for drawing isoline corresponding to Fig. 2 that Fig. 7 provides for the embodiment of the present application.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
As it was previously stated, it is necessary to which the uniform data of coordinate, no when being based on isopleth extraction method drawing isoline in the prior art It can not then draw, for the ease of understanding the problem, be illustrated with an example, as shown in Fig. 1 a, Fig. 1 b, Fig. 1 c.It is assumed that quantity Index is temperature, then isopleth is specially thermoisopleth, each for drawing isothermal data for temperature value and its coordinate data Group data are expressed as (x, y, value), wherein, x and y denotation coordination data, the corresponding data target of value denotation coordination data Value (be temperature value).
Fig. 1 a in the prior art a kind of drawing area used in drawing isoline (its practical significance is usually:Map), The drawing area uses identical coordinate system with coordinate data, and is indicated with grid.
Fig. 1 b are the principle schematic of isopleth extraction method in the prior art.The principle is mainly:It will be used to draw equivalence The each group of data of line is imported, and is expressed as in Fig. 1 a grid corresponding coordinate points, by mobile quadrangle in grid one by one Drawing isoline, specific method for drafting includes coordinate points distribution scenario, stain denotation coordination point, quadrangle in 16 in Fig. 1 b Interior solid line represents the isopleth part drawn under the coordinate points distribution scenario of the quadrangle.The requirement of isopleth extraction method is each The coordinate of group data is uniformly distributed, specifically, and the corresponding coordinate points of every group of data all should be located at certain 1 jiao in 4 jiaos of some grid On.
Under Fig. 1 c are a kind of practical application scene, have on a kind of map of isoplethes drawing demand, map each is small Circle represents one group of data respectively.The map contains only the data in map of China, and be the number of coordinate non-uniform Distribution According to therefore, it is impossible to be based on isopleth extraction method drawing isoline.
And the scheme of the application is not necessarily based on isopleth extraction method drawing isoline, can partly or entirely it solve existing The problem of in technology, it is illustrated below.
The core concept of present invention is:Reflect the value of the quantitative index for generating isopleth with gray value, with And reflect influence of the corresponding coordinate points of value of the quantitative index to peripheral region, and then draw the quantity further according to gray value and refer to Target isopleth, it is different from isopleth extraction method principle.
A kind of flow of the method for drawing isoline that Fig. 2 provides for the embodiment of the present application.For slave unit angle, the stream The executive agent of journey can include but is not limited to following equipment:Mobile phone, tablet personal computer, intelligent watch, vehicle device, personal computer, Big-and-middle-sized computer, computer cluster etc..For program angle, the executive agent of the flow can be mounted in the equipment On program, including but not limited to following procedure:Browser end (is referred to as:Web ends), the client at non-browser end, Service end, operating system etc..
It should be noted that the executive agent of each step in Fig. 2 can be same equipment or same program or Distinct device or distinct program.Such as, step S201~S203 executive agent is equipment 1;Again such as, step S201's holds Row main body is equipment 1, and step S202~S203 executive agent is equipment 2;Etc..
Flow in Fig. 2 may comprise steps of:
S201:Determine the value of multiple coordinate points and the corresponding quantitative index of each coordinate points.
In the embodiment of the present application, the isopleth to be drawn is the isopleth of the quantitative index.The quantitative index is usual Physical quantity indexes, such as, and temperature, height, depth, pressure, humidity, wind speed, earth magnetism etc.;The quantitative index may not be thing Figureofmerit is managed, such as, index, audience ratings, proportion of students entering schools of a higher grade of economic aspect etc. is the domain requirements such as satisfaction economy, society, humanity Some indexs of definition.
In the embodiment of the present application, the data for drawing isoline have been present, its be the application how to obtain simultaneously Do not limit, the application is primarily upon how utilizing these data drawing isolines.These data are divided into multigroup, every group of packet Include a value and its corresponding coordinate data for the quantitative index, can as described in the prior art, every group of data be expressed as (x, Y, value), wherein, x and y denotation coordinations data (being by taking x-y axis coordinate systems as an example herein), value denotation coordinations data correspondence The data target value, " value of the corresponding quantitative index of each coordinate points " described in step S201 is:Often Value in group data.
Further, the drafting of isopleth is generally carried out in a drawing area, can be true in advance in the drawing area Fixed and/or corresponding coordinate system and multiple coordinate points, can so reduce what the scheme of the application expended in the specific implementation Process resource.Certainly, these processing action can also in real time be performed again when performing step S201.
S202:The gray value gradation zone for including the coordinate points is drawn, the gray value gradation zone is with the coordinate Changed centered on point to gray value gradual change around, the gray value by the value of the corresponding quantitative index of the coordinate points Arrive.
In the embodiment of the present application, for digital picture, (it is referred to as by multiple pixels:Point) constitute, often Individual point at least has coordinate and gray value this two attributes, and the common span of gray value is 0~255 totally 256 rank, is reflected The color depth of corresponding point, wherein, black is 0, and white is 255, in addition, in actual applications, can also further by Refine out more multistage.
Present invention take advantage of that property as gray value, based on the value of the corresponding quantitative index of coordinate points is converted into gray scale Value, the influence degree that each coordinate points come in simulation steps S201 are put in terms of drawing isoline for around actually should In, every isopleth each isopleth adjacent thereto is all value gradual change, accordingly for the point on every isopleth, with Point on its neighbouring each isopleth perpendicular to isopleth be all value gradual change (by small gradual change to it is big or by big gradual change extremely It is small), in the case where isopleth is not yet drawn, each coordinate points in step S201 can be assumed to same gradual manner, Then the actual influence according to each coordinate points each other, it is determined that each coordinate points actually will how gradual change, and then can be natural And isopleth is advantageously drawn out, in this way, the coordinate non-uniform Distribution even if each value of quantitative index can also realize isopleth Drafting.
In the embodiment of the present application, each coordinate points determined in step S201 can be directed to respectively draw an ash respectively Angle value gradation zone, each gray value gradation zone can both not overlap (such as, neighbouring or adjacent etc.) and can also partly weigh Folded, the advantage of this drafting mode is that processing logic is simple, advantageously reduces computing resource consuming;Step S201 can also be directed to The whole gray value gradation zone of whole coordinate point-renderings one of middle determination, the advantage of this drafting mode is advantageous for as far as possible greatly Drawing area is filled, and then is conducive to improving the integrality for the isopleth subsequently drawn out.
S203:According to the gray value of each point in the gray value gradation zone, the isopleth of the quantitative index is drawn.
In the embodiment of the present application, perform after step S201~S202, the data for drawing isoline are isolated by originally Several groups of data (correspondence isolated several coordinate points) expand to continuous data in a drawing area, and then can draw out Isopleth.
Further, can at least be included by drawing the embodiment of the quantitative index isopleth by two kinds:
The first, gray value is reconverted into the value of the quantitative index, for drawing the quantitative index isopleth;
Second, the isopleth of gray value is first drawn out, then to being the quantity by the corresponding grayvalue transition of the isopleth Refer to target value, and then the quantitative index isopleth can be directly obtained.
By Fig. 2 method, without relying on grid, that is, the coordinate point of each value of the quantitative index of drawing isoline is used in Cloth is uneven, still can effectively draw the isopleth of the quantitative index, therefore, it can partly or entirely solve existing skill The problem of in art.
Moreover, in actual applications, due to for operating system or application etc. program provide drawing function for, Gray value gradual change be one realized and also comparative maturity subfunction, there is readily available function to make an excuse for calling, therefore, The cost of drawing isoline is advantageously reduced, and is conducive to quickly and efficiently drawing isoline.
Method based on Fig. 2, the embodiment of the present application additionally provides some specific embodiments of this method, and extension side Case, is illustrated below.
In the embodiment of the present application, before Fig. 2 method is performed, according to prepare in advance work number, in step S201 Comprising specific works may also increase and decrease.
Exemplified by including as far as possible complete specific works in step S202, for step S201, the determination is multiple to sit The value of punctuate and the corresponding quantitative index of each coordinate points, can specifically include:Obtain the multiple of a quantitative index Value and its coordinate data;According to the multiple value and its coordinate data, multiple coordinate points are determined in drawing area, and determine The value of the corresponding quantitative index of each coordinate points.In addition, can also be by multiple coordinate point-renderings in step S202 Out.
Drawing area can be the region in different interfaces according to the difference of specific embodiment.Such as, can be with Web ends Drawn based on painting canvas (Canvas) label in HTML (HTML), then drawing area is Canvas labels institute The region specified, generally can be referred to as painting canvas by the region;Again such as, the picture that can be provided in client based on operating system Function is drawn, then the drawing board that drawing area provides for picture function.
In the embodiment of the present application, it has been mentioned hereinbefore that can be respectively determine each coordinate point-rendering gray value gradually Become region, or it is determined that the whole gray value gradation zone of all coordinate point-renderings one, both principles are the same.In the past Exemplified by person, for step S202, the drafting includes the gray value gradation zone of the coordinate points, specifically included:It is determined that including First span of the value of the corresponding quantitative index of the multiple coordinate points;Held respectively for each coordinate points OK:According to first span, the value of the corresponding quantitative index of the coordinate points is converted into gray value, the seat is used as The gray value of punctuate, according to the gray value, draws the gray value gradation zone for including the coordinate points, the gray value gradation zone with To gray value gradual change around centered on the coordinate points;Wherein, the mode of the gradual change is from small gradual change to big or from big Gradual change is to small.
Further, the concrete shape of gray value gradation zone can have a variety of, it is contemplated that cost during specific implementation, ash Angle value gradation zone can preferably be the border circular areas of specified radius, and its center of circle is the coordinate points.In this way, gray value transition region The shape in domain is more matched with the mode of gray value gradual change, and figure rule is symmetrical, can be since the center of circle along half when drawing The outside gradual change in footpath, advantageously reduces computing resource consuming.
In the embodiment of the present application, it is described according to first span, the corresponding quantity of the coordinate points is referred to Target value is converted to gray value, as the gray value of the coordinate points, can specifically include:By first span and first Intensity value ranges are mapped, and obtain the first mapping result;It is according to first mapping result, the coordinate points are corresponding described The value of quantitative index is converted to a gray value in first intensity value ranges, is used as the gray value of the coordinate points.
In order to make it easy to understand, being illustrated with reference to a more specifically example.
It is assumed that under a kind of practical application scene, the isopleth to be drawn is thermoisopleth, and the value of numerical index is temperature value. Fig. 3 for the embodiment of the present application provide under the practical application scene, the coordinate points for drawing isothermal portion temperature value Stain in schematic diagram, the interior at least part for drawing area of boxed area, square frame is the numeral of mark beside coordinate points, stain For the corresponding temperature value of coordinate points.
In the case of coordinate points in figure 3 are fixed, a kind of specific reality of above-mentioned drafting gray value gradation zone mode Apply scheme as follows:
It is determined that a temperature values comprising the corresponding temperature value of each coordinate points shown in Fig. 3 (are above-mentioned the One span), it is assumed that the temperature values are [0,20];
Figure 3 illustrates each coordinate points on to draw the circle of a specified radius (be above-mentioned gray value transition region Domain), the gray value of gradual change is used from the center of circle to round edge, the center of circle is the coordinate points;The gray value of the coordinate points is according to this Temperature values are converted to the temperature values, are specifically as followsWherein, gray is represented Gray value, is realized " by first span (being [0,20]) with the first intensity value ranges (in the example by the formula In be [0,255]) mapped, obtain the first mapping result ", wherein, max be the temperature values maximum, min be this The minimum value of temperature values;
So that temperature value is 5 (degrees Celsius) as an example, the gray value that its is corresponding to be converted to is
It should be noted that above-mentioned conversion formula is only example, in actual applications, can not to the restriction of the application With realize the first span and the first intensity value ranges map one by one (can include value be mapped one by one with value, value and interval one One mapping, interval map, interval at least one of map one by one with interval one by one with value) formula be possibly used for above-mentioned turn Change process.
The reality to certain corresponding gray value gradation zone of two coordinate points in Fig. 3 that Fig. 4 provides for the embodiment of the present application Draw effect diagram, it can be seen that the two gray value gradation zone (coordinate points of 5 degrees Celsius of upper left correspondence, bottom right correspondence 15 degrees Celsius of coordinate points) partly overlap, radius is identical, gradual manner be from the center of circle to gray value around from small gradual change to Greatly.Wherein, " alpha " expression identified in Fig. 4 employs alpha gray channels, and this is also example, not to the application's Limit.
Fig. 5 for the embodiment of the present application provide under Fig. 3 scene, drawn at least part after each gray scale gradation zone The schematic diagram of drawing area, it can be seen that each gray scale gradation zone substantially covers whole drawing area.
In the embodiment of the present application, for step S203, at least two embodiments are previously mentioned that, herein with Further illustrated exemplified by the first.Under the first technique, it is described according to each point in the gray value gradation zone Gray value, draws the isopleth of the quantitative index, can specifically include:By the gray scale of each point in the gray value gradation zone Value is converted to the value of the quantitative index;According to the value of the corresponding quantitative index of the multiple coordinate points and it is converted to Each value of the quantitative index, draws the isopleth of the quantitative index.
Further, the grayvalue transition by each point in the gray value gradation zone is the quantitative index Value, can specifically include:According to first mapping result, by the gray value or bag of each point in the gray value gradation zone The gray value of each point, is converted to the value of the quantitative index in drawing area containing the gray value gradation zone;Or, by Two intensity value ranges and the second span of the quantitative index are mapped, and obtain the second mapping result, according to described Two mapping results, by the gray value of each point in the gray value gradation zone or include the drawing of the gray value gradation zone The gray value of each point in region, is converted to the value of the quantitative index, wherein, second intensity value ranges include described first Intensity value ranges.
" by the value that the grayvalue transition of each point in the gray value gradation zone is the quantitative index " can be step The reverse conversion changed in S202, both can generally use the conversion formula with corresponding relation to realize.Need explanation , it is not limited to be changed the gray value of each point in gray value gradation zone herein, can also be to grey in drawing area The gray value of each point outside angle value gradation zone is changed, and this using each point in traversal drawing area and can be carried out corresponding The mode of conversion process is realized.
Further, the value according to the corresponding quantitative index of the multiple coordinate points and described in being converted to Each value of quantitative index, draws the isopleth of the quantitative index, can specifically include:It is corresponding according to the multiple coordinate points The value of the quantitative index and each value of the quantitative index being converted to, in the gray value gradation zone in each point or In drawing area of the person comprising the gray value gradation zone in each point, determine the value of the corresponding quantitative index with it is described many The value identical (isopleth then subsequently drawn out is relatively more accurate) of the corresponding quantitative index of individual coordinate points is close (after then The continuous isopleth drawn out more slightly becomes apparent from relatively) point;According to the value of the corresponding quantitative index of the multiple coordinate points, And each point and its value of the corresponding quantitative index determined, draw the isopleth of the quantitative index.
Certainly, the isopleth that the method in the preceding paragraph is drawn out is mainly the corresponding quantity of the multiple coordinate points and referred to The corresponding isopleth of target value, can also draw out the isopleth of other values of the data target in addition to these values, such as, Other values of the data target in addition to these values are converted into gray value, the drawing area of gray scale gradation zone is being drawn It is middle to determine point of the gray value equal or close to the gray value that the other values are changed, further according to other values described in these point-renderings Isopleth.
In the embodiment of the present application, " according to the value of the corresponding quantitative index of the multiple coordinate points, and determine Each point and its corresponding quantitative index value, draw the isopleth of the quantitative index " can also have a variety of specific realities Apply mode.Such as, color can be respectively specified that for each value in the value of the corresponding quantitative index of the multiple coordinate points; According to specified each color, and the corresponding quantitative index of each point determined value, by by it is described determine it is each Point is set to corresponding color, draws the isopleth of the quantitative index;Again such as, can be by the gray value for each point determined 0 is both configured to, and the gray value of other points is both configured to 255, to draw out the isopleth of the quantitative index;Etc..
Step S203 is also illustrated above, in order to make it easy to understand, continuing to use the application scenarios and example explanation in Fig. 3 A kind of step S203 embodiment., can be by traveling through each point of drawing area after execution of step S202, will The gray value reverse conversion each put is temperature value, and the conversion formula of use can be:Or PersonAbove-mentioned conversion formula is also example, not to the restriction of the application
Fig. 6 for the embodiment of the present application provide under Fig. 3 scene, the thermoisopleth schematic diagram drawn out, it is determined that each temperature The corresponding point of angle value is provided with different colors respectively, and by the difference between color, thermoisopleth is delineated naturally.
The method of the drawing isoline provided above for the embodiment of the present application, based on same thinking, the embodiment of the present application The device of corresponding drawing isoline is also provided, as shown in Figure 7.
A kind of structural representation of the device for drawing isoline corresponding to Fig. 2 that Fig. 7 provides for the embodiment of the present application, should Device can be located in Fig. 2 on the executive agent of flow, including:
Determining module 701, determines the value of multiple coordinate points and the corresponding quantitative index of each coordinate points;
First drafting module 702, draws the gray value gradation zone for including the coordinate points, the gray value gradation zone To gray value gradual change around centered on the coordinate points, the gray value is by the corresponding quantitative index of the coordinate points Value is converted to;
Second drafting module 703, according to the gray value of each point in the gray value gradation zone, draws the quantitative index Isopleth.
Alternatively, the determining module 701 determines multiple coordinate points and the corresponding number of each coordinate points The value of figureofmerit, is specifically included:
The determining module 701 obtains the multiple values and its coordinate data of a quantitative index;According to it is the multiple value and its Coordinate data, determines multiple coordinate points, and determine the corresponding quantitative index of each coordinate points in drawing area Value.
Alternatively, first drafting module 702 draws the gray value gradation zone for including the coordinate points, specific bag Include:
First drafting module 702 determines the described of the value comprising the corresponding quantitative index of the multiple coordinate points First span of quantitative index;Performed respectively for each coordinate points:According to first span, this is sat The value of the corresponding quantitative index of punctuate is converted to gray value, as the gray value of the coordinate points, according to the gray value, draws Gray value gradation zone comprising the coordinate points, the gray value gradation zone centered on the coordinate points to gray value around gradually Become;Wherein, the mode of the gradual change is from small gradual change to big or from big gradual change to small.
Alternatively, the gray value gradation zone is the border circular areas for specifying radius, and its center of circle is the coordinate points.
Alternatively, first drafting module 702 is according to first span, by the corresponding number of the coordinate points The value of figureofmerit is converted to gray value, as the gray value of the coordinate points, specifically includes:
First drafting module 702 is mapped first span and the first intensity value ranges, obtains One mapping result;According to first mapping result, the value of the corresponding quantitative index of the coordinate points is converted to described A gray value in one intensity value ranges, is used as the gray value of the coordinate points.
Alternatively, second drafting module 703 draws institute according to the gray value of each point in the gray value gradation zone The isopleth of quantitative index is stated, is specifically included:
The grayvalue transition of each point in the gray value gradation zone is that the quantity refers to by second drafting module 703 Target value;According to each of the value of the corresponding quantitative index of the multiple coordinate points and the quantitative index that is converted to Value, draws the isopleth of the quantitative index.
Alternatively, the grayvalue transition of each point in the gray value gradation zone is institute by second drafting module 703 The value of quantitative index is stated, is specifically included:
Second drafting module 703 is according to first mapping result, by each point in the gray value gradation zone The gray value of each point, is converted to the quantitative index in gray value or drawing area comprising the gray value gradation zone Value;Or,
Second drafting module 703 is reflected the second intensity value ranges and the second span of the quantitative index Penetrate, obtain the second mapping result, according to second mapping result, by the gray value of each point in the gray value gradation zone or The gray value of each point, is converted to the value of the quantitative index in drawing area of the person comprising the gray value gradation zone, wherein, Second intensity value ranges include first intensity value ranges.
Alternatively, second drafting module 703 according to the value of the corresponding quantitative index of the multiple coordinate points and Each value for the quantitative index being converted to, draws the isopleth of the quantitative index, specifically includes:
Second drafting module 703 is according to the value of the corresponding quantitative index of the multiple coordinate points and is converted to The quantitative index each value, in each point or include the gray value gradation zone in the gray value gradation zone In drawing area in each point, the value quantitative index corresponding with the multiple coordinate points of the corresponding quantitative index is determined The same or like point of value;According to the value of the corresponding quantitative index of the multiple coordinate points, and each point determined And its value of the corresponding quantitative index, draw the isopleth of the quantitative index.
Alternatively, second drafting module 703 is according to the value of the corresponding quantitative index of the multiple coordinate points, with And each point and its value of the corresponding quantitative index determined, the isopleth of the quantitative index is drawn, is specifically included:
Second drafting module 703 is each value point in the value of the corresponding quantitative index of the multiple coordinate points Other designated color;According to specified each color, and the corresponding quantitative index of each point determined value, by will be described The each point determined is set to corresponding color, draws the isopleth of the quantitative index.
Alternatively, described device is located at browser end.
The apparatus and method that the embodiment of the present application is provided are one-to-one, and therefore, device also has corresponding side The similar advantageous effects of method, due to the advantageous effects of method being described in detail above, therefore, here Repeat no more the advantageous effects of device.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of key elements are not only including those key elements, but also wrap Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Also there is other identical element in process, method, commodity or the equipment of element.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent Replace, improve etc., it should be included within the scope of claims hereof.

Claims (22)

1. a kind of method of drawing isoline, it is characterised in that including:
Determine the value of multiple coordinate points and the corresponding quantitative index of each coordinate points;
Draw and include the gray value gradation zones of the coordinate points, the gray value gradation zone centered on the coordinate points to Surrounding gray value gradual change, the gray value is converted to by the value of the corresponding quantitative index of the coordinate points;
According to the gray value of each point in the gray value gradation zone, the isopleth of the quantitative index is drawn.
2. the method as described in claim 1, it is characterised in that the multiple coordinate points of determination and each coordinate points pair The value for the quantitative index answered, is specifically included:
Obtain the multiple values and its coordinate data of a quantitative index;
According to the multiple value and its coordinate data, multiple coordinate points are determined in drawing area, and determine each seat The value of the corresponding quantitative index of punctuate.
3. the method as described in claim 1, it is characterised in that the drafting includes the gray value transition region of the coordinate points Domain, is specifically included:
It is determined that the first span of the value comprising the corresponding quantitative index of the multiple coordinate points;
Performed respectively for each coordinate points:According to first span, by the corresponding quantity of the coordinate points Refer to target value and be converted to gray value, as the gray value of the coordinate points, according to the gray value, draw the gray scale for including the coordinate points It is worth gradation zone, the gray value gradation zone is centered on the coordinate points to gray value gradual change around;
Wherein, the mode of the gradual change is from small gradual change to big or from big gradual change to small.
4. method as claimed in claim 3, it is characterised in that the gray value gradation zone is the border circular areas for specifying radius, Its center of circle is the coordinate points.
5. method as claimed in claim 3, it is characterised in that described according to first span, by the coordinate points pair The value for the quantitative index answered is converted to gray value, as the gray value of the coordinate points, specifically includes:
First span and the first intensity value ranges are mapped, the first mapping result is obtained;
According to first mapping result, the value of the corresponding quantitative index of the coordinate points is converted into first gray value In the range of a gray value, be used as the gray value of the coordinate points.
6. the method as described in claim 1, it is characterised in that the gray scale according to each point in the gray value gradation zone Value, draws the isopleth of the quantitative index, specifically includes:
By the value that the grayvalue transition of each point in the gray value gradation zone is the quantitative index;
According to the value of the corresponding quantitative index of the multiple coordinate points and each value for the quantitative index being converted to, paint Make the isopleth of the quantitative index.
7. method as claimed in claim 5, it is characterised in that the gray scale according to each point in the gray value gradation zone Value, draws the isopleth of the quantitative index, specifically includes:
By the value that the grayvalue transition of each point in the gray value gradation zone is the quantitative index;
According to the value of the corresponding quantitative index of the multiple coordinate points and each value for the quantitative index being converted to, paint Make the isopleth of the quantitative index.
8. method as claimed in claim 7, it is characterised in that the gray value by each point in the gray value gradation zone The value of the quantitative index is converted to, is specifically included:
According to first mapping result, by the gray value of each point in the gray value gradation zone or the gray value is included The gray value of each point in the drawing area of gradation zone, is converted to the value of the quantitative index;Or,
Second intensity value ranges and the second span of the quantitative index are mapped, the second mapping result, root is obtained According to second mapping result, by the gray value of each point in the gray value gradation zone or the gray value transition region is included The gray value of each point in the drawing area in domain, is converted to the value of the quantitative index, wherein, second intensity value ranges are included First intensity value ranges.
9. method as claimed in claim 6, it is characterised in that described to be referred to according to the corresponding quantity of the multiple coordinate points Each value of target value and the quantitative index being converted to, draws the isopleth of the quantitative index, specifically includes:
According to the value of the corresponding quantitative index of the multiple coordinate points and each value of the quantitative index being converted to, In the gray value gradation zone in each point or in the drawing area comprising the gray value gradation zone in each point, it is determined that pair The same or like point of the value of the value quantitative index corresponding with the multiple coordinate points for the quantitative index answered;
According to the value of the corresponding quantitative index of the multiple coordinate points, and each point and its corresponding number determined The value of figureofmerit, draws the isopleth of the quantitative index.
10. method as claimed in claim 9, it is characterised in that described according to the corresponding quantity of the multiple coordinate points Refer to target value, and each point and its value of the corresponding quantitative index determined, draw the isopleth of the quantitative index, Specifically include:
Color is respectively specified that for each value in the value of the corresponding quantitative index of the multiple coordinate points;
According to specified each color, and the corresponding quantitative index of each point determined value, by being determined described Each point be set to corresponding color, draw the isopleth of the quantitative index.
11. the method as described in any one of claim 1~10, it is characterised in that methods described is performed by browser end.
12. a kind of device of drawing isoline, it is characterised in that including:
Determining module, determines the value of multiple coordinate points and the corresponding quantitative index of each coordinate points;
First drafting module, draws the gray value gradation zone for including the coordinate points, the gray value gradation zone is with described To gray value gradual change around centered on coordinate points, the gray value is changed by the value of the corresponding quantitative index of the coordinate points Obtain;
Second drafting module, according to the gray value of each point in the gray value gradation zone, draws the equivalence of the quantitative index Line.
13. device as claimed in claim 12, it is characterised in that the determining module determines multiple coordinate points and each institute The value of the corresponding quantitative index of coordinate points is stated, is specifically included:
The determining module obtains the multiple values and its coordinate data of a quantitative index;According to the multiple value and its number of coordinates According to determining multiple coordinate points in drawing area, and determine the value of the corresponding quantitative index of each coordinate points.
14. device as claimed in claim 12, it is characterised in that first drafting module is drawn comprising the coordinate points Gray value gradation zone, is specifically included:
First drafting module determines the first value model of the value comprising the corresponding quantitative index of the multiple coordinate points Enclose;Performed respectively for each coordinate points:According to first span, the corresponding quantity of the coordinate points is referred to Target value is converted to gray value, as the gray value of the coordinate points, according to the gray value, draws the gray value for including the coordinate points Gradation zone, the gray value gradation zone is centered on the coordinate points to gray value gradual change around;Wherein, the mode of the gradual change For from small gradual change to big or from big gradual change to small.
15. device as claimed in claim 14, it is characterised in that the gray value gradation zone is the circle for specifying radius Domain, its center of circle is the coordinate points.
16. device as claimed in claim 14, it is characterised in that first drafting module is according to the first value model Enclose, the value of the corresponding quantitative index of the coordinate points is converted into gray value, as the gray value of the coordinate points, specific bag Include:
First drafting module is mapped first span and the first intensity value ranges, obtains the first mapping knot Really;According to first mapping result, the value of the corresponding quantitative index of the coordinate points is converted into first gray value In the range of a gray value, be used as the gray value of the coordinate points.
17. device as claimed in claim 12, it is characterised in that second drafting module is according to the gray value transition region The gray value of each point in domain, draws the isopleth of the quantitative index, specifically includes:
Second drafting module by the grayvalue transition of each point in the gray value gradation zone be the quantitative index value; According to the value of the corresponding quantitative index of the multiple coordinate points and each value for the quantitative index being converted to, institute is drawn State the isopleth of quantitative index.
18. device as claimed in claim 16, it is characterised in that second drafting module is according to the gray value transition region The gray value of each point in domain, draws the isopleth of the quantitative index, specifically includes:
Second drafting module by the grayvalue transition of each point in the gray value gradation zone be the quantitative index value; According to the value of the corresponding quantitative index of the multiple coordinate points and each value for the quantitative index being converted to, institute is drawn State the isopleth of quantitative index.
19. device as claimed in claim 18, it is characterised in that second drafting module is by the gray value gradation zone The grayvalue transition of interior each point is the value of the quantitative index, is specifically included:
Second drafting module according to first mapping result, by the gray value of each point in the gray value gradation zone or The gray value of each point, is converted to the value of the quantitative index in drawing area of the person comprising the gray value gradation zone;Or,
Second drafting module is mapped the second intensity value ranges and the second span of the quantitative index, is obtained Second mapping result, according to second mapping result, by the gray value of each point in the gray value gradation zone or comprising The gray value of each point, is converted to the value of the quantitative index in the drawing area of the gray value gradation zone, wherein, described Two intensity value ranges include first intensity value ranges.
20. device as claimed in claim 17, it is characterised in that second drafting module is according to the multiple coordinate points pair Each value of the value for the quantitative index answered and the quantitative index being converted to, draws the isopleth of the quantitative index, Specifically include:
Second drafting module is according to the value of the corresponding quantitative index of the multiple coordinate points and described in being converted to Each value of quantitative index, in each point or the Drawing zone of the gray value gradation zone is included in the gray value gradation zone In domain in each point, the value phase of the value quantitative index corresponding with the multiple coordinate points of the corresponding quantitative index is determined Same or close point;According to the value of the corresponding quantitative index of the multiple coordinate points, and each point determined and its right The value for the quantitative index answered, draws the isopleth of the quantitative index.
21. device as claimed in claim 20, it is characterised in that second drafting module is according to the multiple coordinate points pair The value for the quantitative index answered, and each point and its value of the corresponding quantitative index determined, draw the quantity The isopleth of index, is specifically included:
Second drafting module respectively specifies that for each value in the value of the corresponding quantitative index of the multiple coordinate points Color;According to specified each color, and the corresponding quantitative index of each point determined value, by being determined described Each point be set to corresponding color, draw the isopleth of the quantitative index.
22. the device as described in any one of claim 12~21, it is characterised in that described device is located at browser end.
CN201610961083.XA 2016-10-28 2016-10-28 Method and device for drawing contour line Active CN106981084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610961083.XA CN106981084B (en) 2016-10-28 2016-10-28 Method and device for drawing contour line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610961083.XA CN106981084B (en) 2016-10-28 2016-10-28 Method and device for drawing contour line

Publications (2)

Publication Number Publication Date
CN106981084A true CN106981084A (en) 2017-07-25
CN106981084B CN106981084B (en) 2020-11-06

Family

ID=59340421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610961083.XA Active CN106981084B (en) 2016-10-28 2016-10-28 Method and device for drawing contour line

Country Status (1)

Country Link
CN (1) CN106981084B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108627119A (en) * 2018-05-15 2018-10-09 佛山市南海区广工大数控装备协同创新研究院 A kind of plate fitment overall size detection method for sweeping laser based on line
CN111198975A (en) * 2019-12-25 2020-05-26 上海杰狮信息技术有限公司 Grid-based space-time big data visualization method and visualization system
CN112785910A (en) * 2019-11-07 2021-05-11 中国石油天然气集团有限公司 Large-dynamic-range nonlinear geophysical contour map drawing method and device
CN112991489A (en) * 2021-04-07 2021-06-18 中科三清科技有限公司 Isobaric line drawing method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101457267A (en) * 2009-01-05 2009-06-17 中南大学 Intelligent extraction method of blast burden temperature field isotherm
CN101727656A (en) * 2008-10-31 2010-06-09 李德毅 Image segmenting method based on data field
CN101980055A (en) * 2010-11-30 2011-02-23 中国石油集团川庆钻探工程有限公司 Digital modeling method for seismic exploration
CN102096102A (en) * 2010-11-30 2011-06-15 中国石油集团川庆钻探工程有限公司 Digital modeling method for seismic exploration
CN102903139A (en) * 2012-09-07 2013-01-30 罗健欣 Accelerated rendering method for contours
CN103810729A (en) * 2014-02-20 2014-05-21 南京师范大学 Raster image vectorizing method based on contour line
CN103912791A (en) * 2014-01-26 2014-07-09 清华大学深圳研究生院 Underground pipe network leak detection method
CN105234599A (en) * 2015-10-20 2016-01-13 沈阳富创精密设备有限公司 Welding temperature field control system and method
CN105445607A (en) * 2015-11-20 2016-03-30 国网福建省电力有限公司泉州供电公司 Power equipment fault detection method based on isothermal line drawing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727656A (en) * 2008-10-31 2010-06-09 李德毅 Image segmenting method based on data field
CN101457267A (en) * 2009-01-05 2009-06-17 中南大学 Intelligent extraction method of blast burden temperature field isotherm
CN101980055A (en) * 2010-11-30 2011-02-23 中国石油集团川庆钻探工程有限公司 Digital modeling method for seismic exploration
CN102096102A (en) * 2010-11-30 2011-06-15 中国石油集团川庆钻探工程有限公司 Digital modeling method for seismic exploration
CN102903139A (en) * 2012-09-07 2013-01-30 罗健欣 Accelerated rendering method for contours
CN103912791A (en) * 2014-01-26 2014-07-09 清华大学深圳研究生院 Underground pipe network leak detection method
CN103810729A (en) * 2014-02-20 2014-05-21 南京师范大学 Raster image vectorizing method based on contour line
CN105234599A (en) * 2015-10-20 2016-01-13 沈阳富创精密设备有限公司 Welding temperature field control system and method
CN105445607A (en) * 2015-11-20 2016-03-30 国网福建省电力有限公司泉州供电公司 Power equipment fault detection method based on isothermal line drawing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余明辉等: "《一种绘制等值线图的新方法》", 《武汉大学学报(工学版)》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108627119A (en) * 2018-05-15 2018-10-09 佛山市南海区广工大数控装备协同创新研究院 A kind of plate fitment overall size detection method for sweeping laser based on line
CN112785910A (en) * 2019-11-07 2021-05-11 中国石油天然气集团有限公司 Large-dynamic-range nonlinear geophysical contour map drawing method and device
CN112785910B (en) * 2019-11-07 2023-07-25 中国石油天然气集团有限公司 Large dynamic range nonlinear geophysical contour drawing method and device
CN111198975A (en) * 2019-12-25 2020-05-26 上海杰狮信息技术有限公司 Grid-based space-time big data visualization method and visualization system
CN111198975B (en) * 2019-12-25 2023-12-01 上海杰狮信息技术有限公司 Grid-based space-time big data visualization method and system
CN112991489A (en) * 2021-04-07 2021-06-18 中科三清科技有限公司 Isobaric line drawing method and device, electronic equipment and storage medium
CN112991489B (en) * 2021-04-07 2021-11-05 中科三清科技有限公司 Isobaric line drawing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106981084B (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN106981084A (en) A kind of method and device of drawing isoline
CN103678631B (en) page rendering method and device
CN101719154B (en) Grid structure-based spatial index establishing method and grid structure-based spatial index establishing system
CN105741334B (en) Thermodynamic chart providing method and device
CN107066430A (en) Image processing method, device, service end and client
CN110738722B (en) Thermodynamic diagram texture generation method, device and equipment
CN106095437A (en) The implementation method of the layout type of user interface RTL from right to left and device
CN105512265A (en) Method and device for displaying data through figure
CN106776612B (en) Display method and device of geographical thermodynamic diagram
CN106874818B (en) A kind of Digital Object Unique Identifier DOI recognition methods and device
CN106844288A (en) A kind of random string generation method and device
CN107578055A (en) A kind of image prediction method and apparatus
CN103345534A (en) Dynamic graph processing method and device
CN105893590A (en) Automatic processing method for real-situation cases of DTA (Digital Terrain Analysis) modelling knowledge
GB2568576A (en) Oil painting stroke simulation using neural network
CN108961406A (en) Geographical information visualization method, apparatus and user terminal
CN106886510B (en) Method and device for displaying chart
CN108846875A (en) Shape data treating method and apparatus
CN104240273A (en) Raster image processing method and device
CN106021228B (en) A kind of method and system carrying out text analyzing using knowledge topographic map
CN111291543B (en) Data display method and device, storage medium and processor
CN102903148B (en) A kind of grid data rendering method and device
CN106991191A (en) Commodity screening technique and device, storage medium, electronic equipment
CN106569816B (en) Rendering method and device
CN110287435A (en) Webpage exhibiting method, system and machine 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201016

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201016

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant