Park flower layout map curve generation method, equipment and medium

Generating the park flower layout diagram through high-order equations solves the problems of low design efficiency and homogeneity in the existing technology, and realizes efficient and unique flower layout design, which is suitable for park flower layout design, reducing the emergence of homogeneity .

CN119249532APending Publication Date: 2025-01-03李泓
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411282386.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The flower layout design of existing parks is inefficient and prone to homogeneity, making it difficult to meet the needs of uniqueness and aesthetics.

Method used

The high-order equation is used to generate the park flower layout diagram. By determining the form of the high-order equation and generating random numbers as real roots for high-dimensional expansion, forming polynomial equations, and drawing curves according to different needs to arrange different flowers, improving design efficiency and reducing Homogeneity.

Benefits of technology

It improves the efficiency of park flower layout planning, and the generated images are both beautiful and unique, suitable for park flower layout design, effectively reducing the emergence of homogeneous layout.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0005042060770000081
    Figure BDA0005042060770000081
  • Figure BDA0005042060770000091
    Figure BDA0005042060770000091
  • Figure BDA0005042060770000092
    Figure BDA0005042060770000092
Patent Text Reader

Abstract

The invention discloses a park flower layout map curve generation method and device and a medium, and relates to the field of park flower layout planning. The method comprises the steps of determining a form of a high-order equation corresponding to a park flower layout map to be generated; generating random numbers of which the number is equal to the number of the highest term in the form of the high-degree equation; taking the generated random number as a real number root, performing high-dimensional expansion on the low-order equation, and generating a high-order equation; according to drawing requirements of different park flower layout diagrams, drawing a curve graph of a high-order equation; and arranging different flowers in different areas in the curve graph to generate a park flower layout map. The efficiency of park flower layout planning design can be effectively improved, and homogenization is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of park flower layout planning, and in particular to a method, device and medium for generating a park flower layout curve. Background Art

[0002] In the layout design of park flower planting, in addition to considering cultural, ecological and other factors, it is also necessary to consider spatial layout, aesthetic design, etc.

[0003] At present, layout design mainly adopts manual design. However, manual design will take a lot of time and has low efficiency when designing each layout. Moreover, manual design will inevitably draw on existing works, which is not unique enough and may be homogenized. Summary of the invention

[0004] The purpose of this application is to provide a method, device and medium for generating a curve of a park flower layout diagram, which can effectively improve the efficiency of park flower layout planning and design and avoid the generation of homogeneity.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a method for generating a curve of a park flower layout diagram, including: determining the form of a higher-order equation corresponding to a park flower layout diagram to be generated; the higher-order equation is an equation in which the highest power of an unknown number is greater than a preset value; generating a random number equal to the number of the highest terms in the form of the higher-order equation; using the generated random numbers as real roots, performing high-dimensional expansion on low-order equations, and generating a higher-order equation; the low-order equation is an equation in which the highest power of an unknown number is less than or equal to a preset value; drawing a curve graph of the higher-order equation according to the drawing requirements of different park flower layout diagrams; arranging different flowers in different areas within the curve graph to generate a park flower layout diagram.

[0007] In a second aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the above-described methods for generating a curve for a park flower layout diagram.

[0008] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for generating a curve for a park flower layout diagram.

[0009] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0010] The present application provides a method, device and medium for generating a curve of a park flower layout diagram, which directly utilizes high-order equations to generate a park flower layout diagram, effectively improving the efficiency of planning and layout. Moreover, many images of high-order equations are both beautiful and distinctive, which are suitable for park flower layout design and can effectively reduce the occurrence of homogeneous layouts. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0012] Figure 1 A schematic diagram of a flow chart of a method for generating a curve of a park flower layout diagram provided in an embodiment of the present application;

[0013] Figure 2 A schematic diagram of a first type of curve graphic of a high-order equation drawn when the drawing requirement of a park flower layout diagram is to draw edge lines is provided in another embodiment of the present application;

[0014] Figure 3 A schematic diagram of a second type of curve graphic of a high-order equation drawn when the drawing requirement of a park flower layout diagram is to draw an edge line is provided in another embodiment of the present application;

[0015] Figure 4 A third curve diagram of a high-order equation drawn when the drawing requirement of the park flower layout diagram is to draw edge lines is provided in another embodiment of the present application;

[0016] Figure 5 A fourth curve diagram of a high-order equation drawn when the drawing requirement of the park flower layout diagram is to draw edge lines is provided in another embodiment of the present application;

[0017] Figure 6 A schematic diagram of a first type of curve graphic of a high-order equation drawn when the drawing requirement of a park flower layout diagram is to draw a preset range provided in another embodiment of the present application;

[0018] Figure 7 A second curve diagram of a high-order equation drawn when the drawing requirement of the park flower layout diagram is to draw a preset range is provided in another embodiment of the present application;

[0019] Figure 8 A third curve diagram of a high-order equation drawn when the drawing requirement of the park flower layout diagram is to draw a preset range is provided in another embodiment of the present application;

[0020] Fig. 9 A fourth curve diagram of a high-order equation drawn when the drawing requirement of the park flower layout diagram is to draw a preset range is provided in another embodiment of the present application;

[0021] Fig.10 A schematic diagram of a simplified process of a method for generating a curve of a park flower layout diagram provided in an embodiment of the present application;

[0022] Fig.11 A schematic diagram of the structure of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0025] In an exemplary embodiment, Figure 1 As shown, the embodiment of the present application provides a method for generating a curve of a park flower layout diagram, the method comprising the following steps 101 to 105. Among them:

[0026] Step 101: Determine the form of a higher-order equation corresponding to the park flower layout diagram to be generated; the higher-order equation is an equation whose highest degree of unknown number is greater than a preset value.

[0027] Step 102: Generate random numbers of the same number as the highest order of terms in the form of the higher-order equation.

[0028] Step 103: Using the generated random number as a real root, performing high-dimensional expansion on the low-order equation to generate a high-order equation; the low-order equation is an equation whose highest degree of unknown number is less than or equal to a preset value.

[0029] Step 104: Draw a curve graph of the higher-order equation according to the drawing requirements of different park flower layout diagrams.

[0030] Step 105: Arrange different flowers in different areas inside the curve graph to generate a park flower layout map.

[0031] By implementing the above steps 101 to 105 and directly using high-order equations to generate a park flower layout map, the efficiency of planning and layout is effectively improved. Many images of high-order equations are both beautiful and distinctive, which are suitable for park flower layout design and can effectively reduce the occurrence of homogeneous layouts.

[0032] In another exemplary embodiment of the present application, the quadratic equation has only two complex roots, the cubic equation has at most three complex roots, and the quartic equation has at most four complex roots. German mathematician Gauss first proposed the fundamental theorem of algebra: any complex coefficient univariate n-order polynomial equation has at least one root in the complex domain, from which it is deduced that the n-order complex coefficient polynomial equation has and only has n roots in the complex domain (repeated roots are calculated by multiplicity). In this patent, only 2n real roots are constructed (because the complex roots have no intersection on the coordinate axis). The low-order equation curve has fewer turns, while the high-order equation curve has more turns, has more details, and can produce more and richer artistic patterns. From the test results, equations of 5 to 15 powers can basically meet the requirements of park flower layout design, then the form of the high-order equation in the above step 101 includes: the equation with the highest term of 5 to 15. Preferably, the form of the high-order equation is a ten-power equation.

[0033] In another exemplary embodiment of the present application, the process of generating a higher-order equation in the above step 103 is specifically as follows: starting from the origin of the coordinate system of the low-order equation, random numbers are inserted in sequence within a preset range on the coordinate axis, and the random numbers are used as real roots to generate a higher-order equation.

[0034] In another exemplary embodiment of the present application, when the higher-order equation is in the form of a binary decimal equation and the lower-order equation is an equation of a circle, the process of generating the higher-order equation in step 103 is specifically as follows: starting from the origin of the coordinate system of the equation of the circle, 5 random numbers are inserted in sequence on the horizontal axis, and 5 random numbers are inserted in sequence on the vertical axis to obtain a binary decimal equation in a symmetrical shape.

[0035] The generated random numbers are divided into two parts, inserted into the interior of the low-order equation in turn, and the low-order equation is expanded in high dimensions to generate a high-order equation. The low-order equation can be a linear equation, a parabola equation, a conic equation, a hyperbola equation, etc. This application is based on the equation of the circle, the simplest type of equation in the conic section, for high-dimensional expansion. 10 roots are inserted near the origin, giving 5 roots to the equation of x and 5 roots to the equation of y. Each real root has an intersection with the coordinate axis, which enables it to form a circuitous curve, and then through the solution space of the inequality, various symmetrical and beautiful patterns are formed. Each time five positive random numbers are generated, they will take square roots: one positive and one negative, as two symmetrical roots, so that on the x-axis and y-axis, it can form a double-double symmetrical pattern; if all the roots of the equation are imaginary numbers, a symmetrical and beautiful pattern will not be obtained. At present, this algorithm is based on treating x as an unknown number, which has ten real roots; conversely, treating y as an unknown number, it also has ten real roots. In this application, the random numbers are rounded, which makes the program possible to generate If the random number is processed with one decimal place, it may produce patterns; and so on, if the random number is processed to n decimal places, a total of This has the effect of producing more types of images in specific applications.

[0036] In another exemplary embodiment of the present application, before the above step 101, the method may further include: defining a display area rectangle of the park flower layout diagram to be generated. The size of the park flower layout diagram to be generated may be further defined, and the size includes width and height.

[0037] The requirements for drawing are as follows: ① draw an accurate edge line, ② draw a certain range, ③ draw an accurate edge line and the edge line is colored, etc. The following three exemplary embodiments are used to describe in detail the process of drawing a high-order equation graph according to the requirements for drawing.

[0038] In another exemplary embodiment of the present application, when the drawing requirement of the park flower layout diagram is to draw edge lines, the above step 104 draws the curve graph of the higher-order equation according to the drawing requirements of different park flower layout diagrams, and can be replaced by the following steps 201 to 204:

[0039] Step 201: Align the coordinate system of the higher-order equation with the coordinate system of the display area rectangle.

[0040] Step 202: Determine the polynomial values ​​of four adjacent pixel points of each pixel point in the display area rectangle corresponding to the high-order equation.

[0041] Step 203: If the polynomial values ​​of the two adjacent left and right pixels or the two adjacent upper and lower pixels have different signs, the color of the pixel between the two adjacent pixels is set to white.

[0042] When the polynomial values ​​of two adjacent pixels on the left (or top and bottom) have different signs, that is, they pass through the plane of z=0, and a sign change occurs, an edge is detected and the color of the pixel is set to white.

[0043] Step 204: If the polynomial values ​​of the two adjacent pixels above and below have the same sign, the color of the pixel between the two adjacent pixels is set to black.

[0044] When the polynomial values ​​of two adjacent pixels on the left (or top and bottom) have the same sign, that is, they do not pass through the plane of z=0, and no sign change occurs, no edge is detected, and the color of the pixel is set to black.

[0045] If the higher-order equation is a two-variable ten-order equation, and the lower-order equation is the equation of a circle, when the drawing requirement of the park flower layout diagram is to draw the edge line, the curve graph of the higher-order equation drawn is as follows Figures 2 to 5 . Figures 2 to 5 The numbers in are the 10 random numbers that generate the equation and can be used to restore the image. Since different random numbers are generated each time, different images must be generated. The generated pattern is related to the combination of these 10 random numbers, not their arrangement, so it is based on the commutative group (a group that satisfies the operation of its elements does not depend on their order).

[0046] In another exemplary embodiment of the present application, when the drawing requirement of the park flower layout diagram is to draw a preset range, the above step 104 draws the curve graph of the higher-order equation according to the drawing requirements of different park flower layout diagrams, and can be replaced by the following steps 301 to 303:

[0047] Step 301: Align the coordinate system of the higher-order equation with the coordinate system of the display area rectangle.

[0048] Step 302: Determine the polynomial value of each pixel in the display area rectangle corresponding to the high-order equation.

[0049] Step 303: setting the color of the pixel points whose polynomial values ​​meet the preset range requirement to white, and setting the color of the pixel points whose polynomial values ​​do not meet the preset range requirement to black.

[0050] The preset range value requirement is that the polynomial value can be less than 20 after logarithm is taken.

[0051] If the higher-order equation is a two-variable ten-order equation, and the lower-order equation is a circle equation, when the drawing requirement of the park flower layout is to draw a preset range, the curve graph of the higher-order equation is as follows: Figures 6 to 9 .

[0052] In another exemplary embodiment of the present application, when the drawing requirement of the park flower layout diagram is to draw edge lines and the edge lines are colored, the above step 104 draws the curve graph of the higher-order equation according to the drawing requirements of different park flower layout diagrams, and can be replaced by the following steps 401 to 404:

[0053] Step 401: Align the coordinate system of the higher-order equation with the coordinate system of the display area rectangle.

[0054] Step 402: Determine the polynomial values ​​of the four adjacent pixel points of each pixel point in the display area rectangle corresponding to the high-order equation.

[0055] Step 403: If the polynomial values ​​of the two adjacent left and right pixels or the two adjacent upper and lower pixels have different signs, the color of the pixel between the two adjacent pixels is set to color.

[0056] Step 404: If the polynomial values ​​of the two upper and lower adjacent pixels have the same sign, the color of the pixel between the two adjacent pixels is set to black.

[0057] In another exemplary embodiment of the present application, Visual Studio 2019 software can be used to perform the following operations in the method of the present application:

[0058] 1. Define the target bitmap object and size through the Bitmap function in Visual Studio 2019 software, where the target bitmap specifically refers to the memory storage space in the computer, which is used to load the curve generated by the algorithm, that is, the picture of the curve stored in the memory. In the subsequent part, only a size of 400×400 is used in the image display part. Of course, when a high-resolution image is required, the length and width of the target bitmap can be increased to 1000×1000 or even higher. In addition, (xOrg, yOrg) is the origin coordinate. This size can be proportional to the actual land that needs to be planned, or it can be scaled and expanded to any actual size of building land at a certain scale. The execution code is as follows:

[0059] Bitmap img=new Bitmap(400, 400);

[0060] / / Create a Bitmap class instance img and set its size to (400, 400)

[0061] int width=img.Width, height=img.Height;

[0062] / / Define width and height as the width and height of img respectively

[0063] int xOrg=width / 2, yOrg=height / 2;

[0064] / / Define the location of the origin (xOrg, yOrg).

[0065] 2. In specific applications, in Visual Studio 2019 software, pseudo-random numbers are generated by using the default no-parameter constructor of the Random class. The generated random numbers are inserted near the origin of the selected coordinate system to become its multiple roots.

[0066] After using the default no-argument constructor of the Random class to generate pseudo-random numbers, if the higher-order equation uses a binary 10-order equation, ten random numbers are required and stored in an array C with ten storage spaces. The execution code is as follows:

[0067]

[0068] 3. Based on the random numbers generated in the above steps, a generic delegate type is created to receive two double type parameters X and Y, and the explicit result of the Lambda expression is returned by storing the specific function in myPloys. The execution code is as follows:

[0069]

[0070] 4. When the drawing requirement of the park flower layout map is to draw the edge line, in the process of drawing the curve graph of the higher-order equation, the myPloys function is used to calculate the polynomial values ​​of the four adjacent pixel points of each pixel point; the if function is used to check whether the polynomial values ​​of adjacent pixel points have different signs to determine whether the polynomial value has changed its sign.

[0071] Based on the myPloys function and the if function test, when the drawing requirement of the park flower layout diagram is to draw the edge line, taking the form of a high-order equation of two variables and a low-order equation of a circle as an example, the values ​​of the high-order equations corresponding to the four points above, below, left and right are compared in pairs, and when x is satisfied 2 ≠y 2 Draw the graph under the condition of . The code for drawing the curve graph of the higher-order equation is as follows:

[0072]

[0073] Since 10-dimensional floating-point random numbers can generate a fairly large-scale binary 10-degree equation, and thus a fairly large-scale curve pattern, this scale will be even larger when the number of digits after the decimal point is increased.

[0074] 5. When the drawing requirement of the park flower layout map is to draw a preset range, the polynomial value of each pixel is calculated through the myPloys function; a certain range is drawn using the conditional operator (condition? Result 1: Result 2). For example, if you need to draw pixels whose log value is less than 20, you can set the range as the condition, set Result 1 to white pixel color, and Result 2 to black pixel color.

[0075] Based on the myPloys function and the conditional operator, when the drawing requirement of the park flower layout diagram is to draw a preset range, taking the high-order equation as a binary ten-order equation and the low-order equation as a circle equation as an example, the code for drawing the curve graph of the high-order equation is as follows:

[0076]

[0077] 6. When the drawing requirement of the park flower layout map is to draw edge lines and the edge lines are colored, the myPloys function is used to calculate the four adjacent pixels of each pixel.

[0078] Based on the myPloys function, when the drawing requirement of the park flower layout diagram is to draw edge lines and the edge lines are colored, the specific process of drawing the curve graph of the higher-order equation is:

[0079] Step 1: Get each pixel of the display area rectangle;

[0080] Step 2: Calculate the four adjacent pixels of each pixel through the myPloys function;

[0081] Step 3: Calculate the value of each pixel under the myPloys function. For the purpose of adjusting the final color of the image, take the log of the calculated value and assign it to v. Depending on the existing v value, calculate the values ​​v1, v2, and v3 of the three RGB channels respectively.

[0082] Step 4: Use the if function to check whether the polynomial values ​​of adjacent pixels have different signs to determine whether the polynomial value has changed its sign;

[0083] When the values ​​of two adjacent pixels on the left and right (or up and down) have different signs under the myPloys function, that is, they have passed through the plane of z=0, and a sign change has occurred. At this time, an edge is detected, and the RGB three-channel values ​​of the pixel are set to v1, v2, and v3 in sequence; when the values ​​of two adjacent pixels on the left and right (or up and down) have the same sign under the myPloys function, that is, they have not passed through the plane of z=0, and no sign change has occurred, no edge is detected, and the color of the pixel is set to black.

[0084] Taking the case where the higher-order equation is a binary ten-order equation and the lower-order equation is a circle equation as an example, the execution codes corresponding to steps 1 to 4 are as follows:

[0085]

[0086]

[0087] A high-order equation is an equation whose highest degree of unknown number is greater than 2 (preferably 2). Its general form is a n x n +a n-1 x n-1 +a n-2 x n-2 +…++a1x+a0=0, where a n ≠0. Each real root of a higher-order equation corresponds to an intersection of the image and the x-axis. If there are repeated roots, the image will have more complex contact with the x-axis at the intersection. The algorithm proposed in this patent is the application of the image of higher-order equations. Many images of higher-order equations are very beautiful and unique, and can be widely used in flower layout design, architectural design, etc., which can effectively reduce the emergence of homogeneous layouts; and can effectively improve the efficiency of planning and layout, thereby beautifying the municipal appearance and promoting the construction of urban infrastructure.

[0088] The method proposed in this application is based on the commutative group principle (commutative group, i.e. "Abelian Group", is one of the basic concepts of abstract algebra. Because the group operation of the Abelian group satisfies the commutative law and the associative law, the value of the product of the group elements is independent of the order of the multiplication operation. Therefore, when the roots of a binary high-order equation are obtained for 2n numbers, a unique image can be generated, which is independent of the order of multiplication). Based on the circle equation, a high-dimensional expansion is performed, and 2n roots are inserted near {0,0}. This can quickly generate a variety of unique and beautiful images, which can be widely used in flower layout, municipal building planning and other aspects.

[0089] This application method can be simplified to Fig.10The process shown is: generate random numbers → generate binary high-order equations → draw images according to different requirements. This application provides a more convenient algorithm and a large number of optional patterns for the design of park flower layout, which can effectively improve the efficiency of planning and design and avoid the generation of homogeneity.

[0090] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store a park flower layout diagram. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a curve of a park flower layout diagram is implemented.

[0091] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0092] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0093] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0094] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0095] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0096] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0097] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for generating a curve of a park flower layout diagram, characterized in that: include: Determine the form of the higher-order equation corresponding to the park flower layout diagram to be generated; The high-order equation is an equation whose highest degree of unknown number is greater than a preset value; Generate a number of random numbers equal to the highest order of terms in the form of the higher order equation; Using the generated random number as a real number root, performing high-dimensional expansion on the low-order equation to generate a high-order equation; the low-order equation is an equation in which the highest degree of the unknown number is less than or equal to a preset value; According to the drawing requirements of different park flower layout diagrams, draw the curve graph of the higher-order equation; Different flowers are arranged in different areas within the curve graph to generate a park flower layout map.

2. The method for generating a curve of a park flower layout diagram according to claim 1, characterized in that: The form of the high-order equation includes: an equation with the highest order of 5 to 15.

3. The method for generating a curve of a park flower layout diagram according to claim 1, characterized in that: The generated random numbers are used as real roots to perform high-dimensional expansion on low-order equations to generate high-order equations, including: Starting from the origin of the coordinate system of the low-order equation, random numbers are inserted sequentially within the preset range on the coordinate axis, and the random numbers are used as real roots to generate high-order equations.

4. The method for generating a curve of a park flower layout diagram according to claim 1, characterized in that: When the higher-order equation is in the form of a binary ten-order equation and the lower-order equation is an equation of a circle, the generated random numbers are used as real roots to perform high-dimensional expansion on the lower-order equation to generate a higher-order equation, including: Starting from the origin of the circle equation coordinate system, insert 5 random numbers on the horizontal axis and 5 random numbers on the vertical axis to obtain a binary tenth-order equation in a symmetrical figure.

5. The method for generating a curve of a park flower layout diagram according to claim 1, characterized in that: Determine the form of the higher-order equation corresponding to the park flower layout diagram to be generated, which also includes: Define the display area rectangle of the park flower layout map to be generated.

6. The method for generating a curve of a park flower layout diagram according to claim 5, characterized in that: When the drawing requirement of the park flower layout diagram is to draw an edge line, drawing the curve graph of the higher-order equation according to the drawing requirements of different park flower layout diagrams specifically includes: Align the coordinate system of the higher-order equation with the coordinate system of the display area rectangle; Determine the polynomial values ​​of four adjacent pixels of each pixel in the display area rectangle corresponding to the high-order equation; If the polynomial values ​​of the two adjacent pixels on the left and right or the two adjacent pixels on the top and bottom have different signs, the color of the pixel between the two adjacent pixels is set to white; If the polynomial values ​​of two adjacent pixels above and below have the same sign, the color of the pixel between the two adjacent pixels is set to black.

7. The method for generating a curve of a park flower layout diagram according to claim 5, characterized in that: When the drawing requirement of the park flower layout diagram is to draw a preset range, drawing the curve graph of the higher-order equation according to the drawing requirements of different park flower layout diagrams specifically includes: Align the coordinate system of the higher-order equation with the coordinate system of the display area rectangle; Determine the polynomial value of each pixel in the display area rectangle corresponding to the high-order equation; The color of the pixel points whose polynomial values ​​meet the preset range requirements is set to white, and the color of the pixel points whose polynomial values ​​do not meet the preset range requirements is set to black.

8. The method for generating a curve of a park flower layout diagram according to claim 5, characterized in that: When the drawing requirement of the park flower layout diagram is to draw edge lines and the edge lines are colored, drawing the curve graph of the higher-order equation according to the drawing requirements of different park flower layout diagrams specifically includes: Align the coordinate system of the higher-order equation with the coordinate system of the display area rectangle; Determine the polynomial values ​​of four adjacent pixels of each pixel in the display area rectangle corresponding to the high-order equation; If the polynomial values ​​of two adjacent pixels on the left and right or two adjacent pixels on the top and bottom have different signs, the color of the pixel between the two adjacent pixels is set to color; If the polynomial values ​​of two adjacent pixels above and below have the same sign, the color of the pixel between the two adjacent pixels is set to black.

9. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for generating a curve of a park flower layout diagram according to any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a curve of a park flower layout diagram according to any one of claims 1 to 8 is implemented.