Image processing method and non-transitory computer-readable storage medium
First Claim
1. An image processing method, comprising:
- reading an original image which comprises a red channel layer, a green channel layer and a blue channel layer;
performing a processing on the red channel layer, the green channel layer and the blue channel layer, respectively, to get a derived red channel layer, a derived green channel layer and a derived blue channel layer, the processing comprising;
calculating gradient-variations of a plurality of directions of a region;
calculating an average of the gradient-variations;
providing a calculating procedure to decide diffusion-coefficient equations of the directions, each of the diffusion-coefficient equations being substituted into an anisotropic diffusion equation, wherein the anisotropic diffusion equation is expressed as shown below;
I=I0+λ
×
Σ
i=1n[c(|∇
Ii|)∇
Ii];
if one of the gradient-variations being smaller than or equal to the average, the diffusion-coefficient equation of the corresponding direction being a smoothening equation expressed as shown below;
1 Assignment
0 Petitions
Accused Products
Abstract
An image processing method includes the following steps. An original image is read, and the original image includes a red channel layer, a green channel layer and a blue channel layer. A processing is performed on the red channel layer, the green channel layer and the blue channel layer, respectively, to get a derived red channel layer, a derived green channel layer and a derived blue channel layer. And the derived red channel layer, the derived green channel layer and the derived blue channel layer are combined to form a new image. The processing includes the following steps. Gradient-variations of a plurality of directions of a region are calculated. An average of the gradient-variations is calculated. A calculating procedure is provided to decide diffusion-coefficient equations of the directions, and each of the diffusion-coefficient equations is substituted into an anisotropic diffusion equation.
6 Citations
15 Claims
-
1. An image processing method, comprising:
-
reading an original image which comprises a red channel layer, a green channel layer and a blue channel layer; performing a processing on the red channel layer, the green channel layer and the blue channel layer, respectively, to get a derived red channel layer, a derived green channel layer and a derived blue channel layer, the processing comprising; calculating gradient-variations of a plurality of directions of a region; calculating an average of the gradient-variations; providing a calculating procedure to decide diffusion-coefficient equations of the directions, each of the diffusion-coefficient equations being substituted into an anisotropic diffusion equation, wherein the anisotropic diffusion equation is expressed as shown below;
I=I0+λ
×
Σ
i=1n[c(|∇
Ii|)∇
Ii];if one of the gradient-variations being smaller than or equal to the average, the diffusion-coefficient equation of the corresponding direction being a smoothening equation expressed as shown below; - View Dependent Claims (2, 3, 4, 5)
-
-
6. An image processing method, comprising:
-
reading an original image; converting the original image to LAB color space to get an L channel layer, an A channel layer and a B channel layer; performing a processing on the L channel layer to get a derived L channel layer, the processing comprising; calculating gradient-variations of a plurality of directions of a region; calculating an average of the gradient-variations; providing a calculating procedure to decide diffusion-coefficient equations of the directions, each of the diffusion-coefficient equations being substituted into an anisotropic diffusion equation, wherein the anisotropic diffusion equation is expressed as shown below;
I=I0+λ
×
Σ
i=1n[c(|∇
Ii|)∇
Ii];if one of the gradient-variations being smaller than or equal to the average, the diffusion-coefficient equation of the corresponding direction being a smoothening equation expressed as shown below; - View Dependent Claims (7, 8, 9, 10)
-
-
11. A non-transitory computer-readable storage medium, which stores a computer program instruction that performs an image processing method after loading in an electronic device, wherein the image processing method comprises:
-
reading an original image which comprises a red channel layer, a green channel layer and a blue channel layer; performing a processing on the red channel layer, the green channel layer and the blue channel layer, respectively, to get a derived red channel layer, a derived green channel layer and a derived blue channel layer, the processing comprising; calculating gradient-variations of a plurality of directions of a region; calculating an average of the gradient-variations; providing a calculating procedure to decide diffusion-coefficient equations of the directions, each of the diffusion-coefficient equations being substituted into an anisotropic diffusion equation, wherein the anisotropic diffusion equation is expressed as shown below;
I=I0+λ
×
Σ
i=1n[c(|∇
Ii|)∇
Ii];if one of the gradient-variations being smaller than or equal to the average, the diffusion-coefficient equation of the corresponding direction being a smoothening equation expressed as shown below; - View Dependent Claims (12, 13, 14, 15)
-
Specification