Study on the Performance of Image Color Style considering Brushstroke Control Factors

To address the issues of high time consumption, low recall rate of image color styles, and poor image color processing outcomes in existing methods, we proposed an image color style performance analysis method that takes brushstroke control elements into account. We investigate the connection between brushstroke control parameters and picture color style performance. Furthermore, assuming that the brushstroke components are completely considered, we evaluate the image’s color composition to derive the R, G, and B values and apply the cloning process to prejudge the image’s color style. Based on the color style prejudgment, the median segmentation method for color quantization is used to increase the efficiency of image color style extraction, and the cumulative histogram is used to categorize the image color style. *e experimental findings reveal that the suggested technique has low time complexity, good picture color accuracy, and recall and does not generate uneven image color brightness.


Introduction
Color is present in many aspects of life. Color exists as long as light exists. Color is seen directly and quickly by people [1]. e light source stimulates the retina of the eye, and the associated signal is received and transferred to the brain through the optic nerve [2,3]. rough analysis and judgment, the brain forms vision. Color is a key aspect of a picture that may significantly influence the image's impression [4]. Color may be used to portray emotions, depict the mood of a tale, and improve visual appeal in photographs, and it is an essential approach to improving image communication [5]. Color is an important factor in picture drawing. Color has a route to follow in the visual creation process as one of the essential aspects [6]. At the moment, predecessors have studied and investigated the issue of picture color style performance, but there are few more systematic and mature ideas [7].
Cao et al. [8] proposed a technique for evaluating image color quality and performance. First, the brightness, hue, and saturation of a color image are extracted based on the characteristics of the human visual system. e brightness component is convoluted with the Scharr operator, the edge features of the image brightness channel are extracted, and the edge features of the part with a strong brightness change are obtained. Simultaneously, the hue and saturation are treated as color features. Secondly, the edge features of the grayed image are extracted to obtain the edge features of the part with slow brightness change. Finally, the edge features of the grayed image are extracted to obtain the edge features of the part with slow brightness change. Finally, an assessment model of color image quality and performance is constructed by combining the criteria mentioned above. To acquire the spectrum of the Fourier transform, the color image is first described by a quaternion matrix. en the quaternion Fourier transform is performed to produce the spectrum of the Fourier transform. e second step is to determine the threshold of the high-frequency component of the signal. Finally, the number of pixels in the spectrum that are bigger than the threshold value is used to determine the quality of the color image. e testing findings demonstrate that this approach of evaluating the picture color performance ability is consistent with the subjective assessment results. Despite this, the algorithm does not consider the peculiarities of distinct color styles, and the recall rate for image color styles is not very high. Chen et al. [9] introduced a blind image quality assessment approach based on the complementary color wavelet domain and constructed natural scene statistics, multiscale, and directional energy distribution models of image complementary color domain. e investigation demonstrates that complementary color may effectively describe the information connection between multiple channels of a color image and give a set of efficient characteristics to assess image quality. Statistical features of image distortion can be effectively extracted based on these features. e experimental results demonstrate that the evaluation results of their method are consistent with the subjective evaluation results of human eyes. But that the display results of image color performance are poor when the analysis of image color performance is carried out using our proposed method. It is possible to encounter issues such as picture color loss and uneven brightness.
Using brushstroke control components, we proposed an image color style performance analysis technique that addresses time consumption, low recall rate of image color styles, and poor image color processing outcomes. On the other hand, we look at the relationship between brushstroke control parameters and image color. Furthermore, we use the cloning process to prejudge the image's color style, provided the brushstroke components are fully examined. e cumulative histogram characterizes the picture color style based on the prejudgment color style. e proposed approach has minimal time complexity, excellent picture color accuracy, and recall and does not produce uneven image color brightness. Color is often a sensory experience of nature and civilization. Each hue has its feeling, and each person's color emotion is likewise unique. When individuals view a given color, they do not simply remain in that color's feeling, but they also make certain associations with that color to develop their own color emotion [10,11]. Color qualities, processing methods, emotional expression, and stylistic features of works may all be observed in image processing.

2.1.2.
Render the Atmosphere Image. Color may be used to explain the material, portray emotions, and improve the ambiance. Colors are used differently in various picture styles. Realistic photos should be founded on objective nature and then handled creatively. Images in the decorative style have a strong formal beauty and may be produced using flat, basic, and subjective color themes. According to the above-mentioned emotional expression effects of colors, the atmospheric depiction of colors is often dependent on the psychological sensations of colors. e fundamental objective of the picture to be exhibited is more clearly communicated via the use of color, which may increase the comprehension of the image content and emotional substitute and enrich the visual experience.

Analysis of Control Factors of Brush Strokes.
Being one of the image's physical textures, the stroke belongs to the image's most fundamental visual unit. Strokes may also exhibit numerous rhythmic esthetics, such as thickness, falseness, realism, stroke weight, and density. e overlap between strokes and strokes creates a distinct charm and adds tension to the picture. Artists are often motivated by their personal emotions throughout the production process. ey incorporate these feelings into their art by using vibrant colors and fluid pen movement. e pieces exude a powerful emotional atmosphere that infects and affects the audience.
ere are variances in the priority of strokes, the direction of movement, and the emotion directing the velocity of strokes in the process of creation, which not only makes the picture more dynamic and has distinct life and creative expression but also generates images with diverse images styles.
Artists should seek the most honest and expressive creative inspiration. e motorway is often mirrored most naturally in the painter's pen how to utilize it freely and communicate an identity via the rhythm of the brush [12]. Not only is the form interesting, but also is the color, as well as the pen. Because artists may freely pick a hue they want to paint, such freedom can frequently alleviate most of an artist's restraints. Strokes will very definitely be used to coordinate the interaction between perception and illusion. ey can communicate supernatural notions exactly because they have broken free from the shackles of copying nature. A stroke is the most fundamental unit of expression for artists in their work. e inner world communicates with the observer to establish visual harmony due to the unintended flow and swing of the stroke. People's affection for a painting is often shown via the expressive technique of a person on the artwork. Some individuals like the simple, expressive form and might be emotionally influenced by it.

Image Color Style Performance Analysis
According to the findings of the preceding investigation, the creator's color style will be influenced by stroke elements throughout the picture production process. Taking this aspect into account, the expression form of image color style is further analyzed, and the image color characteristics are mined from the perspectives of image color composition, color style, and color characteristics to produce image color analysis and assessment findings.

Image Color Composition.
e image's hue is determined by the delicate interaction of light and the object's surface material in the actual scenario. e modern computer graphics lighting model includes a complete description of the interaction between the object material and the light. In both the basic lighting model and the twocolor lighting model, incoming light is reflected off the object's surface in two ways as follows: the first kind of reflection is surface reflection. e surface of an object reflects all light to its surface; the second method is known as body reflection. When light strikes an object's surface, it selectively absorbs some of it while releasing some of it. e spectral distribution of incoming light is altered by body reflection. e reflected light is affected not only by the spectral properties of the incident light but also by the object's surface characteristics. Any light's spectral energy distribution (SPD) can be used to characterize it, and (λ (t) ) represents the spectral energy. Suppose the two-color light reflection model characterizes the spectral energy distribution, the spectral energy (λ (t) ) reflected from a point on the object surface can be expressed as a linear combination of two spectral energies such as the spectral energy (λ 1(t) ) reflected by the body and the spectral energy (λ 2(t) ) reflected by the surface, as shown in the following formula: Because the color perceived by humans is mostly affected by lighting and material qualities, the material substantially influences the color in ordinary natural settings with homogeneous illumination. Distinct materials in a photograph often indicate different places. As a result, the color distribution in the local picture region is generally simpler and more regular. e region of the item with an evident surface reflection is substantially less in ordinary natural scene photos than the area of the body reflection. e hue of ontology reflection can be seen in most settings, including trees, mountains, sky, people, buildings, and highways. Assume the nonbody reflection region appears in the picture, or appears as a brilliant flare, or reflects and projects the color of the surrounding objects, such as the glass of the lake, sea, and buildings, like a mirror. In such a situation, their color distribution might be seen as a reflection of the color of the surrounding items. As a result of this insight, formula (1) is reduced as follows: Assuming a digital camera captures the image with three-color linear response, the R, G, and B values recorded by the image for the outgoing light with the spectrum of λ(t) are as follows: It can be seen from formula (3) that the rays emitted from the same surface are all along the (R λ , G λ , B λ ) vector.

Prejudgment of Color Style.
After analyzing the basic color composition of the image, the color style of the image is judged. e original image and the target image are set to I a and I b , respectively. To calculate the percentage of basic colors in the original and target image, we first determine if the target image is impacted by colored light. A cloning method is required to prejudge the image's color style to tackle this difficulty. e cloned selection region should retain the same ambient light color when the target image's ambient light is a colored light source. As a result, the target picture's color takes up a higher percentage; the cloned selection and target image pixels in the color gamut space should be united in a compact region. e average boundary color difference D is introduced as the translation distance of the cloned selection in the color gamut space. For any pixel k on the boundary of the cloned selection, the displacement is determined by the following formula: Among them, |p k | represents that the pixel corresponds to the color value in the target image; p k represents that the pixel corresponds to the color value in the original image; m represents the number of pixels on the image boundary.
When the destination image's ambient light is white, the foreground item in the cloned selection area should retain its original color. However, the border must still be consistent with the target image's backdrop color to provide a smooth transition effect. Since the D value produces the same amount of color change for all pixels in the selection, in order to control the color of the clone selection, it is necessary to distinguish the translation amount of the foreground area and the background area. erefore, it is necessary to add a color control variable α on the basis of the color average difference D to distinguish the color gamut translation amount. e α value is determined by the Euclidean distance [13] and the color distance between the inner pixel and the boundary pixel. e expression of α is as follows: where φ i represents the distance constraint parameter. e shortest distance between the current pixel and the boundary of the cloned selection can be set to φ i (min), and the expression is as follows: Among them, d r (t) represents the boundary of the cloned selection area; H r (t) 2 represents the light judgment parameter.
It is further restricted by the color distance. When the pixels in the cloned selection meet the color constraints of formula (7), then φ i (min) is changed to 1.
For any pixel k in the cloned selection, the specific color distance constraint judgment formula is as follows: Among them, color threshold represents the color threshold; D color (k) represents the color difference; z color (k) Mobile Information Systems represents the average color of the original image boundary pixels.

Color Quantization Algorithm.
Color quantization is conducted based on color style prejudgment to increase the efficiency of picture color style extraction. e color quantization algorithm's major purpose is to represent color pictures with rich colors using a limited number of color sets while attempting to retain the vivid display impact of the original color images [5].
In the realm of image processing, the median segmentation method is increasingly commonly employed. e basic idea behind the median segmentation algorithm is as follows: in RGB color space, the three primary colors of R, G, and B correspond to the three coordinate axes of the space, and each coordinate axis is quantized as 0-255, with 0 corresponding to the darkest (black), and 255 corresponding to the brightest to form a color cube with 256 side length, with all possible color values in the original image corresponding to a point in the cube. e cube is made up of 256 tiny cuboids. As seen in Figure 1, each cuboid in the picture includes the same number of color spots.
By removing each little cube's center point, the colors represented by these points are the 256 colors required to depict the image color attributes. e fundamental feature of this technique is that each color in the final color table may represent the same number of color points as in the original image. is algorithm's particular procedure is as follows: (1) e three fundamental colors of R, G, and B correlate to the space's three coordinate axes. Each coordinate axis is assigned a value between 0 and 255. 0 represents the darkest (black), while 255 represents the brightest. In this manner, a color cube with 256 side lengths is produced. e smallest cube containing all of the original image's color points. e size of the box in R is defined by the color coordinates of the lowest and maximum color points in each of the three directions. (2) To split the cuboid, we must first determine which color edge to divide. Typically, the cuboid is split along its longest length while attempting to guarantee that an equal number of color spots fall on both sides of the cutting plane. At this stage, we have two cuboids with an equal amount of color points. (3) e process of step (2) is executed recursively until N cuboids are finally produced, that is, the number of colors that can be contained in the color table. (4) e representative color of each rectangular parallelepiped after segmentation is selected, which is generally represented by the average value of the original image colors that fall into that rectangular parallelepiped and fill in the n colors in the color table. (5) And each color point in the original image will be mapped to the representative color value of that area according to the area it falls into in the median segmentation algorithm. e median segmentation approach distinguishes itself by using the image's color information to segment the color space, and a nonuniform quantization algorithm may provide superior quantization results. e downside of this technique is that it requires complex sorting effort, has a high memory cost, and takes a long time to wait. In response to this issue, the image color style will be improved and categorized using the image color classification technique, which is easy for focused color analysis, to decrease the time consumption of image color style analysis.

Image Color Style Classification Based on Cumulative
Histogram. e color histogram [14] is a popular picture analysis tool. e histogram retains the image's color information. It is still impossible to characterize the image's overall color style using typical histograms. Traditional histograms make it difficult to capture the image's overall color style. As a result, the cumulative histogram is used in this article to identify the picture color style.
A cumulative histogram is a useful tool for classifying an image's overall color style. It primarily uses the cumulative histogram of several image sections to form a complete judgment on the image's color style. e cumulative histogram is the total number of pixels after counting numerous successive image frames at a certain gray level. It indicates the total of all images to be tallied on a certain gray level. Figure 2 depicts the image's cumulative histogram. e gray level is the abscissa of the cumulative histogram in Figure 2. e ordinate is the total number of pixels in the image in the current region and all prior gray level areas. e cumulative function expression of the first j frame sequence frame of the image is as follows: Among them, φ j represents the gray level; φ j (k) represents the gray histogram of the image frame; D(i) represents the image block histogram mapping function. e function expression of the number Y(j) of pixels corresponding to a certain gray level in the image is as follows: Among them, μ ij represents the gray level difference of the background segment; ω jk represents the membership degree of the function; J 2 (ω) represents the image gray level mapping transformation function.

Image Color Style
Extraction. An image's color feature is a global feature that conveys the surface qualities of the picture or scene relating to a specific section of the image. Color features are often dependent on pixel properties, and each pixel in a specific region contributes to the overall color scheme. Histogram intersection, distance, reference color table, cumulative color histogram, and other approaches derive picture color styles. e image color feature extraction method serves as the foundation for image color style analysis and assessment. e impact of image color performance analysis can only be enhanced by using an appropriate color extraction technique to determine the attributes of the image color style.
When extracting picture color styles, the issue of too slow performance is often encountered. is work uses the image color style extraction approach based on the binary value method [15] to decrease the time consumption caused by extracting image color feature values as much as feasible. e following is the workflow: (1) An appropriate color space is chosen based on the research needs.

Image Color Feature Point Extraction.
When employing the binary value technique to extract the color feature value of an image, if just a few points at a certain area are retrieved, the derived feature value will be more partial and unfavorable. A single point cannot represent a specific one. Color qualities that are only partially present. When such points are kept in a lattice, the total eigenvalues suffer from greater inaccuracies. As a result, the weighted average approach is applied here to increase the accuracy of the derived feature values. As a result, the derived feature value is no longer the feature value of a single feature point but the feature value of a feature point plus the weighted average of the feature values of its surrounding pixels. e weights are set as specified in Table 1.
e formula for obtaining the average color characteristic value is as follows: Among them, W j represents the color feature value; t 0 represents the feature value of a certain pixel around the pixel obtained by the binary value method; t 1 represents the weight of the intermediate point.
e image feature value acquired via this weighted average process has a certain degree of representativeness. It may represent the color feature value of a specific area of the picture, enhancing the feature value's precision.

Image Color Style Performance Analysis and Evaluation
Realization. e image's average value and standard deviation [16] are used to quantify the image's color style performance impact based on the image color feature extraction findings. e image's first-and second-order statistical characteristics are linearly transformed. e target picture contains statistics similar to the original image attributes to generate a visually comparable color effect. e RGB color space of the target image and the original image is transferred to the LAB color space [17,18], and M,the local area that needs color transfer, is selected. e local area that needs color transfer is selected in the target image and the original image. Let z i and z j be the corresponding areas in the original image and the target image, and ℓ(i, j) is the color channel value of pixel (i, j) in the reference image. We then calculate the color distribution statistics of the corresponding area and calculate the average value and standard deviation of the different color channels in the image [19]: Among them, χ p represents the color average of the image RGB space; t kj represents the color average; g kj represents the color gain; E k ij represents the color gamut mapping of different color spaces; J i represents the dynamic threshold; V i represents the average value of the variance; d k i Mobile Information Systems represents the image color space channel component; V i represents the image gray mean square error. e formula as mentioned above, image's average value and standard deviation may assess image color style performance attributes and measure image color performance ability, therefore attaining the preset aim.

Experimental Research
Experiments on time complexity, precision, recall, and image color balance will be carried out to verify the effectiveness and feasibility of the proposed image color style performance analysis and evaluation method, considering stroke control factors to verify the method's application effect.

Experimental Hardware Environment and Settings.
e experiment is run on the Windows 10 operating system, using a 3.2 GHz Intel CPU, 8 GB of RAM, and a Matlab2016a programming experiment. e experiment is validated in this hardware and simulation software environment.
All of the pictures used in the experiment were from the Corel image library. e Corel image library, which comprises numerous CDs, includes a wide range of themes such as vehicles, dinosaurs, and beaches. Each CD includes 100 photos of various sizes that may be translated into various formats. e Corel picture collection is often divided into three sections as follows: 4000 photos for training, 500 images for verification, and the remaining 500 images for testing. In this article's experiment, some images from the image library are arbitrarily chosen as the target image. e method of this article, the image color quality and performance evaluation method, and the nonreference color image quality evaluation algorithm based on quaternion Fourier transform are compared. e following is an explanation of the experimental method:  Figure 4 shows the outcome of comparing this approach's image color style analysis impact of    this approach with the standard way using time complexity as an experimental indication. During the experiment, the time consumption of the three approaches is documented. Figure 4 shows the technique that is used in this study's analysis and that the evaluation time is relatively short. e time consumption of the method in this study does not vary greatly due to different picture types in varied image color analysis. e old process takes a long time, and the time needed for various picture categories varies substantially. It demonstrates that the time complexity of this technique is minimal and that it has clear benefits over previous methods.

Experiment 2.
e recall rate and accuracy rate of the image color style are compared as experimental indicators to verify the performance of the technique in this study to assess the analytical impact of the method in this study on the image color expression style. e accuracy and recall rates are stated as follows:   Among them, U 1 represents the number of image color blocks obtained in the analysis; U 2 represents the total number of image color blocks; L represents the overall number of image blocks. e comparison results of the three methods are listed in Tables 2 and 3. e experimental results in Tables 2 and 3 show a clear difference between the approach in this study and the old way, whether it is recall rate or accuracy rate. Evaluating Table 2 reveals that this method's maximum recall rate is 99.0%, while analyzing Table 3 reveals that this method's highest accuracy rate is 97.6%. Its benefits are evident, suggesting that it can collect more and more correct image color elements in image color performance analysis, implying that the findings provided by this approach are more thorough and accurate. is is because the approach employs a weighted average method. erefore, the feature value generated by feature extraction is the feature value of a feature point plus the weighted average of the feature values of its surrounding pixels, rather than the feature value of a single feature point. As a consequence, the image color performance analysis findings are more accurate.

Experiment 3.
To study the application performance of the approach in this work, we assess if there are image processing issues such as picture color loss, uneven brightness, and so on, and compare the processing impacts of this method with the old way. Figure 5 depicts the outcome.
According to the above experimental findings, the image processing results of this approach do not have the difficulties of image color loss, uneven brightness, and the image color is reasonably consistent in the analysis of image color expression style. e image processing impact of the two classic approaches, on the other hand, is poor, and the issue of image color unevenness is substantial. It demonstrates that applying the design strategy described in this article may improve image processing effects in real operation.

Conclusion
To get accurate and effective picture color style performance analysis, this study proposes a novel method that considers brushstroke control parameters. e proposed method can perform image color preprocessing and execute image color quantization processing, classification, extraction of color style, and other stages. Also, our method uses the average value and standard deviation of the image to assess the impact of the color style of the image. e experimental findings reveal that the approach described in this work successfully overcomes the difficulties of existing methods such as high time complexity, poor picture color accuracy and recall, and uneven image color brightness, indicating that the method's application value is greater.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e author declares that he has no conflicts of interest.