Image processing apparatus, image processing method, and storage medium
AssigneeCanon Kabushiki Kaisha
InventorAkihiro Yoshitani
Life of this patent
Estimating the term…
Abstract
An image processing comprising: an obtaining unit configured to obtain image data of a rectangle unit of input image; a compression unit configured to perform the compression processing for compressing the image data on a per rectangle unit basis from the rectangle unit at the front edge to the rectangle unit at the rear edge of the rectangle line in a case where the input image is rotated by a predetermined angle in a first direction; wherein, in a case where the input image is rotated by the predetermined angle in a direction opposite to the first direction, the compression unit compresses the image data on a per rectangle unit basis from the rectangle unit at the rear edge to the rectangle unit at the front edge of the rectangle line.
Claims17
An image processing apparatus capable of rotating an input image for output, the image processing apparatus comprising:
- at least one processor;
- and
- a memory storing instructions to cause the at least one processor to function as:
- an obtaining unit configured to obtain image data of a rectangle area of the input image in an order from a rectangle line at a head of a longitudinal direction, the rectangle area being a unit for compression processing, the input image being configured such that the rectangle line configured with respective rectangle areas arranged from a front edge to a rear edge in a lateral direction is arranged in the longitudinal direction that intersects with the lateral direction;
- a compression unit configured to perform the compression processing for compressing the image data on a per rectangle area basis from the rectangle area at the front edge to the rectangle area at the rear edge of the rectangle line on a per rectangle line basis in order to generate compressed data of the input image in a case where the input image is rotated by a predetermined angle in a first direction for output so that the rectangle area at the front edge in the rectangle line at the head of the input image is positioned at a head of a longitudinal direction of a rotated image;
- and
- a decompression unit configured to decompress, rotate, and arrange the compressed data corresponding to the respective rectangle areas, in order to output an image,
- wherein, in a case where the input image is rotated by the predetermined angle in a direction opposite to the first direction for output, the compression unit compresses the image data on a per rectangle area basis from the rectangle area at the rear edge to the rectangle area at the front edge of the rectangle line.
An image processing method for rotating an input image for output, the image processing method comprising:
- obtaining image data of a rectangle area of the input image in an order from a rectangle line at a head of a longitudinal direction, the rectangle area being a unit for compression processing, the input image being configured such that the rectangle line configured with respective rectangle areas arranged from a front edge to a rear edge in a lateral direction is arranged in the longitudinal direction that intersects with the lateral direction;
- performing the compression processing for compressing the image data on a per rectangle area basis from the rectangle area at the front edge to the rectangle area at the rear edge of the rectangle line on a per rectangle line basis in order to generate compressed data of the input image in a case where the input image is rotated by a predetermined angle in a first direction for output so that the rectangle area at the front edge in the rectangle line at the head of the input image is positioned at a head of a longitudinal direction of a rotated image;
- and
- decompressing, rotating, and arranging the compressed data corresponding to the respective rectangle areas, in order to output an image,
- wherein, in the compressing, in a case where the input image is rotated by the predetermined angle in a direction opposite to the first direction for output, the image data is compressed on a per rectangle area basis from the rectangle area at the rear edge to the rectangle area at the front edge of the rectangle line.
A non-transitory computer readable storage medium storing a program which causes a computer to perform an image processing method for rotating an input image for output, the image processing method comprising:
- obtaining image data of a rectangle area of the input image in an order from a rectangle line at a head of a longitudinal direction, the rectangle area being a unit for compression processing, the input image being configured such that the rectangle line configured with respective rectangle areas arranged from a front edge to a rear edge in a lateral direction is arranged in the longitudinal direction that intersects with the lateral direction;
- performing the compression processing for compressing the image data on a per rectangle area basis from the rectangle area at the front edge to the rectangle area at the rear edge of the rectangle line on a per rectangle line basis in order to generate compressed data of the input image in a case where the input image is rotated by a predetermined angle in a first direction for output so that the rectangle area at the front edge in the rectangle line at the head of the input image is positioned at a head of a longitudinal direction of a rotated image;
- and
- decompressing, rotating, and arranging the compressed data corresponding to the respective rectangle areas, in order to output an image,
- wherein, in the compressing, in a case where the input image is rotated by the predetermined angle in a direction opposite to the first direction for output, the image data is compressed on a per rectangle area basis from the rectangle area at the rear edge to the rectangle area at the front edge of the rectangle line.
Dependencies are inferred from the claim text.