IMAGE PROCESSING APPARATUS, CONTROL METHOD FOR IMAGE PROCESSING APPARATUS, PROGRAM, AND STORAGE MEDIUM

Abstract
When an original image containing a code image is lossy-compressed, the image quality of the code image is deteriorated. Thus, due to the deterioration of the image quality of the code image, information contained in the code image cannot be acquired. Thus, a portion corresponding to the code image is not lossy compressed, and the portion corresponding to the code image, which has not been subjected to lossy compression, is stored in a storage unit.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.



FIG. 1A shows an example of the related art.



FIG. 1B shows another example of the related art.



FIG. 2A shows an original image not containing a code image.



FIG. 2B shows an original image containing a code image.



FIG. 3 shows a configuration in which determination of whether or not to perform JPEG processing is performed after determination of whether or not a code image exists is performed.



FIG. 4 shows a configuration in which determination of whether or not a code image exists is performed while JPEG processing for an original image is performed.



FIG. 5A shows a configuration in which a JPEG image and a code image are stored.



FIG. 5B shows a configuration in which a JPEG image and information contained in a code image are stored.



FIG. 5C shows a configuration in which a JPEG image and a newly generated code image are stored.



FIG. 5D shows a configuration in which a code image and a JPEG image in an area other than the code image are stored.



FIG. 5E shows a configuration in which information contained in a code image and a JPEG image in an area other than the code image are stored.



FIG. 5F shows a configuration in which a new code image generated from information contained in a code image and JPEG image in an area other than the code image are stored.



FIG. 6A shows a configuration in which a code image is extracted.



FIG. 6B shows a configuration in which information acquired from a code image is stored.



FIG. 6C shows a configuration in which information is acquired from a code image and a new code image is generated from the information.



FIG. 7 shows a decompression unit and an output unit.


Claims
  • 1. An image processing apparatus comprising: a determination unit configured to determine whether an original image contains a code image;a first control unit configured to lossy-compress the original image and to store the lossy-compressed original image in a storage unit when the determination unit determines that the original image does not contain a code image; anda second control unit configured to lossy-compress the original image, to store the lossy-compressed original image in the storage unit, to extract the code image from the original image that has not been subjected to lossy compression and to store the extracted code image in the storage unit without lossy-compressing the extracted code image when the determination unit determines that the original image contains a code image.
  • 2. An image processing apparatus comprising: a determination unit configured to determine whether an original image contains a code image;a first control unit configured to lossy-compress the original image and to store the lossy-compressed original image in a storage unit when the determination unit determines that the original image does not contain a code image; anda second control unit configured to lossy-compress the original image, to store the lossy-compressed original image in the storage unit, to acquire information by decoding the code image contained in the original image that has not been subjected to lossy compression and to store the acquired information in the storage unit without lossy-compressing the acquired information when the determination unit determines that the original image contains a code image.
  • 3. An image processing apparatus comprising: a determination unit configured to determine whether an original image contains a code image;a first control unit configured to lossy-compress the original image and to store the lossy-compressed original image in a storage unit when the determination unit determines that the original image does not contain a code image; anda second control unit configured to lossy-compress the original image, to store the lossy-compressed original image in the storage unit, to acquire information by decoding the code image contained in the original image that has not been subjected to lossy compression, to generate a new code image in accordance with the acquired information, and to store the generated new code image in the storage unit without lossy-compressing the generated new code image when the determination unit determines that the original image contains a code image.
  • 4. An image processing apparatus comprising: a determination unit configured to determine whether an original image contains a code image;a first control unit configured to lossy-compress the original image and to store the lossy-compressed original image in a storage unit when the determination unit determines that the original image does not contain a code image; anda second control unit configured to extract the code image from the original image, to store the extracted code image in the storage unit without lossy-compressing the extracted code image, to lossy-compress an area of the original image that has not been subjected to lossy compression other than the extracted code image and to store the lossy-compressed area of the original image in the storage unit when the determination unit determines that the original image contains a code image.
  • 5. An image processing apparatus comprising: a determination unit configured to determine whether an original image contains a code image;a first control unit configured to lossy-compress the original image and to store the lossy-compressed original image in a storage unit when the determination unit determines that the original image does not contain a code image; anda second control unit configured to extract the code image from the original image, to acquire information by decoding the extracted code image, to store the acquired information in the storage unit without lossy-compressing the acquired information, to lossy-compress an area of the original image that has not been subjected to lossy compression other than the extracted code image and to store the lossy-compressed area of the original image in the storage unit when the determination unit determines that the original image contains a code image.
  • 6. An image processing apparatus comprising: a determination unit configured to determine whether an original image contains a code image;a first control unit configured to lossy-compress the original image and to store the lossy-compressed original image in a storage unit when the determination unit determines that the original image does not contain a code image; anda second control unit configured to extract the code image from the original image, to acquire information by decoding the extracted code image, to generate a new code image from the acquired information, to store the generated new code image in the storage unit without lossy-compressing the generated new code image, to lossy-compress an area of the original image that has not been subjected to lossy compression other than the extracted code image and to store the lossy-compressed area of the original image in the storage unit when the determination unit determines that the original image contains a code image.
  • 7. A method for an image processing apparatus, the method comprising: determining whether an original image contains a code image;if it is determined that the original image does not contain a code image: lossy-compressing the original image; andstoring the lossy-compressed original image; andif it is determined that the original image contains a code image: lossy-compressing the original image;storing the lossy-compressed original image;extracting the code image from the original image that has not been subjected to lossy compression; andstoring the extracted code image without lossy-compressing the extracted code image.
  • 8. A computer-readable storage medium having stored thereon computer-executable instructions for performing a method according to claim 7.
  • 9. A method for an image processing apparatus, the method comprising: determining whether an original image contains a code image;if it is determined that the original image does not contain a code image: lossy-compressing the original image; andstoring the lossy-compressed original image; andif it is determined that the original image contains a code image: lossy-compressing the original image;storing the lossy-compressed original image;acquiring information by decoding the code image contained in the original image that has not been subjected to lossy compression; andstoring the acquired information without lossy-compressing the acquired information.
  • 10. A computer-readable storage medium having stored thereon computer-executable instructions for performing a method according to claim 9.
  • 11. A method for an image processing apparatus, the method comprising: determining whether an original image contains a code image;if it is determined that the original image does not contain a code image: lossy-compressing the original image; andstoring the lossy-compressed original image; andif it is determined that the original image contains a code image: lossy-compressing the original image;storing the lossy-compressed original image;acquiring information by decoding the code image contained in the original image that has not been subjected to lossy compression;generating a new code image in accordance with the acquired information; andstoring the generated new code image without lossy-compressing the generated new code image.
  • 12. A computer-readable storage medium having stored thereon computer-executable instructions for performing a method according to claim 11.
  • 13. A method for an image processing apparatus, the method comprising: determining whether an original image contains a code image;if it is determined that the original image does not contain a code image: lossy-compressing the original image; andstoring the lossy-compressed original image; andif it is determined that the original image contains a code image: extracting the code image from the original image;storing the extracted code image without lossy-compressing the extracted code image;lossy-compressing an area of the original image that has not been subjected to lossy compression other than the extracted code image; andstoring the lossy-compressed area of the original image.
  • 14. A computer-readable storage medium having stored thereon computer-executable instructions for performing a method according to claim 13.
  • 15. A method for an image processing apparatus, the method comprising: determining whether an original image contains a code image;if it is determined that the original image does not contain a code image: lossy-compressing the original image; andstoring the lossy-compressed original image; andif it is determined that the original image contains a code image: extracting the code image from the original image;acquiring information by decoding the extracted code image;storing the acquired information without lossy-compressing the acquired information;lossy-compressing an area of the original image that has not been subjected to lossy compression other than the extracted code image; andstoring the lossy-compressed area of the original image.
  • 16. A computer-readable storage medium having stored thereon computer-executable instructions for performing a method according to claim 15.
  • 17. A method for an image processing apparatus, the method comprising: determining whether an original image contains a code image;if it is determined that the original image does not contain a code image: lossy-compressing the original image; andstoring the lossy-compressed original image; andif it is determined that the original image does not contain a code image: extracting the code image from the original image;acquiring information by decoding the extracted code image;generating a new code image from the acquired information;storing the generated new code image without lossy-compressing the generated new code image; andlossy-compressing an area of the original image that has not been subjected to lossy compression other than the extracted code image;storing the lossy-compressed area of the original image.
  • 18. A computer-readable storage medium having stored thereon computer-executable instructions for performing a method according to claim 17.
Priority Claims (1)
Number Date Country Kind
2006-071125 Mar 2006 JP national