Archaeological utensil standard ornamentation pattern drawing method based on spherical reprojection technology
Through spherical reprojection technology and cone projection, the accuracy of pattern expansion diagrams in archaeological artifact drawings is solved, the image correction accuracy and authenticity are improved, and the accurate correction and expansion of photos of complex shape artifacts is achieved.
Patent Information
- Application Number
- CN202411150439.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-08
AI Technical Summary
In archaeological artifact drawings, it is difficult to accurately reflect the three-dimensional characteristics of the artifact when manually drawing the surface pattern expansion diagram of the artifact. The existing digital photogrammetry methods are costly and time-consuming, and it is difficult to accurately correct the photos of complex shape artifacts as orthogonal angles.
Using spherical reprojection technology, by reading photos taken at an inclined angle, fitting the spherical surface, establishing a spherical coordinate system, performing projection transformation, correcting the pattern to orthophore state, and expanding the pattern using cone projection.
It improves the accuracy and authenticity of image correction, can more accurately adjust the perspective of archaeological artifact photos, and draw accurate pattern expansion pictures.
Smart Images

Figure CN118918209A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology. Background Art
[0002] The basic requirement for drawing archaeological artifacts is to accurately reflect the original appearance of the artifacts, including their shape, size, patterns and other details, to ensure the scientificity and accuracy of the record. Through drawing, the shape and characteristics of the artifacts should be intuitively displayed to provide reliable visual data for archaeological research. Drawing requirements also include drawing orthographic images of the artifacts from different perspectives, especially when there are patterns on the surface of the artifacts, detailed pattern expansion drawings need to be drawn. When drawing archaeological artifacts manually, there are strict requirements for the placement of the artifacts, perspective selection and size measurement. However, even if these requirements are met, when drawing the expansion map of the surface pattern of the artifact, because it is usually necessary to convert the non-developable surface into a two-dimensional plane through projection transformation, this process cannot be completed by manual calculation. Therefore, in the process of manual drawing, the draftsman can often only rely on personal experience and draw the expansion map of the pattern by estimation.
[0003] In the practice of drawing archaeological artifacts, digital photogrammetry technology is sometimes used to collect data such as the shape of the artifacts, and then digital drawing is performed based on these digital photogrammetry results. This method can use computer graphics processing technology to generate orthophotos and pattern development maps of archaeological artifacts. However, this method requires high-precision digital photogrammetry equipment and involves a large amount of three-dimensional measurement work, so it is costly and time-consuming. On the other hand, in archaeological practice, a large number of cultural relics only have image data such as photos, and when drawing archaeological artifacts, they can only rely on these images for drawing. However, these cultural relic images usually do not meet the orthophoto conditions, and because the image data is a two-dimensional image, it is difficult to directly draw an accurate pattern development map. In order to meet the needs of drawing standard archaeological artifact maps from two-dimensional images, the artifact photos are usually corrected. At present, image correction technology mostly uses a polynomial-based geometric transformation method, which is suitable for the correction of relatively flat large-area plane photos, such as the processing of aerial images. However, for images with complex undulating models, polynomial transformations are difficult to accurately reflect the three-dimensional characteristics of the object. Archaeological artifacts often have complex shapes such as circles and cylinders. When using polynomial transformations, it is usually difficult to accurately correct photos of these artifacts to an orthographic angle through oblique photography, and therefore it is also difficult to draw an accurate unfolding diagram of the patterns. Summary of the invention
[0004] The purpose of the present invention is to provide a method for drawing standard pattern of archaeological artifacts based on spherical reprojection technology. Through the method of spherical reprojection, the part of the photo with patterns is corrected to an orthographic angle, and then through projection transformation, the pattern expansion diagram is obtained to improve the accuracy of image correction.
[0005] To achieve the above object, the present invention discloses the following technical solution:
[0006] The present invention provides a method for drawing a standard decorative pattern of an archaeological artifact based on a spherical reprojection technology, comprising the following steps:
[0007] Read the original artifact photos taken at a certain tilt angle;
[0008] The upper and lower boundary coordinates of the original artifact photo are obtained according to the position of the pattern to be drawn, and the fitting sphere S is obtained using the least squares method. 2 ;
[0009] According to the fitting sphere S 2 and the principal optical axis direction when the original artifact photograph was taken, respectively establishing a spherical coordinate system A and a spherical coordinate system B;
[0010] By means of projection transformation from the spherical coordinate system A to the spherical coordinate system B, the surface decoration of the archaeological artifact is transformed into an orthographic projection state;
[0011] The surface patterns of the archaeological artifacts are unfolded using conic projection, and a pattern unfolding diagram is drawn.
[0012] Optionally, the above-mentioned method for drawing standard decorative patterns of archaeological artifacts, wherein the step of obtaining the upper and lower boundary coordinates of the original artifact photo according to the decorative pattern position to be drawn includes:
[0013] Obtain the upper, lower, left and right boundary points P1, P2, P3, and P4 of the original artifact photo;
[0014] Obtain the coordinates P1 (x1, y1), P2 (x2, y2), P3 (x3, y3), and P4 (x4, y4) corresponding to the upper, lower, left, and right boundary points respectively.
[0015] Optionally, in the above-mentioned method for drawing standard decorative patterns of archaeological artifacts, the least square method is used to obtain the fitting sphere S 2 ,include:
[0016] Solve the best fitting circle of the upper, lower, left and right boundary coordinates P1, P2, P3, P4, and take the center C(x c ,y c ) and radius R, the equation of the fitting circle is expressed as follows:
[0017] (xxc ) 2 +(yy c ) 2 =R 2 ;
[0018] For each point P i (x i ,y i ),satisfy:
[0019] (x i -x c ) 2 +(y i -y c ) 2 =R 2 ;
[0020] Let a i =2x i , b i =2y i , And order Arranged, we can get Ax=b, where A is the coefficient matrix, x is the unknown vector, and b is the constant vector;
[0021] Using the least squares method, solve the normal equation A T Ax=A T b, so that the residual vector r = b-Ax square sum ||r|| 2 Minimum, where A T is the transpose of A, so we can solve for C(x c ,y c ),radius
[0022] The plane parallel to the image plane of the original artifact photograph and passing through the geometric center of the artifact is taken as the reference plane, and C(x c ,y c ) The projection point on the reference plane is the center of the sphere, R is the radius, and the resulting sphere is the fitting sphere S 2 .
[0023] Optionally, the above-mentioned method for drawing standard decorative patterns of archaeological artifacts is based on the fitting sphere S 2 Establish a spherical coordinate system A, including:
[0024] Let the fitting sphere S 2 The center of the sphere is the coordinate origin O;
[0025] The ray passing through the coordinate origin O, pointing to the top of the archaeological artifact, and perpendicular to the axis of the shooting direction is the Z axis;
[0026] The plane passing through the Z axis and perpendicular to the image plane is the XZ plane, the direction in which the camera points to the archaeological artifact is the positive direction of the X axis, the direction of the Y axis is determined according to the right-hand system, and a spherical coordinate system A is established, and the coordinate axis of the spherical coordinate system A is marked as X A , Y A , Z A .
[0027] Optionally, the above-mentioned method for drawing standard decorative patterns of archaeological artifacts, establishing a coordinate system B according to the main optical axis direction when the original artifact photograph was taken, comprises:
[0028] Let the fitting sphere S 2 The center of the sphere is the coordinate origin O;
[0029] The direction passing through the coordinate origin O and parallel to the plumb line pointing directly above the object is the Z axis direction;
[0030] The plane passing through the Z axis and perpendicular to the image plane is the XZ plane, the plane passing through the coordinate origin O and parallel to the horizontal plane is the XY plane, the projection of the direction axis of the camera pointing to the archaeological artifact on the XY plane is the positive direction of the X axis, the Y axis direction is determined according to the right-hand system, and a spherical coordinate system B is established, and the coordinate axis of the spherical coordinate system B is marked as X B , Y B , Z B .
[0031] Optionally, the above-mentioned method for drawing standard decorative patterns of archaeological artifacts, wherein the surface decorative patterns of the archaeological artifacts are transformed into an orthographic projection state by projecting the spherical coordinate system A into the spherical coordinate system B, comprises:
[0032] The point in the spherical coordinate system A Convert to the coordinates in the rectangular coordinate system A (x A ,y A ,z A )as follows:
[0033]
[0034]
[0035] z A =r A cos(θ A )
[0036] The rotation matrix around the Y axis is used to represent the transformation of the rectangular coordinate system B relative to the Z axis of the rectangular coordinate system A by an angle α clockwise. The rotation matrix around the Y axis is R y (α) is expressed as follows:
[0037]
[0038] Using the rotation matrix R y (α) to point (x A ,y A ,z A ) on the rectangular coordinate system B, and get the point (x B ,y B ,z B )as follows:
[0039]
[0040] The point (x B ,y B ,z B ) is converted to the coordinates in the spherical coordinate system B as follows:
[0041]
[0042]
[0043]
[0044] Optionally, the method for drawing standard decorative patterns of archaeological artifacts, wherein the decorative patterns of the archaeological artifacts are unfolded by using a conical projection method to draw a decorative pattern unfolding diagram, comprises: taking the Z axis Z of the spherical coordinate system B as the coordinate system B, B is the symmetry axis of the cone, the cone and the fitting sphere S 2 The patterns in the spherical coordinate system B are reprojected using conic projection at the upper and lower boundaries of the pattern strip to obtain the pattern expansion diagram.
[0045] Optionally, the above-mentioned method for drawing standard decorative patterns of archaeological artifacts, wherein the decorative patterns of the archaeological artifacts are unfolded by using a conical projection method and a decorative pattern unfolding diagram is drawn, further comprising:
[0046] Points in spherical coordinates using conic projection Mapped to the point (x, y) in the orthogonal conic projection coordinate system, r represents the radius, θ represents the polar angle, represents the azimuth, and the cone and the fitting sphere S 2 The two secant lines are the standard latitudes θ1 and θ2, where θ1<θ2. The cone scale factor n is calculated as follows:
[0047]
[0048] The scaling factor F is calculated as follows:
[0049]
[0050] Points The projection coordinate x is:
[0051]
[0052] The projection coordinate y is:
[0053]
[0054] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology as described above is implemented.
[0055] In addition, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology as described above.
[0056] The effects provided in the content of the invention are only the effects of the embodiments, not all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:
[0057] The present application provides a method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology, which reads the original artifact photo taken at a certain tilt angle; then obtains the upper and lower boundary coordinates of the original artifact photo according to the decorative position to be drawn, and uses the least squares method to calculate the fitting sphere S 2 ; Next, according to the fitting sphere S 2 The spherical coordinate system A and the spherical coordinate system B are established respectively according to the main optical axis direction when the original artifact photo was taken; then the surface decoration of the archaeological artifact is transformed into an orthographic projection state through the projection transformation from the spherical coordinate system A to the spherical coordinate system B; the decoration of the archaeological artifact is unfolded using the conical projection method, and the decoration unfolding diagram is drawn. This scheme uses archaeological artifact photos with a certain inclination, and corrects the part of the photo with decoration to an orthographic angle through the method of spherical reprojection, and then obtains the decoration unfolding diagram through projection transformation, which can more accurately adjust the viewing angle of the archaeological artifact photo and improve the accuracy and authenticity of image correction. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0059] Figure 1 A schematic flow chart of a method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology according to an embodiment of the present application;
[0060] Figure 2 This is a photo of the original artifact taken at a certain tilted angle;
[0061] Figure 3 for Figure 2 In the figure, a schematic diagram of the boundary points of the pattern position of the pattern expansion diagram is to be drawn;
[0062] Figure 4 It is a schematic diagram of the relationship between the spherical coordinate system A and the spherical coordinate system B;
[0063] Figure 5 for Figure 2 The orthographic projection image after the original artifact photo in the projection transformation;
[0064] Figure 6 The principle diagram for reprojecting the ornamentation in spherical coordinate system B using conic projection;
[0065] Figure 7 For the general Figure 5 The unfolded image of the pattern obtained after conic projection. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0067] It should be noted that references to "one embodiment", "embodiment", "example embodiment", etc. in this specification refer to the embodiment being described which may include specific features, structures or characteristics, but not every embodiment must include these specific features, structures or characteristics. In addition, such expressions do not refer to the same embodiment. Furthermore, when describing specific features, structures or characteristics in conjunction with an embodiment, whether or not there is an explicit description, it is indicated that incorporating such features, structures or characteristics into other embodiments is within the knowledge of those skilled in the art.
[0068] In addition, certain words are used in the specification and subsequent claims to refer to specific components or parts. Those with ordinary knowledge in the relevant field should understand that manufacturers can use different nouns or terms to refer to the same component or part. This specification and subsequent claims do not use differences in names as a way to distinguish components or parts, but use differences in the functions of components or parts as the criteria for distinction. "Including" and "including" mentioned throughout the specification and subsequent claims are open-ended terms and should be interpreted as "including but not limited to". In addition, the word "connected" here includes any direct and indirect electrical connection means. Indirect electrical connection means include connection through other devices.
[0069] The principle of the method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology in the embodiment of the present application is to first fit the part of the surface of the archaeological artifact with decorative patterns onto a spherical surface, and then use S 2 To represent this sphere. Then take the center O of this sphere as the origin of coordinates; take the ray passing through the origin O, pointing to the top of the artifact, and perpendicular to the axis of the shooting direction as the z-axis; take the plane passing through the z-axis and perpendicular to the image plane as the xz plane, take the direction in which the camera points to the archaeological artifact as the positive direction of the x-axis, determine the direction of the y-axis according to the right-hand system, establish the spherical coordinate system A, and mark its coordinate axes as XA, YA, and ZA. At this time, the decoration on the artifact is fitted as S 2 The ring-shaped stripes on the artifact, the patterns in the photograph are the projections of the spherical coordinate system A on the image plane of the photograph.
[0070] When taking photos of archaeological artifacts, the camera is usually not horizontal, but tilted downward at an angle α to the horizontal plane so that the edge of the artifact and other parts can be captured. Therefore, the angle of the photo taken at this time does not meet the orthographic direction requirements of archaeological artifact drawings. In order to meet the requirements of archaeological artifact drawings, the spherical coordinate system A needs to be converted.
[0071] Still with S 2 The center O of the sphere is the coordinate origin, the direction passing through the origin O and parallel to the plumb line pointing directly above the artifact is the z-axis direction, the plane passing through the z-axis and perpendicular to the image plane is the xz plane, the plane passing through point O and parallel to the horizontal plane is the xy plane, the projection of the direction axis of the camera pointing to the archaeological artifact on the xy plane is the positive direction of the x-axis, the y-axis direction is determined according to the right-hand system, and a spherical coordinate system B is established, and its coordinate axes are marked as XB, YB, and ZB.
[0072] Through projection transformation, the original artifact photo is reprojected from spherical coordinate system A to spherical coordinate system B, so that the surface decoration of the archaeological artifact can be corrected to the standard orthographic projection state. Then the artifact decoration is unfolded using conic projection to draw the decoration unfolding diagram. Conic projection is defined, with the z-axis (ZB) of spherical coordinate system B as the cone symmetry axis; the cone and sphere S 2 The patterns in the spherical coordinate system B are reprojected using conic projection at the upper and lower boundaries of the pattern strip, and finally the pattern unfolded diagram is obtained.
[0073] Specific reference Figure 1 , Figure 1 A schematic flow chart of a method for drawing a standard decorative pattern of an archaeological artifact based on spherical reprojection technology provided by an embodiment of the present application is shown, and the method comprises the following steps:
[0074] S110, read the original artifact photo taken at a certain tilt angle, such as Figure 2 For example, this is a photo of an original artifact.
[0075] S120, obtaining the upper and lower boundary coordinates of the original artifact photo according to the position of the pattern to be drawn, and using the least squares method to calculate the fitting sphere S 2 .
[0076] like Figure 3 As shown, obtain Figure 2 The position of the pattern to be drawn in the pattern expansion diagram is represented by the coordinates of its upper, lower, left and right boundaries. The four points marked in the figure are P1(x1,y1), P2(x2,y2), P3(x3,y3), and P4(x4,y4).
[0077] First, find the best fitting circle of the above four points with the center C(x c ,y c ) and radius R, the general equation of a circle is:
[0078] (xx c ) 2 +(yy c ) 2 =R 2 ;
[0079] For each point P i (x i ,y i )have:
[0080] (x i -x c ) 2 +(y i -y c ) 2 =R 2 ;
[0081] Expanding the above equation yields:
[0082]
[0083] Arranged:
[0084]
[0085] For ease of processing, let:
[0086]
[0087] Then the equation can be written as:
[0088]
[0089] In order to eliminate the nonlinear term in the above formula, a new variable is introduced:
[0090]
[0091] The following system of equations is obtained:
[0092] a1x c +b1y c +z-c1=0
[0093] a2x c +b2y c +z-c2=0
[0094] a3x c +b3y c +z-c3=0
[0095] a4x c +b4y c +z-c4=0;
[0096] Represent the above system of equations in matrix form:
[0097]
[0098] Let A be the coefficient matrix, x be the unknown vector, and b be the constant vector, then the above equation can be written as Ax = b. Use the least squares method to solve it. By solving the normal equation A T Ax=A T b to make the residual vector r = b-the sum of the squares of Ax ||r|| 2 Minimum, where A T is the transpose of A. From this we can solve C(x c ,y c ),radius The plane parallel to the image plane of the original artifact photograph and passing through the geometric center of the artifact is taken as the reference plane, and C(x c ,y c ) is projected on the reference plane as the center of the sphere and R is the radius of the sphere, which is the fitting sphere S 2 .
[0099] S130, according to the spherical surface S 2 and the main optical axis direction when the original photo was taken, and spherical coordinate system A and spherical coordinate system B are established respectively.
[0100] Assume that the sphere S 2 The center of the sphere is O, and O is the origin of the coordinate system; the ray passing through the origin O, pointing to the top of the artifact, and perpendicular to the axis of the shooting direction is the Z axis; the plane passing through the Z axis and perpendicular to the image plane is the XZ plane, and the direction in which the camera points to the archaeological artifact is the positive direction of the X axis. The direction of the Y axis is determined according to the right-hand system, and the spherical coordinate system A is established, and its coordinate axis is marked as X A , Y A , Z A At this time, the decoration on the object is fitted to S 2 The ring-shaped stripes on the artifact, the patterns in the photograph are the projections of the spherical coordinate system A on the image plane of the photograph.
[0101] Because when taking photos of archaeological artifacts, the camera is usually not horizontal, but tilted downward at a certain angle α from the horizontal plane, so that the image of the edge of the artifact and other parts can be captured. Therefore, the angle of the photo taken at this time does not meet the orthographic direction requirements of archaeological artifact drawings. In order to meet the requirements of archaeological artifact drawings, the spherical coordinate system A needs to be converted to the coordinate system.
[0102] Still with S 2 The center O of the sphere is the origin of the coordinate system. The direction of the line passing through the origin O and parallel to the plumb line pointing directly above the artifact is the Z axis direction. The plane passing through the Z axis and perpendicular to the image plane is the XZ plane. The plane passing through point O and parallel to the horizontal plane is the XY plane. The projection of the direction axis of the camera pointing to the archaeological artifact on the XY plane is the positive direction of the X axis. The Y axis direction is determined according to the right-hand system, and the spherical coordinate system B is established, and its coordinate axis is marked as X. B , Y B , Z B The relationship between spherical coordinate system A and spherical coordinate system B is as follows Figure 4 shown.
[0103] S140. Correct the surface patterns of the archaeological artifact to an orthographic projection state through the projection transformation from spherical coordinate system A to spherical coordinate system B.
[0104] The specific steps of projection transformation are as follows:
[0105] For a point in the spherical coordinate system A First convert it into the coordinates in the rectangular coordinate system A (x A ,y A ,z A )as follows:
[0106]
[0107]
[0108] z A =r A cos(θ A );
[0109] Because coordinate system B is rotated clockwise by an angle α relative to the Z axis of coordinate system A, a rotation matrix around the Y axis is used to represent this transformation. The rotation matrix R around the Y axis is y (α) is as follows:
[0110]
[0111] Apply the rotation matrix R y (α) to point (x A ,y A ,z A ) on the coordinate system B, and get the point (x B ,y B ,z B )as follows:
[0112]
[0113] The point (x B ,y B ,z B ) is converted to the coordinates in the spherical coordinate system B as follows:
[0114]
[0115]
[0116]
[0117] The original photo is converted to Figure 5 state.
[0118] S150. Use conical projection to unfold the patterns of the artifact and draw a pattern unfolding diagram.
[0119] Specifically, the z-axis (Z B ) is the symmetry axis of the cone, the cone and the sphere S 2The upper and lower boundaries of the decorative strip are intersected, and the decorative strip in the spherical coordinate system B is reprojected using conic projection, such as Figure 6 shown.
[0120] Points in spherical coordinates using conic projection Mapped to the point (x, y) in the orthogonal conic projection coordinate system. Here, r represents the radius, θ represents the polar angle (zenith angle), Indicates azimuth (or longitude). 2 The two secant lines are the standard latitudes θ1 and θ2, where θ1<θ2. Calculate the cone scale factor n:
[0121]
[0122] Calculate the scaling factor F:
[0123]
[0124] Points The projection coordinate x is:
[0125]
[0126] The projection coordinate y is:
[0127]
[0128] The image after projection transformation is as follows Figure 7 As shown. Figure 5 You can draw the orthophoto of the standard archaeological artifact pattern, trace Figure 7 Accurate pattern expansion diagram can be drawn.
[0129] Since when using archaeological artifact photos to draw archaeological artifact maps, traditional image correction methods are only applicable to situations where the surface of the artifact is close to a plane. However, the surfaces of most archaeological artifacts are closer to a spherical surface, so traditional image correction methods cannot provide a good correction effect. In step S110 of the technical solution of the present invention, a spherical surface is innovatively used to fit the part with decorations on the surface of the artifact, which is more in line with the real surface state of the artifact. In steps S120-S140 of the technical solution, two different spherical coordinate systems are innovatively set, corresponding to the camera posture and the artifact's own form when taking pictures, respectively. By performing projection transformation between the two spherical coordinate systems, the viewing angle of the original artifact photo can be corrected and the image can be adjusted to the orthographic angle. In step S150 of the technical solution, a conical projection method is used to obtain the decoration expansion diagram, and the precise coordinate formula calculation replaces the final measurement and graphic conversion, which is more objective and true, and has higher data accuracy.
[0130] An embodiment of the present application also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology as described in the above embodiment.
[0131] In addition, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology as described in the above embodiment is implemented.
[0132] Although the present application has been described in detail above with general descriptions and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements may be made to the present application. Therefore, these modifications or improvements made without departing from the spirit of the present application all fall within the scope of protection claimed in the present application.
[0133] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology, characterized in that: The following steps are involved: Read the original artifact photos taken at a certain tilt angle; The upper and lower boundary coordinates of the original artifact photo are obtained according to the position of the pattern to be drawn, and the fitting sphere S is obtained using the least squares method. 2 ; According to the fitting sphere S 2 and the principal optical axis direction when the original artifact photograph was taken, respectively establishing a spherical coordinate system A and a spherical coordinate system B; By means of projection transformation from the spherical coordinate system A to the spherical coordinate system B, the surface decoration of the archaeological artifact is transformed into an orthographic projection state; The surface patterns of archaeological artifacts are unfolded using conic projection, and a pattern unfolding diagram is drawn.
2. The method for drawing standard decorative patterns of archaeological artifacts according to claim 1, characterized in that: The step of obtaining the upper and lower boundary coordinates of the original artifact photo according to the position of the pattern to be drawn includes: Respectively obtain the upper, lower, left and right boundary points P1, P2, P3, and P4 of the original artifact photo; Obtain the coordinates P1 (x1, y1), P2 (x2, y2), P3 (x3, y3), and P4 (x4, y4) corresponding to the upper, lower, left, and right boundary points respectively.
3. The method for drawing standard decorative patterns of archaeological artifacts according to claim 2, characterized in that: The least square method is used to find the fitting sphere S 2 ,include: Solve the best fitting circle of the upper, lower, left and right boundary point coordinates P1, P2, P3, P4, and take the center C(x c ,y c ) and radius R, the equation of the fitting circle is expressed as follows: (x-x c ) 2 +(y-y c ) 2 =R 2 ; For each point P i (x i ,y i ), satisfying the following formula: (x i -x c ) 2 +(y i -y c ) 2 =R 2 ; Let a i =2x i , b i =2y i , And order Arranged, we can get Ax=b, where A is the coefficient matrix, x is the unknown vector, and b is the constant vector; Using the least squares method, solve the normal equation A T Ax=A T b, so that the residual vector r = b-Ax square sum ||r|| 2 Minimum, where A T is the transpose of A, so we can solve for C(x c ,y c ),radius The plane parallel to the image plane of the original artifact photograph and passing through the geometric center of the artifact is taken as the reference plane, and C(x c ,y c ) The projection point on the reference plane is the center of the sphere, R is the radius, and the resulting sphere is the fitting sphere s 2 .
4. The method for drawing standard decorative patterns of archaeological artifacts according to any one of claims 1 to 3, characterized in that: According to the fitting sphere s 2 Establish a spherical coordinate system A, including: Let the fitting sphere s 2 The center of the sphere is the coordinate origin O; The ray passing through the coordinate origin O, pointing to the top of the archaeological artifact, and perpendicular to the axis of the shooting direction is the Z axis; The plane passing through the Z axis and perpendicular to the image plane is the XZ plane, the direction in which the camera points to the archaeological artifact is the positive direction of the X axis, the direction of the Y axis is determined according to the right-hand system, and a spherical coordinate system A is established, and the coordinate axis of the spherical coordinate system A is marked as X A , Y A , Z A .
5. The method for drawing standard decorative patterns of archaeological artifacts according to claim 4, characterized in that: The step of establishing a coordinate system B according to the main optical axis direction when the original artifact photograph was taken includes: Let the fitting sphere S 2 The center of the sphere is the coordinate origin O; The direction passing through the coordinate origin O and parallel to the plumb line pointing directly above the object is the Z axis direction; The plane passing through the Z axis and perpendicular to the image plane is the XZ plane, the plane passing through the coordinate origin O and parallel to the horizontal plane is the XY plane, the projection of the direction axis of the camera pointing to the archaeological artifact on the XY plane is the positive direction of the X axis, the Y axis direction is determined according to the right-hand system, and a spherical coordinate system B is established, and the coordinate axis of the spherical coordinate system B is marked as X B , Y B , Z B .
6. The method for drawing standard decorative patterns of archaeological artifacts according to claim 5, characterized in that: The method of transforming the surface decoration of the archaeological artifact into an orthographic projection state by projecting the spherical coordinate system A to the spherical coordinate system B includes: The point in the spherical coordinate system A Convert to the coordinates in the rectangular coordinate system A (x A ,y A ,z A )as follows: z A =r A cos(θ A ) The rotation matrix around the Y axis is used to represent the transformation of the rectangular coordinate system B relative to the Z axis of the rectangular coordinate system A by an angle α clockwise. The rotation matrix around the Y axis is R y (α) is expressed as follows: The rotation matrix R y (α) is applied to the point (x A ,y A ,z A ) on the rectangular coordinate system B, and get the point (x B ,y B ,z B )as follows: The point (x B ,y B ,z B ) is converted to the coordinates in the spherical coordinate system B as follows:
7. The method for drawing standard decorative patterns of archaeological artifacts according to claim 6, characterized in that: The method of using a conic projection method to unfold the decoration of the archaeological artifact and draw a decoration unfolding diagram includes: using the Z axis Z of the spherical coordinate system B B is the symmetry axis of the cone, the cone and the fitting sphere S 2 The patterns in the spherical coordinate system B are reprojected using conic projection at the upper and lower boundaries of the pattern strip to obtain the pattern expansion diagram.
8. The method for drawing standard decorative patterns of archaeological artifacts according to claim 7, characterized in that: The method of unfolding the surface decoration of the archaeological artifact by using a conical projection method and drawing a decoration unfolding diagram also includes: Points in spherical coordinates using conic projection Mapped to the point (x, y) in the orthogonal conic projection coordinate system, r represents the radius, θ represents the polar angle, represents the azimuth, and the cone and the fitting sphere S 2 The two secant lines are the standard latitudes θ1 and θ2, where θ1<θ2. The cone scale factor n is calculated as follows: The scaling factor F is calculated as follows: Points The projection coordinate x is: The projection coordinate y is:
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements a method for drawing standard decorative patterns of archaeological artifacts based on spherical reprojection technology as described in any one of claims 1 to 8.
Citation Information
Cited By
Yuan blue-and-white decoration gene pool construction and AI derivative design system and method
CN120599405A
