Image processing for arranging images based on size ratio
AssigneeCanon Kabushiki Kaisha
InventorYasuo Fukuda
Life of this patent
Estimating the term…
Abstract
A plurality of images are input, specific regions are set for each of the inputted plurality of images, a typical size of the specific regions of each of the plurality of images is determined, and the ratio of the typical size to the size of the entire image is calculated as a typical size ratio. A typical size ratio used as a reference is selected from the typical size ratios calculated for the respective images as a reference ratio, and a candidate region upon trimming that image is determined based on the specific regions of each of the plurality of images. A trimming region for each of the plurality of images is determined based on the reference ratio, and the typical size ratio and candidate region of each image, and each of the plurality of images is trimmed according to the trimming region.
Claims12
An image processing apparatus comprising:
- an input unit configured to input a plurality of images;
- a setting unit configured to set a specific region on each of the plurality of images;
- a calculation unit configured to determine a typical size of the specific region of each of the plurality of images and to calculate a typical size ratio for each of the plurality of images, the typical size ratio indicating a ratio of the typical size to a size of the entire image of each of the plurality of images;
- a selection unit configured to select a typical size ratio to be used as a reference ratio from the typical size ratios calculated for the plurality of images;
- a first determination unit configured to determine a candidate region for each of the plurality of images based on the specific region of the respective image;
- a second determination unit configured to determine a trimming region of each of the plurality of images based on the reference ratio, the typical size ratio, and the candidate region of the respective image;
- and
- a trimming unit configured to trim each of the plurality of images in accordance with the trimming region of the respective image.
A method of controlling an image processing apparatus, the method comprising:
- inputting a plurality of images;
- setting a specific region on each of the plurality of images;
- determining a typical size of the specific region of each of the plurality of images;
- calculating a typical size ratio of each of the plurality of images, the typical size ratio indicating a ratio of the typical size to a size of the entire image of each of the plurality of images;
- selecting a typical size ratio to be used as a reference ratio from the typical size ratios calculated for the plurality of images;
- determining a candidate region for each of the plurality of images based on the specific region of the respective image;
- determining a trimming region of each of the plurality of images based on the reference ratio, the typical size ratio, and the candidate region of the respective image;
- and
- trimming each of the plurality of images in accordance with the trimming region of the respective image.
A non-transitory computer-readable storage medium storing a computer-executable program for causing a computer to perform a method of controlling an image processing apparatus, the method comprising:
- inputting a plurality of images;
- setting a specific region on each of the plurality of images;
- determining a typical size of the specific region of each of the plurality of images;
- calculating a typical size ratio of each of the plurality of images, the typical size ratio indicating a ratio of the typical size to a size of the entire image of each of the plurality of images;
- selecting a typical size ratio to be used as a reference ratio from the typical size ratios calculated for the plurality of images;
- determining a candidate region for each of the plurality of images based on the specific region of the respective image;
- determining a trimming region of each of the plurality of images based on the reference ratio, the typical size ratio, and the candidate region of the respective image;
- and
- trimming each of the plurality of images in accordance with the trimming region of the respective image.
Dependencies are inferred from the claim text.