A method and image processing system for stylizing an image in watercolor
A stylized and watercolor technology, applied in the field of image processing, can solve problems such as difficult implementation, large computing overhead, and complexity, and achieve simple and obvious effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] This embodiment will be described from the perspective of an image processing system. Specifically, the image processing system may be integrated into a terminal, such as a mobile phone, a notebook computer, or a tablet computer.
[0055] A method for stylizing an image in watercolor, comprising: acquiring a picture to be processed, and setting a window on the picture; moving the window according to a preset pixel size; acquiring the gray value and the first value of the central pixel in the window after the movement , the first value is the mean value of the gray values of all pixels in the shifted window multiplied by the weighted value; determine whether the gray value of the central pixel is greater than the first value; if so, then move the gray value in the window The RGB value of the pixel corresponding to the largest pixel before the current window movement is used as the RGB value of the central pixel, and returns to the step of moving the window according to ...
Embodiment 2
[0093] According to the method described in Embodiment 1, an example will be given below for further detailed description.
[0094] Such as figure 2 As shown, the specific process can be as follows:
[0095] 201. The image processing system acquires a picture to be processed, and sets a window on the picture.
[0096] For example, specifically, the window can be set on the upper left corner, upper right corner, lower left corner or lower right corner of the picture, such as setting the shape and size of the window, wherein the shape of the window can include rhombus, square or circle and other shapes , the shape and size of the window can be set according to the actual application requirements. For the convenience of description, in this embodiment, setting a window at the upper left corner of the picture will be taken as an example for illustration.
[0097] It should be noted that, the image processing system may specifically be integrated in a terminal, for example, in ...
Embodiment 3
[0117] In order to better implement the above method, an embodiment of the present invention also provides an image processing system, such as Figure 4 As shown, the image processing system may include an initialization unit 301 , a moving unit 302 , a gray value acquisition unit 303 , a judging unit 304 , a first processing unit 305 and a second processing unit 306 .
[0118] An initialization unit 301, configured to obtain a picture to be processed, and set a window on the picture;
[0119] For example, specifically, the shape and size of the window can be set on the picture, wherein the shape of the window can include shapes such as rhombus, square, or circle. The shape and size of the window can be set according to the actual application requirements
[0120] A moving unit 302, configured to move the window set by the initialization unit 301 according to a preset pixel size;
[0121] A grayscale value acquisition unit 303, configured to acquire the grayscale value and t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 