The present invention relates to image processing, and more particularly, to methods and apparatuses for merging and outputting images.
Conventional image processing apparatuses such as facsimile machines, multi-function printers or others, acquire images on printed pages via optical character reader (OCR) modules therein and print the acquired images. The image processing apparatuses may provide additional functions to print, such as enlarging images, enlarging images, fitting to page, clone, poster or others. The clone function reduces an image, replicates the reduced image to multiple copies and arranges the replicated ones for printing. The poster function enlarges an image and divides the enlarged image into multiple pages for printing. However, the conventional image processing apparatuses provide no function to acquire an image printed on a paper larger than a scanning zone of an OCR module for subsequent printing.
Apparatuses for image processing are provided. An embodiment of an apparatus for image processing comprises an image input device, an image output device and a processing unit. The processing unit coupled to the image input device and the image output device acquires multiple first bitmap images via the image input device, generates a second bitmap image by merging the first bitmap images, generates a third bitmap image by reducing the second bitmap image and prints the third bitmap image via the image output device, wherein each first bitmap image corresponds to a portion of a printed page.
An embodiment of a storage device may further comprise a storage device. The processing unit stores the second bitmap image or the third bitmap image in the storage device.
An embodiment of a processing unit may further generate multiple fourth bitmap images by reducing complexity of the first bitmap images, determine a relative moved coordinate set corresponding to each of the two neighboring first bitmap images by analyzing overlapping regions of each of the two neighboring fourth bitmap images and generate the second bitmap image by merging the first bitmap images according to the determined relative moved coordinate sets. Each fourth bitmap image may comprise halftone or luminance data of pixels of the corresponding first bitmap image. An embodiment of a processing unit may further acquire a merge mode, determine at least one adjacent edge of each fourth bitmap image and determine a neighboring fourth bitmap image adjacent to the determined adjacent edge according to the acquired merge mode. The overlapping regions corresponding to the determined relative moved coordinate set for each of the two neighboring fourth bitmap images have the minimum difference therebetween.
An embodiment of a processing unit may further determine a relative moved coordinate set corresponding to each of the two neighboring first bitmap images by analyzing overlapping regions of each of the two neighboring first bitmap images and generate the second bitmap image by merging the first bitmap images according to the determined relative moved coordinate sets. An embodiment of a processing unit may further acquire a merge mode, determine at least one adjacent edge of each first bitmap image and determine a neighboring first bitmap image adjacent to the determined adjacent edge according to the acquired merge mode. The overlapping regions corresponding to the determined relative moved coordinate set for each of the two neighboring first bitmap images have the minimum difference therebetween.
Methods for image processing are provided. An embodiment of a method comprises the following steps. Multiple first bitmap images are acquired, and each first bitmap image corresponds to a portion of a printed page. A second bitmap image is generated by merging the first bitmap images. A third bitmap image is generated by reducing the second bitmap image. The third bitmap image is then printed.
An embodiment of a method for image processing may further comprise storing the second bitmap image or the third bitmap image.
An embodiment of a method for image processing may further comprise the following steps. Multiple fourth bitmap images are generated by reducing complexity of the first bitmap images, wherein each fourth bitmap image comprises halftone or luminance data of pixels of the corresponding first bitmap image. A relative moved coordinate set corresponding to each of the two neighboring first bitmap images is determined by analyzing overlapping regions of each of the two neighboring fourth bitmap images. The second bitmap image is generated by merging the first bitmap images according to the determined relative moved coordinate sets. A merge mode is acquired. At least one adjacent edge of each fourth bitmap image is determined according to the acquired merge mode. A neighboring fourth bitmap image adjacent to the determined adjacent edge is determined. The overlapping regions corresponding to the determined relative moved coordinate set for each of the two neighboring fourth bitmap images have the minimum difference therebetween.
An embodiment of a method for image processing may further comprise the following steps. A relative moved coordinate set corresponding to each of the two neighboring first bitmap images is determined by analyzing overlapping regions of each of the two neighboring first bitmap images. The second bitmap image is generated by merging the first bitmap images according to the determined relative moved coordinate sets. A merge mode is acquired. According to the acquired merge mode, at least one adjacent edge of each first bitmap image is determined. A neighboring first bitmap image adjacent to the determined adjacent edge is determined. The overlapping regions corresponding to the determined relative moved coordinate set for each of the two neighboring first bitmap images have the minimum difference therebetween.
A machine-readable storage medium storing a computer program which, when executed by an image processing apparatus, performs the method of image processing is also provided.
The invention will become more fully understood by referring to the following detailed description with reference to the accompanying drawings, wherein:
a illustrates an exemplary merge mode for long edges;
b illustrates an exemplary merge mode for short edges;
c and 4d illustrate exemplary merge modes for dual edges;
In step S321, a merge mode is acquired. The merge mode is set by a user via the input device 17 such as a keyboard, a touch panel or similar.
In step S323, adjacent edges for each analysis bitmap image and the neighboring bitmap image for each adjacent edge are determined according to the acquired merge mode. Referring to
In step S341, the merged image is reduced to fit the size of the print medium. In step S343, the reduced image is printed. Those skilled in the art may realize that the steps S341 and S343 are omitted and the merged bitmap image is directly stored in the memory device 13.
Also disclosed is a storage medium as shown in
Image processing apparatuses and methods for merging and outputting images, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMS, hard drives, nonvolatile memory devices, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as an image processing apparatus or similar, the machine becomes an apparatus for practicing the invention. The disclosed methods and apparatuses may also be embodied in the form of program code transmitted over some transmission medium, such as electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by an image processing apparatus, such as a facsimile machine, a multi-function printer or similar, the machine becomes an apparatus for practicing the invention.
Certain terms are used throughout the description and claims to refer to particular system components. As one skilled in the art will appreciate, consumer electronic equipment manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function.
While the invention has been described in terms of preferred embodiment, it is not intended to limit the invention to the precise embodiments disclosed herein. Those who are skilled in this technology can still make various alterations and modifications without departing from the scope and spirit of this invention. Therefore, the scope of the invention shall be defined and protected by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
TW94139451 | Nov 2005 | TW | national |