Terminal, image processing method and device thereof
An image processing device and image processing technology, applied in the field of image processing, can solve the problems of cartoonization failure, large amount of calculation, cartoonization, etc., and achieve the effect of strengthening edge transition, small amount of calculation, and strong self-adaptation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] In this embodiment, the color space of the first image includes a brightness channel and a color channel, such as: CIE Lab color space or YUV color space. image 3 is a schematic flow chart of an image processing method in Embodiment 1 of the present invention, as image 3 As shown, the image processing method includes:
[0045] Step S11: Quantizing the pixels of the first image based on the luminance channel value of the first image to obtain a second image including at least one texture consistent region;
[0046] Step S12: Using an edge detection algorithm to determine the edge area in the first image;
[0047] Step S13: merging the color channel of the first image and the brightness channel of the second image to fill the area with consistent texture;
[0048] Step S14: filling the edge area to separate the texture consistent area.
[0049] The above steps are described one by one below.
[0050] If the color space of the image to be processed is the RGB color s...
Embodiment 2
[0095] In this embodiment, the color space of the first image includes color channels, specifically, the color space of the first image in this embodiment is an RGB color space. Figure 6 It is a schematic flow chart of the image processing method in Embodiment 2 of the present invention, such as Figure 6 As shown, the image processing method includes:
[0096] Step S21: Calculate the color distance of the pixel based on the color channel value of the pixel in the first image;
[0097] Step S22: Determine that the area where the pixel points whose color distance is within a predetermined range is located is a consistent texture area;
[0098] Step S23: setting a predetermined area close to the edge in the consistent texture area as the edge area;
[0099] Step S24: setting the corresponding color channel value for the pixels in the consistent texture area;
[0100] Step S25: Filling the edge area to separate the texture consistent area.
[0101] Each step is described bel...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 