Image processing apparatus, control method, and storage medium capable of suppressing image degradation
Abstract
A non-transitory computer readable storage medium acquires transmission information indicating a transparent state of each pixel of an image to be subjected to image processing and color information of each pixel of the image, acquiring a ratio of a region of a specific color to an entire region of the image by referencing the acquired color information, executing a first image processing based on color information of a first number of pixels in the image when the acquired ratio is less than a first threshold, and executing a second image processing based on color information of a second number of pixels, the second number obtained by deleting at least a portion of the region of the specific color in the image and less than the first number, when the acquired ratio is greater than or equal to the first threshold and is less than a second greater than the first.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A non-transitory computer readable storage medium storing one or more computer-executable programs configured to be executed by one or more processors, the one or more computer-executable programs including instructions for:
acquiring transmission information indicating a transparent state of each pixel of an image to be subjected to image processing and color information of each pixel of the image; acquiring a ratio of a region of a specific color to an entire region of the image by referring to the acquired color information in a case that the transmission information has been acquired from the image; performing control so as to execute a first image processing based on color information of a first number of pixels in the image in a case that the acquired ratio is less than a first threshold value; and performing control so as to execute a second image processing based on color information of a second number of pixels, the second number being obtained by deleting at least a portion of the region of the specific color in the image and less than the first number, in a case that the acquired ratio is greater than or equal to the first threshold value and is less than a second threshold value greater than the first threshold value.
2 . The non-transitory computer-readable storage medium according to claim 1 , wherein the first number is a number of pixels in the entire region of the image.
3 . The non-transitory computer-readable storage medium according to claim 1 , wherein the first image processing and the second image processing are image correction processing including a color correction processing.
4 . The non-transitory computer-readable storage medium according to claim 1 , wherein the one or more computer-executable programs include instructions for performing control so as not to execute a color correction processing on the image in a case that the acquired ratio is greater than or equal to the second threshold value.
5 . The non-transitory computer-readable storage medium according to claim 1 , wherein the transmission information is an Alpha value of a pixel in the image.
6 . The non-transitory computer-readable storage medium according to claim 1 , wherein the color information includes one or more from among RGB values, a grayscale value, a monochrome binary value, CMYK values, and HSB values according to one of a calculation formula, an algorithm, and an image format that are used in the image processing.
7 . The non-transitory computer-readable storage medium according to claim 1 , wherein the second number is a number of pixels in a range obtained by cutting out a rectangular region, which includes all non-transparent pixels and has a minimum number of pixels of the specific color, from the image.
8 . The non-transitory computer-readable storage medium according to claim 1 , wherein the one or more computer-executable programs include instructions for performing control so as to execute the first image processing in a case that there is no color exceeding a specific threshold in a frequency distribution of colors of all pixels in the image, the frequency distribution being obtained based on the acquired color information.
9 . The non-transitory computer-readable storage medium according to claim 1 , wherein the one or more computer-executable programs include instructions for adding the acquired transmission information to each corresponding pixel after execution of the first image processing or the second image processing.
10 . A non-transitory computer readable storage medium storing one or more computer-executable programs configured to be executed by one or more processors, the one or more computer-executable programs including instructions for:
acquiring transmission information indicating a transparent state of each pixel of an image to be subjected to image processing and color information of each pixel of the image; acquiring a ratio of a completely transparent region to an entire region of the image based on the acquired transmission information; performing control so as to execute a first image processing based on color information of a first number of pixels in the image in a case that the acquired ratio is less than a first threshold value; and performing control so as to execute a second image processing based on color information of a second number of pixels, the second number being obtained by deleting at least a portion of the completely transparent region in the image and less than the first number, in a case that the acquired ratio is greater than or equal to the first threshold value and is less than a second threshold value greater than the first threshold value.
11 . The non-transitory computer-readable storage medium according to claim 10 , wherein the first number is a number of pixels in the entire region of the image.
12 . The non-transitory computer-readable storage medium according to claim 10 , wherein the first image processing and the second image processing are image correction processing including a color correction processing.
13 . The non-transitory computer-readable storage medium according to claim 10 , wherein the one or more computer-executable programs include instructions for performing control so as not to execute a color correction processing on the image in a case that the acquired ratio is greater than or equal to the second threshold value.
14 . The non-transitory computer-readable storage medium according to claim 10 , wherein the transmission information is an Alpha value of a pixel in the image.
15 . The non-transitory computer-readable storage medium according to claim 10 , wherein the color information includes one or more from among RGB values, a grayscale value, a monochrome binary value, CMYK values, and HSB values according to one of a calculation formula, an algorithm, and an image format that are used in the image processing.
16 . The non-transitory computer-readable storage medium according to claim 10 , wherein the second number is a number obtained by reducing completely transparent pixels to a predetermined ratio.
17 . The non-transitory computer-readable storage medium according to claim 10 , wherein the second number is a number of remaining pixels obtained by deleting all completely transparent pixels.
18 . The non-transitory computer-readable storage medium according to claim 10 , wherein the one or more computer-executable programs include instructions for performing control so as to execute the first image processing in a case that color information before the transmission information is added to the image remains in completely transparent pixels of the image.
19 . The non-transitory computer-readable storage medium according to claim 10 , wherein the one or more computer-executable programs include instructions for adding the acquired transmission information to each corresponding pixel after execution of the first image processing or the second image processing.
20 . An image processing apparatus comprising:
at least one memory and at least one processor and/or at least one circuit that function as: a first acquisition unit that acquires transmission information indicating a transparent state of each pixel of an image to be subjected to image processing and color information of each pixel of the image; a second acquisition unit that acquires a ratio of a region of a specific color to an entire region of the image by referring to the acquired color information in a case that the transmission information has been acquired from the image; and a control unit that performs control so as to execute a first image processing based on color information of a first number of pixels in the image in a case that the acquired ratio is less than a first threshold value, and performs control so as to execute a second image processing based on color information of a second number of pixels, the second number being obtained by deleting at least a portion of the region of the specific color in the image and less than the first number, in a case that the acquired ratio is greater than or equal to the first threshold value and is less than a second threshold value greater than the first threshold value.
21 . An image processing apparatus comprising:
at least one memory and at least one processor and/or at least one circuit that function as: a first acquisition unit that acquires transmission information indicating a transparent state of each pixel of an image to be subjected to image processing and color information of each pixel of the image; a second acquisition unit that acquires a ratio of a completely transparent region to an entire region of the image based on the acquired transmission information; and a control unit that performs control so as to execute a first image processing based on color information of a first number of pixels in the image in a case that the acquired ratio is less than a first threshold value, and performs control so as to execute a second image processing based on color information of a second number of pixels, the second number being obtained by deleting at least a portion of the completely transparent region in the image and less than the first number, in a case that the acquired ratio is greater than or equal to the first threshold value and is less than a second threshold value greater than the first threshold value.
22 . A method for controlling an image processing apparatus, the method comprising:
acquiring transmission information indicating a transparent state of each pixel of an image to be subjected to image processing and color information of each pixel of the image; acquiring a ratio of a region of a specific color to an entire region of the image by referring to the acquired color information in a case that the transmission information has been acquired from the image; performing control so as to execute a first image processing based on color information of a first number of pixels in the image in a case that the acquired ratio is less than a first threshold value; and performing control so as to execute a second image processing based on color information of a second number of pixels, the second number being obtained by deleting at least a portion of the region of the specific color in the image and less than the first number, in a case that the acquired ratio is greater than or equal to the first threshold value and is less than a second threshold value greater than the first threshold value.
23 . A method for controlling an image processing apparatus, the method comprising:
acquiring transmission information indicating a transparent state of each pixel of an image to be subjected to image processing and color information of each pixel of the image; acquiring a ratio of a completely transparent region to an entire region of the image based on the acquired transmission information; performing control so as to execute a first image processing based on color information of a first number of pixels in the image in a case that the acquired ratio is less than a first threshold value; and performing control so as to execute a second image processing based on color information of a second number of pixels, the second number being obtained by deleting at least a portion of the completely transparent region in the image and less than the first number, in a case that the acquired ratio is greater than or equal to the first threshold value and is less than a second threshold value greater than the first threshold value.Join the waitlist — get patent alerts
Track US12603966B2 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.