# Product Image Generation Method Based on Morphological Optimization and Image Style Transfer
## 3 Optimization Design Model of Product Form Based on Genetic Algorithm and Esthetic Evaluation
### A Comprehensive Esthetic Evaluation Model for Product Form
#### 3.2.2 Construction of the Esthetic Index Formula  
The definition of the image coordinate system entails constructing a coordinate system tailored to a specific view of the product for the purpose of calculating the esthetic index. The origin \((X_{0},Y_{0})\) of this coordinate system is strategically positioned at the geometric center of the product's external contour. The precise coordinates of the origin are derived through meticulous analysis and measurement of the product's form and structure. Specifically, the coordinates of the origin are as follows: \begin{table}
\begin{tabular}{c c c} \hline
**Index ID** & **Aesthetic Index** & **Explanation of Meaning** \\ \hline \(D_{1}\) & Balance & Calculate the difference between the total weight of the elements on either side of the horizontal and vertical axes of symmetry. \\ \(D_{2}\) & Symmetry & Calculate the degree of symmetry between interface elements in the 3 directions of vertical, horizontal, and diagonal. \\ \(D_{3}\) & Proportionality & Calculates and compares the similarity between the scale values and the value scale between interface elements and layouts. \\ \(D_{4}\) & Rhythmicity & Rhythm is the dynamic generated when elements appear continuously according to certain rules, and is expressed through the arrangement order, size ratio, quantity distribution, and form changes of elements. \\ \(D_{5}\) & Sequentiality & Order is an indicator that quantifies whether the arrangement of interface elements conforms to the natural reading order of the human eye (from top to bottom, left to right, and large to small). \\ \(D_{6}\) & Integrity & Wholeness is a measure of how compact the layout of the elements is. The higher the degree of wholeness, the lower the morphological complexity, the easier it is to identify, and the more harmonious the morphology. \\ \(D_{7}\) & Regularity & The degree of regularity is the degree of alignment of the elements, including the left, right, top, and bottom alignment of the elements and the horizontal and vertical alignment of the centroid (the center of the smallest \\ \(D_{8}\) & Common Directionality & Describes the parallelism of the contour lines by how parallel they are. \\ \(D_{9}\) & Continuity & Continuity is a measure of the degree to which the visual continuity of the morphological elements within the contour line is grouped. \\ \(D_{10}\) & Simplification & Simplification is a measure of the degree to which a morphological element within a contour line has a set of visual simplifications. \\ \(D_{11}\) & Similarity & Similarity is a measure of the degree of visual similarity of morphological elements within the contour line. \\ \(D_{12}\) & Proportional Similarity & The similarity ratio is a measure of the similarity of the aspect ratio of elements; the higher the similarity ratio, the more harmonious the form. \\ \(D_{13}\) & Stability & Stability is a measure of the ability of a morphological element within a contour line to maintain its visual morphological stability. \\ \(D_{14}\) & Hierarchy & The factors affecting the degree of hierarchy are as follows: first, the distance between different levels and the distance within the layer, and second, the number of layers. \\ \(D_{15}\) & Contrast & Contrast refers to the difference in form and size of design elements, usually represented by changes in the length of the lines. \\ \(D_{16}\) & Complexity & The complexity of the contour is described in terms of the relative increment in the circumference of the contour relative to the perimeter of its convex hull. \\ \hline \end{tabular}
\end{table} 
Table 1: Explanation of the meaning of esthetic indicators. \[X_{0}=\frac{P_{i,\min}+P_{i,\max}}{2} \tag{1}\]  
\[Y_{0}=\frac{P_{\min,j}+P_{\max,j}}{2} \tag{2}\]  
In Equation, \(P_{i,\min}\) and \(P_{i,\max}\) signify the minimum and maximum pixel values in the horizontal direction, respectively, aligning with the leftmost and rightmost extremities of the product's external contour.