Apparatus, method, and storage medium for performing color reduction processing
AssigneeCanon Kabushiki Kaisha
InventorsHiroyuki Sakai, Reiji Misawa
Life of this patent
Estimating the term…
Abstract
An apparatus includes a reduction unit configured to perform color reduction processing for quantizing a color in the generated image data, a change unit configured to change, in a case where brightness of an edge pixel indicating an edge portion in an image based on the image data with the color quantized is equal to or higher than a threshold value, a pixel value of the edge pixel to a pixel value of a color of a pixel having highest brightness among pixels surrounding the edge pixel, and change, in a case where the brightness of the edge pixel is lower than the threshold value, the pixel value of the edge pixel to a pixel value of a color of a pixel having lowest brightness among the pixels surrounding the edge pixel.
Claims15
An apparatus comprising:
- a scanner that scans an image on a document to generate image data to be used in color reduction processing;
- a controller;
- wherein the controller performs the color reduction processing for quantizing a color in the generated image data,
- wherein the controller changes, in a case where brightness of an edge pixel indicating an edge portion in an image based on the image data with the color quantized is equal to or higher than a threshold value, a pixel value of the edge pixel to a pixel value of a color of a pixel having highest brightness among pixels surrounding the edge pixel, and changes, in a case where the brightness of the edge pixel is lower than the threshold value, the pixel value of the edge pixel to a pixel value of a color of a pixel having lowest brightness among the pixels surrounding the edge pixel, and
- wherein the controller compresses the image data in which the pixel value of the edge pixel is changed while dividing the image data by color, and
- a network interface that transmits the compressed image data via a network, and
- wherein decompressed image data of the compressed image data is transmitted to a printer and the printer prints onto a medium.
A method performed by a controller of an apparatus having a scanner that scans an image on a document to generate image data to be used in color reduction processing and a network interface, the method comprising:
- performing the color reduction processing for quantizing a color in the generated image data;
- changing, in a case where brightness of an edge pixel indicating an edge portion in an image based on the image data with the color quantized is equal to or higher than a threshold value, a pixel value of the edge pixel to a pixel value of a color of a pixel having highest brightness among pixels surrounding the edge pixel, and changing, in a case where the brightness of the edge pixel is lower than the threshold value, the pixel value of the edge pixel to a pixel value of a color of a pixel having lowest brightness among the pixels surrounding the edge pixel;
- compressing the image data in which the pixel value of the edge pixel is changed by the changing while dividing the image data by color, and
- transmitting the compressed image data using the network interface via a network, and
- printing decompressed image data of the compressed image data via a printer.
A non-transitory computer-readable storage medium storing a program that, when executed by a controller of an apparatus having a scanner that scans an image on a document to generate image data to be used in color reduction processing and a network interface, causes the controller to perform a method, the method comprising:
- performing the color reduction processing for quantizing a color in the generated image data;
- changing, in a case where brightness of an edge pixel indicating an edge portion in an image based on the image data with the color quantized is equal to or higher than a threshold value, a pixel value of the edge pixel to a pixel value of a color of a pixel having highest brightness among pixels surrounding the edge pixel, and changing, in a case where the brightness of the edge pixel is lower than the threshold value, the pixel value of the edge pixel to a pixel value of a color of a pixel having lowest brightness among the pixels surrounding the edge pixel;
- compressing the image data in which the pixel value of the edge pixel is changed by the changing while dividing the image data by color;
- and
- transmitting the generated image data using the network interface via a network, and
- printing decompressed image data of the compressed image data via a printer.
Dependencies are inferred from the claim text.