A two-dimensional structural model reconstruction method and system based on image technology
By pre-processing and curve fitting the density value image, the optimal control point is selected, which solves the problem of non-smooth boundaries and parameterization of the two-dimensional structural feature topology optimization results, and achieves high-fidelity automatic reconstruction, which is suitable for subsequent applications. Craftsmanship.
Patent Information
- Application Number
- CN202210775369.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-01
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-07-01
AI Technical Summary
The topology optimization results of existing two-dimensional structural features have problems such as smooth boundaries, difficulty in parameterization, and cumbersome manual operations. They cannot be directly applied to subsequent work, and there are discontinuities, "isolated islands" and structural features that are too small.
By preprocessing the density value image, the coordinate information of the contour pixel points is determined, and the optimal control points are selected using uniform point selection or greedy point addition, and curve fitting is performed to achieve high-fidelity two-dimensional structural model reconstruction.
It realizes high-fidelity parameterized automatic reconstruction of two-dimensional structures, solves the problems of smooth boundaries, difficulty in parameterization, and cumbersome manual operations. It is robust and timely, and provides a basis for subsequent parameter optimization or processing and manufacturing.
Smart Images

Figure CN115049691B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of two-dimensional structure model reconstruction, and in particular to a two-dimensional structure model reconstruction method and system based on image technology. Background Art
[0002] Currently, the topology optimization results of two-dimensional structural features have problems such as rough boundaries, difficulty in parameterization, and cumbersome manual operations, and cannot be directly applied to subsequent work.
[0003] The existing parametric reconstruction method of topology optimization results of two-dimensional structural features can solve the checkerboard phenomenon caused by the topology optimization results, but it does not solve the problems of discontinuity, "islands", and too small structural features in the topology optimization results. The existing parametric reconstruction method of topology optimization results of two-dimensional structural features can realize two-dimensional simple spline curve fitting, but it has the disadvantages of too many control points, too strong contour feature fitting and uncontrollable effect. Summary of the invention
[0004] The purpose of the present invention is to provide a two-dimensional structural model reconstruction method and system based on image technology, which solves the problems of rough boundaries, difficulty in parameterization, cumbersome manual operation, etc. in the topological optimization results of two-dimensional structural features, realizes high-fidelity parametric automatic reconstruction of two-dimensional structures, is robust and timely, and provides a basis for subsequent parameter optimization or processing and manufacturing.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] In a first aspect, the present invention provides a two-dimensional structure model reconstruction method based on image technology, comprising:
[0007] Pre-process the density value image to obtain complete and continuous black and white image information;
[0008] Determine the coordinate information of the outline pixel points according to the black and white image information;
[0009] Processing the coordinate information of the contour pixel points by uniform point selection or greedy point addition to determine the optimal control point;
[0010] Performing curve fitting on the optimal control point to obtain a high-fidelity curve;
[0011] A two-dimensional structural model is reconstructed according to the high-fidelity curve.
[0012] Optionally, the pre-processing of the density value image to obtain complete and continuous black-and-white image information specifically includes:
[0013] Based on the topology optimization results of the two-dimensional structural features, the density value image is obtained by cutting the picture;
[0014] According to the set grayscale threshold, the density value image is binarized to obtain image information in which the topological optimization result of the two-dimensional structural feature is white and the background is black;
[0015] The image information is processed according to the set opening and closing operation times and the corresponding filter kernel size to obtain complete and continuous black-and-white image information.
[0016] Optionally, determining coordinate information of contour pixel points according to the black-and-white image information specifically includes:
[0017] Capturing the closed contour of the black and white image information based on the Canny operator;
[0018] Based on the closed contour, coordinate information of contour pixel points is determined.
[0019] Optionally, the processing of the coordinate information of the contour pixel points by a uniform point selection method or a greedy point addition method to determine the optimal control point specifically includes:
[0020] For simple contours, the coordinate information of the simple contour pixel points is processed by uniform point selection to determine the optimal control point;
[0021] For complex contours, the coordinate information of the pixels of the complex contours is processed by greedy point addition to determine the optimal control point;
[0022] Among them, the simple contour is a contour with a number of corners less than a set threshold; the complex contour is a contour with a number of corners greater than or equal to a set threshold; the greedy point addition method is a method of using a greedy algorithm or a reinforcement learning algorithm based on uniform point selection.
[0023] Optionally, performing curve fitting on the optimal control point to obtain a high-fidelity curve specifically includes:
[0024] The optimal control point is fitted by using B-spline, T-spline, Bezier curve or parametric curve to obtain a high-fidelity curve.
[0025] Optionally, reconstructing the two-dimensional structure model according to the high-fidelity curve specifically includes:
[0026] Filling the high-fidelity curves between curves to obtain an initial reconstruction result;
[0027] By setting the coordinate sizes of the plane in the X and Y directions, the initial reconstruction result is stretched to obtain a two-dimensional structural model that meets the set requirements.
[0028] Optionally, the method further includes: converting the format of the two-dimensional structural model to obtain a general model format file that can be recognized by CAD software.
[0029] Optionally, the method further includes: rotating or stretching the two-dimensional structural model to obtain a three-dimensional geometric parameter model that meets the requirements.
[0030] In a second aspect, the present invention provides a two-dimensional structure model reconstruction system based on image technology, comprising:
[0031] The pre-processing module is used to pre-process the density value image to obtain complete and continuous black-and-white image information;
[0032] A contour pixel point coordinate information determination module, used to determine the coordinate information of the contour pixel points according to the black and white image information;
[0033] An optimal control point determination module is used to process the coordinate information of the contour pixel points by uniform point selection or greedy point addition to determine the optimal control point;
[0034] A curve fitting module, used for performing curve fitting on the optimal control point to obtain a high-fidelity curve;
[0035] The two-dimensional structure model reconstruction module is used to reconstruct the two-dimensional structure model according to the high-fidelity curve.
[0036] Optionally, it also includes: a three-dimensional geometric parameterized model determination module, which is used to rotate or stretch the two-dimensional structural model to obtain a three-dimensional geometric parameter model that meets the requirements.
[0037] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0038] The present invention provides a two-dimensional structural model reconstruction method and system based on image technology. By pre-processing the density value image, the discontinuity, "island" and too small structural features in the reconstructed object can be well solved without changing the size of the reconstructed object. The coordinate information of the contour pixel points is processed by uniform point selection or greedy point addition to determine the optimal control point, which solves the shortcomings of too many control points, too strong contour feature fitting and uncontrollable effect. Obviously, the present invention solves the problems of rough boundaries, difficult parameterization, and cumbersome manual operation in the topological optimization results of two-dimensional structural features, and realizes high-fidelity parameterized automatic reconstruction of two-dimensional structures, which is robust and timely, and provides a basis for subsequent parameter optimization or processing and manufacturing. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0040] Figure 1 A flowchart of a two-dimensional structure model reconstruction method based on image technology provided in Embodiment 1 of the present invention;
[0041] Figure 2 A topology optimization result diagram of a two-dimensional wheel feature provided in the second embodiment of the present invention;
[0042] Figure 3 A binarization result diagram provided in the second embodiment of the present invention;
[0043] Figure 4 The opening and closing operation result diagram provided by the second embodiment of the present invention;
[0044] Figure 5 A schematic diagram of a canny operator capturing contours provided in the second embodiment of the present invention;
[0045] Figure 6 A schematic diagram of multiple contour boundary pixel points provided in the second embodiment of the present invention;
[0046] Figure 7 A B-spline curve graph with greedy points provided in the second embodiment of the present invention;
[0047] Figure 8 A two-dimensional CAD model diagram provided in Example 2 of the present invention;
[0048] Fig. 9 A three-dimensional geometric parameterized model diagram provided in the second embodiment of the present invention;
[0049] Fig.10 This is a structural diagram of a two-dimensional structure model reconstruction system based on image technology provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] In recent years, research on feature extraction based on graphics has received widespread attention. For example, He Yu et al. have achieved skeleton extraction and reconstruction of original images by conducting research around mathematical morphological skeletons and skeleton extraction and reconstruction algorithms, indicating that graphics methods have application potential for two-dimensional structural feature extraction. Therefore, integrating graphics knowledge to carry out intelligent, parametric two-dimensional structural feature extraction and high-fidelity automated reconstruction research is in line with the current development trend.
[0052] In view of this, the present invention provides a two-dimensional structural model reconstruction method and system based on image technology, which solves the problems of rough boundaries, difficulty in parameterization, cumbersome manual operation, etc. in the topological optimization results of two-dimensional structural features, and realizes high-fidelity parametric automatic reconstruction of two-dimensional structures. It is robust and timely, and provides a basis for subsequent parameter optimization or processing and manufacturing.
[0053] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0054] The present invention provides a two-dimensional structure model reconstruction method and system based on image technology, and the technical route is: when performing two-dimensional structure feature extraction and model reconstruction technology, firstly, pre-processing is performed on the density value image file to obtain complete and continuous black-and-white image information; then, contour boundary points are obtained based on the Canny operator, and coordinate information of a series of contour boundary pixel points is obtained; then, the optimal control point is obtained by uniform point selection or greedy point addition strategy; then, the curve fitting accuracy is improved based on fitting methods such as B-spline and parametric curve; finally, the curves are combined to generate an initial reconstruction result, and the final reconstruction result is obtained by zooming in or out in the corresponding direction, and a general CAD model file is generated to facilitate processing and manufacturing in industry.
[0055] Embodiment 1
[0056] The existing parametric reconstruction method of topology optimization results of two-dimensional structural features can solve the checkerboard phenomenon caused by the topology optimization results, but it does not solve the problems of discontinuity, "islands", and too small structural features of the topology optimization results. In view of this, this embodiment proposes a preprocessing method, that is, obtaining a clear and accurate pixel model of the topology optimization result feature contour by means of opening and closing operations.
[0057] The existing parametric reconstruction method of the topological optimization results of two-dimensional structural features can realize two-dimensional spline curve fitting, but there are disadvantages such as too many control points, too strong contour feature fitting and uncontrollable effect. In view of this, this embodiment adopts the selection of corresponding optimal control points and curve parameter fitting for the obtained curve contour, so as to achieve the purpose of high-fidelity automatic model reconstruction for two-dimensional structure. Among them, when selecting the optimal control point, for simple curve contours (such as contours that are easy to describe such as perfect circles), the optimal control point can be selected by uniform point selection. For complex curve contours (such as contours that are difficult to describe such as irregular shapes), greedy point addition or reinforcement learning can be used on the basis of uniform point selection to adaptively determine the position of the optimal control point; and in the fitting process, high-fidelity curve contours can be obtained by means of B-spline, Bezier curve or parametric curve.
[0058] like Figure 1 As shown, this embodiment provides a two-dimensional structure model reconstruction method based on image technology, including:
[0059] Step 100: Pre-process the density value image to obtain complete and continuous black-and-white image information.
[0060] For the topological optimization results of the two-dimensional structural features, the corresponding density value image can be obtained by intercepting pictures, etc., and then a suitable grayscale threshold is set according to the specific situation, and the density value image is binarized into black and white to obtain image information in which the topological optimization results of the two-dimensional structural features are white and the background is black; finally, for the above image information, by setting the appropriate number of opening and closing operations and the corresponding filter kernel size, complete and continuous black-and-white image information is obtained, and this image is called a reconstruction object, completing the pre-processing operation of this embodiment.
[0061] The following detailed description is given for the binarization in the pre-processing process of density value images:
[0062] The density value image is binarized into black and white. By finding a suitable threshold T (range 0-255), all pixel points in the density value image whose pixel values are less than or equal to the threshold are set to one pixel value (black in this embodiment), and all pixel points in the density value image whose pixel values are greater than the threshold are set to another pixel value (white in this embodiment). The binarization operation is shown in the following formula:
[0063]
[0064] Among them, α (i,j) is the density value of each unit in the topology optimization result of the two-dimensional structural feature;
[0065] t (i,j)It is the density value of each unit in the topology optimization result of the two-dimensional structural feature after binarization.
[0066] When α (i,j) = 255, the image at that point is white. (i,j) =0, the corresponding color is black;
[0067] When t (i,j) =1, the image at that point is white; when t (i,j) When =0, the image at that point is black.
[0068] This achieves the effect of black and white binarization of the image. For special cases, the results can also be swapped to achieve the effect of debinarization.
[0069] The following detailed description is given for the opening and closing operations in the pre-processing of density value images:
[0070] The essence of opening and closing operations is expansion and erosion (opening operation first erodes and then expands, and closing operation is the opposite). The formula is as follows:
[0071] Dilation operation:
[0072] Corrosion operation:
[0073] In the formula, A is the white part of the binary image in step 100, and B is the size of the filter kernel. By setting the corresponding number of opening and closing operations and the size of the filter kernel, the discontinuity, "island" and too small structural features in the reconstructed object can be well solved without changing the size of the reconstructed object.
[0074] Step 200: Determine the coordinate information of the contour pixel points according to the black-and-white image information.
[0075] This step is the contour boundary point processing. For the reconstructed object obtained in step 100, the closed contour of the black and white image information is captured based on the Canny operator, and the coordinate information of the contour pixel points is determined based on the closed contour; among them, for complex boundaries (such as image contours with many corners), the smooth difference chain code can be used to identify the shape boundary segmentation points and split them into the coordinate information of multiple segments of contour pixel points.
[0076] Step 300: Process the coordinate information of the contour pixel points by uniform point selection or greedy point addition to determine the optimal control point.
[0077] This step is to select the optimal control point. According to the coordinate information of the contour pixel points obtained in step 200, the optimal control point of the contour is selected by uniform point selection or greedy point addition.
[0078] Among them, for simple contours (such as straight lines, perfect circles and other easy-to-describe contours), the optimal control points can be selected by uniform point selection; for complex curve contours (such as irregular shapes and other difficult-to-describe contours), greedy point addition or reinforcement learning methods can be used on the basis of uniform point selection to adaptively determine the optimal control point position.
[0079] A simple contour is a contour whose number of corners is less than a set threshold; a complex contour is a contour whose number of corners is greater than or equal to the set threshold; the greedy point addition method is a method that uses a greedy algorithm or a reinforcement learning algorithm based on uniform point selection.
[0080] The following is a detailed description of the process of selecting the optimal control point:
[0081] In a two-dimensional model reconstruction, each curve contour parameterization information obtained in step 200 is analyzed. For simple curve contours, contour boundary points can be uniformly selected; for complex curve contours, a greedy point addition strategy can be used, which is to establish an interpolation accuracy error characterization function, add contour boundary points at the point where the interpolation error is maximum based on a greedy algorithm, and then continuously select points in a cycle until the accuracy requirement is met or the upper limit of the number of points is reached. For example: there are 200 control points in the curve contour parameterization information, and 20 points are needed to meet the accuracy in this point selection. 15 points can be uniformly selected first, and the distance calculation is performed using the curve formed by the 15 points and the 200 control points. The point with the farthest difference is set as the 16th point, and so on, until the number of selected points reaches 20.
[0082] Step 400: performing curve fitting on the optimal control point to obtain a high-fidelity curve.
[0083] This step is curve parameterization fitting. Curve fitting is performed according to the selection result of the optimal control point in step 300, and a high-fidelity curve fitting effect is obtained through fitting forms such as B-spline, T-spline, Bezier curve or parametric curve.
[0084] In the process of primary curve parameter fitting, in order to ensure the curve fitting accuracy, a variety of fitting methods can be selected according to actual conditions, including but not limited to B-spline, T-spline, Beses curve or parametric curve.
[0085] Step 500: Reconstruct a two-dimensional structural model according to the high-fidelity curve.
[0086] This step is the reconstruction of the two-dimensional model. The high-fidelity curve obtained in step 400 is used to fill in the curves to obtain the initial reconstruction result, and then the initial reconstruction result is stretched by setting the coordinate size of the plane X and Y directions to obtain the final reconstruction result that meets the required size, and outputs a general model format file such as PRT, IGS or STP that can be recognized by CAD software, which is convenient for industrial processing and manufacturing.
[0087] The following detailed description is given for the 2D model reconstruction process:
[0088] In this step, since the density value images obtained each time are different, in the same model reconstruction process, the X and Y values set after the curve filling are based on the image information size of the reconstructed object, rather than directly determining the size of the reconstructed object. For example: the image pixels are 300×400, and the required reconstructed model size in the image is 150×150. When X is set to 600 and Y is set to 800, the size of the reconstructed model is 300×300.
[0089] Furthermore, the method provided in this embodiment also includes:
[0090] The two-dimensional structural model is converted into a format to obtain a general model format file that can be recognized by CAD software.
[0091] Furthermore, the method provided in this embodiment also includes:
[0092] The two-dimensional structural model is rotated or stretched to obtain a three-dimensional geometric parameter model that meets the requirements.
[0093] Embodiment 2
[0094] This embodiment provides a two-dimensional structure model reconstruction method based on image technology, which is as follows:
[0095] The first step is pre-processing of density value images. Figure 2 As shown in the figure, it is the topological optimization result of the two-dimensional wheel feature. According to the model analysis, in order to obtain the reconstructed object, that is, the reconstructed part (texture part) is white and the background part (white part) is black, it is necessary to perform a debinarization operation and set the grayscale threshold to 240 to obtain the required binary image, as shown in Figure 3 As shown, then, by setting the appropriate number of opening and closing operations and the filter kernel size (this time the opening and closing operations are performed 3 times, and the filter kernel size is 4), complete, continuous, and easy-to-reconstruct image information is obtained, as shown in Figure 4 As shown, at this time Figure 4 To reconstruct the object.
[0096] The second step is to process the contour boundary points. Based on the Canny operator, the closed contour is captured and the coordinate information of the boundary contour pixel points is extracted. The effect is as follows: Figure 5 As shown in the figure, for the topology optimization results, due to the large number of contour inflection points, the smooth differential chain code is used to identify the shape boundary segmentation points to obtain the coordinate information of the pixel points of the multi-segment contour boundary, as shown in the figure. Figure 6 shown.
[0097] The third step is to select the optimal control point. According to the coordinate information of the pixel points at the boundary of the segment contour obtained in the previous step, for this configuration, since there are many inflection points at the boundary contour, the greedy point addition strategy is used in this example. In order to make the effect of greedy point selection clearer, this step is performed together with the fourth step of curve parameter fitting, such as Figure 6 As shown in the figure, it is a greedy point-selecting B-spline fitting method.
[0098] The fourth step is curve parametric fitting. According to the selection result of the optimal control point in the third step, curve fitting is performed, and a high-fidelity curve fitting effect is obtained through fitting forms such as B-spline, T-spline, Bezier curve or parametric curve.
[0099] Step 5: Reconstruct the 2D model. Fill the high-fidelity curves obtained in the previous step, and set X = 41.25 and Y = 65.625 for this example. Finally, the final reconstruction result that meets the required size is obtained, as shown in the figure below. Figure 8 As shown, for this two-dimensional structure, a three-dimensional geometric parameterized model can be obtained by rotation in subsequent engineering, such as Fig. 9 As shown, it is easy to process and manufacture.
[0100] Embodiment 3
[0101] This embodiment provides a two-dimensional structure model reconstruction system based on image technology, such as Fig.10 As shown, including:
[0102] The pre-processing module 1 is used to pre-process the density value image to obtain complete and continuous black-and-white image information.
[0103] The contour pixel point coordinate information determination module 2 is used to determine the coordinate information of the contour pixel points according to the black and white image information.
[0104] The optimal control point determination module 3 is used to process the coordinate information of the contour pixel points by uniform point selection or greedy point addition to determine the optimal control point.
[0105] The curve fitting module 4 is used to perform curve fitting on the optimal control point to obtain a high-fidelity curve.
[0106] The two-dimensional structure model reconstruction module 5 is used to reconstruct the two-dimensional structure model according to the high-fidelity curve.
[0107] Furthermore, the system described in this embodiment also includes: a three-dimensional geometric parameterized model determination module, which is used to rotate or stretch the two-dimensional structural model to obtain a three-dimensional geometric parameter model that meets the requirements.
[0108] Compared with the prior art, the core points of the present invention are:
[0109] First, according to the two-dimensional structural feature extraction and parameterized modeling method based on image technology described in the technical solution, the focus is on the first step of density value image pre-processing. The operations on the binarized image mainly include: the number of opening and closing operations (the number of expansion and corrosion) and the size of the corresponding filter kernel.
[0110] Second, according to the two-dimensional structural feature extraction and modeling method based on image technology described in the technical solution, the focus is on selecting the optimal control points. The control point selection methods include but are not limited to uniform point selection, greedy point selection and reinforcement learning point selection methods.
[0111] Third, according to the two-dimensional structural feature extraction and modeling method based on image technology described in the technical solution, the focus is on curve parametric fitting, and the curve fitting methods include but are not limited to B-spline, T-spline, Beses curve or parametric curve.
[0112] Fourth, according to the two-dimensional structural feature extraction and modeling method based on image technology described in the technical solution, the focus is on the reconstruction of the two-dimensional model, and the size of the final output model can be controlled by setting the X and Y coordinates.
[0113] Compared with the prior art, the advantages of the present invention are:
[0114] The present invention can effectively solve the problems of discontinuity, "islands", too small structural features and the like existing in the parameterization of topological results by performing image processing through opening and closing operations.
[0115] The present invention can obtain the optimal control points of the curve contour by uniform point selection, greedy point selection or reinforcement learning according to the complexity of the reconstructed object.
[0116] In order to ensure high-precision curve reconstruction, the present invention can use fitting methods including but not limited to B-spline, T-spline, Beses curve or parametric curve according to actual conditions.
[0117] In order to ensure that the model output size is controllable, the present invention can set appropriate X and Y coordinates during the model reconstruction process according to actual conditions.
[0118] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0119] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, 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 the present invention.
Claims
1. A two-dimensional structural model reconstruction method based on image technology, It is characterized in that include: Pre-process the density value image to obtain complete and continuous black and white image information, including: Based on the topology optimization results of the two-dimensional structural features, the density value image is obtained by cutting the picture; According to the set grayscale threshold, the density value image is binarized to obtain image information in which the topological optimization result of the two-dimensional structural feature is white and the background is black; Processing the image information according to the set number of opening and closing operations and the corresponding filter kernel size to obtain complete and continuous black-and-white image information; Determine the coordinate information of the outline pixel points according to the black and white image information; The coordinate information of the contour pixel points is processed by a uniform point selection method or a greedy point addition method to determine the optimal control point, specifically including: For simple contours, the coordinate information of the simple contour pixel points is processed by uniform point selection to determine the optimal control point; For complex contours, the coordinate information of the pixels of the complex contours is processed by greedy point addition to determine the optimal control point; Among them, the simple contour is a contour with a number of corners less than a set threshold; the complex contour is a contour with a number of corners greater than or equal to a set threshold; the greedy point adding method is a method of using a greedy algorithm or a reinforcement learning algorithm on the basis of uniform point selection, and the method is to establish an interpolation accuracy error characterization function, and add contour boundary points at the point where the interpolation error is maximum based on the greedy algorithm, so as to continuously select points in a cycle until the accuracy requirement is met or the upper limit of the number of points is reached; Performing curve fitting on the optimal control point to obtain a high-fidelity curve; A two-dimensional structural model is reconstructed according to the high-fidelity curve.
2. A two-dimensional structural model reconstruction method based on image technology according to claim 1, It is characterized in that Determining the coordinate information of the outline pixel points according to the black-and-white image information specifically includes: Capturing the closed contour of the black and white image information based on the Canny operator; Based on the closed contour, coordinate information of contour pixel points is determined.
3. The two-dimensional structure model reconstruction method based on image technology according to claim 1, It is characterized in that The curve fitting of the optimal control point to obtain a high-fidelity curve specifically includes: The optimal control point is fitted by using B-spline, T-spline, Bezier curve or parametric curve to obtain a high-fidelity curve.
4. The two-dimensional structure model reconstruction method based on image technology according to claim 1, It is characterized in that The reconstructing the two-dimensional structure model according to the high-fidelity curve specifically includes: Filling the high-fidelity curves between curves to obtain an initial reconstruction result; By setting the coordinate sizes of the plane in the X and Y directions, the initial reconstruction result is stretched to obtain a two-dimensional structural model that meets the set requirements.
5. The two-dimensional structure model reconstruction method based on image technology according to claim 1, It is characterized in that Also includes: The two-dimensional structural model is converted into a format to obtain a general model format file that can be recognized by CAD software.
6. The two-dimensional structure model reconstruction method based on image technology according to claim 1, It is characterized in that Also includes: The two-dimensional structural model is rotated or stretched to obtain a three-dimensional geometric parameter model that meets the requirements.
7. A two-dimensional structural model reconstruction system based on image technology, It is characterized in that include: The pre-processing module is used to pre-process the density value image to obtain complete and continuous black and white image information, including: Based on the topology optimization results of the two-dimensional structural features, the density value image is obtained by cutting the picture; According to the set grayscale threshold, the density value image is binarized to obtain image information in which the topological optimization result of the two-dimensional structural feature is white and the background is black; Processing the image information according to the set number of opening and closing operations and the corresponding filter kernel size to obtain complete and continuous black-and-white image information; A contour pixel point coordinate information determination module, used to determine the coordinate information of the contour pixel points according to the black and white image information; The optimal control point determination module is used to process the coordinate information of the contour pixel points by uniform point selection or greedy point addition to determine the optimal control point, specifically including: For simple contours, the coordinate information of the simple contour pixel points is processed by uniform point selection to determine the optimal control point; For complex contours, the coordinate information of the pixels of the complex contours is processed by greedy point addition to determine the optimal control point; Among them, the simple contour is a contour with a number of corners less than a set threshold; the complex contour is a contour with a number of corners greater than or equal to a set threshold; the greedy point adding method is a method of using a greedy algorithm or a reinforcement learning algorithm on the basis of uniform point selection, and the method is to establish an interpolation accuracy error characterization function, and add contour boundary points at the point where the interpolation error is maximum based on the greedy algorithm, so as to continuously select points in a cycle until the accuracy requirement is met or the upper limit of the number of points is reached; A curve fitting module, used for performing curve fitting on the optimal control point to obtain a high-fidelity curve; The two-dimensional structure model reconstruction module is used to reconstruct the two-dimensional structure model according to the high-fidelity curve.
8. The two-dimensional structure model reconstruction system based on image technology according to claim 7, It is characterized in that Also includes: The three-dimensional geometric parameterized model determination module is used to rotate or stretch the two-dimensional structural model to obtain a three-dimensional geometric parameter model that meets the requirements.
Citation Information
Patent Citations
Automatic input device for cloth sample image based on image vector technology
CN101261685A
Method for designing three-dimensional cartoon toys based on pictures
CN101814196A
Two-dimensional topological optimization result geometric reconstruction method
CN107679333A
Secondary shape optimization design method for a topological boundary of a heat dissipation cold plate
CN109800507A
High-fidelity vector diagram conversion method for pixel type topological optimization result
CN113268842A
