# Patent

## Title
Digital multifunctional imaging apparatus

## Abstract

In a digital multifunctional apparatus, enlargement/reduction parameters for respective pixels are calculated by an image processing circuit multiplying a length enlargement/reduction ration output from a CPU by pixel numbers of an image read by an image sensor, in which the pixel numbers are counted form a starting pixel of the image reading. A pixel counter counts integer portion C of each enlargement/reduction parameter. When the integer portion C of the calculated enlargement parameter of a respective pixel increases by at least two from that of the preceding pixel, a pixel supplement circuit supplements one image data to enlarge the image data. When the counted integer portion C of the calculated reduction parameter of a respective pixel is unchanged form that of the preceding pixel, the image processing circuit removes the image data of the respective pixel to reduce the image data.

## Background
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a digital multifunctional imaging apparatus (hereafter referred to simply as “digital multifunctional apparatus”) which has a printing function and a scanning function, and is capable of copying a document by itself without being connected to an apparatus having a host function such as a personal computer.
2. Description of the Related Art
A digital multifunctional apparatus has an image processing function of enlarging or reducing an image based on image data read by an image sensor (scanner unit) in order to adjust the image based on the image data to, for example, a size of a printing paper. When a host apparatus such as a personal computer is connected to the digital multifunctional apparatus, such image processing can be easily performed with using a CPU (Central Processing Unit) in the host apparatus. On the other hand, in the case of a digital multifunctional apparatus of so-called stand-alone type that can copy a document independently, three CPUs are used for scan control, print control and entire control of the digital multifunctional apparatus, respectively, while one DSP (Digital Signal Processor) is used for image processing, in order to perform the copy process without being connected to a host apparatus, or without starting the host apparatus.
Meanwhile, an image processing apparatus in a video printer is known for producing a hard copy of a television image (refer to, for example, Japanese Laid-open Patent Publication Hei 8-23440). Also known is an image processing apparatus for converting image data output from a facsimile so as to adjust the image data to the resolution of a printer (refer to, for example, Japanese Laid-open Patent Publication Hei 4-222067). It is also known to enlarge or reduce an image using a CPU installed in a printer apparatus (refer to, for example, Japanese Laid-open Patent Publication Hei 7-162675). Furthermore, an image magnification apparatus is known which reduces or enlarges an image by partially removing an image output. clock signal, or by exchanging an image output clock signal for an image input signal (refer to, for example, Japanese Laid-open Patent Publication 2000-125118 and Japanese Laid-open Patent Publication Hei 2-243060).
However, the above-mentioned conventional digital multifunctional apparatus is configured to process images through a firmware using the DSP, so that the processing speed depends on the operating frequencies of the CPUs and the DSP in the digital multifunctional apparatus, in which the DSP operates in synchronization with the CPUs. Thus, in order to complete the image processing and start printing operation in a short time, it is necessary to increase the frequencies of the operating clock of the CPUs and the DSP in the digital multifunctional apparatus. For example, the frequency of the operating clock of the three CPUs is required to be about 100 MHz, while the frequency of the operating clock of the DSP is required to be about 200 MHz. Accordingly, it is needed to use many such CPUs and DSP, which are expensive and thus remain an obstacle to cost reduction.
This problem cannot be solved by using the technology disclosed in either one of the first three patent publications described above. On the other hand, the image magnification apparatus disclosed in either one of the last two patent publications described above requires a complex circuit configuration to partially remove an image output clock signal, or to exchange an image output clock signal for an image input signal, thereby increasing the manufacturing cost.
SUMMARY OF THE INVENTION
An object of the present invention is to provide such a digital multifunctional apparatus that can quickly enlarge or reduce an image based on image data without using a CPU and a DSP having high operating clock frequencies so as to achieve cost reduction.
A digital multifunctional imaging apparatus capable of copying a document independently in accordance with an aspect of the present invention comprises: an image sensor for irradiating light onto a document and receiving light reflected from the document so as to read image data of the document; an image processor for processing the image data read by the image sensor so as to enlarge or reduce an image; a printing mechanism for printing an image with using the image data processed by the image processor; a CPU (Central Processing Unit) for controlling the image sensor, the image processor and the printing mechanism; and a memory memorizing operating programs of the CPU. The image processing means is configured by a hardware circuit. While reading the image data of the document, the image processor quickly processes the read image data for enlarging or reducing an image to be printed without increasing burden of the control means.
By such a configuration, the image processor is configured by a hardware circuit, so that it is possible that while reading the image data of a document, the image processor quickly processes the read image data for enlarging or reducing an image to be printed without increasing the burden of the control means. Thus, it is possible to use an inexpensive processor having a low operating clock frequency for the control means, while reducing time required from reading of a document to printing, thereby making it possible to reduce the cost of the digital multifunctional apparatus.
For enlarging the image, it is possible that the image processor calculates enlargement parameters for respective pixels or respective lines from a length enlargement ratio designated by a user and pixel numbers or line numbers of an image read by the image sensor, in which the pixel numbers or the line numbers are counted from a starting pixel or a starting line of the image reading, and supplements one image data between a respective pixel and the preceding pixel or between a respective line and the preceding line on the basis of the calculated enlargement parameter for the respective pixel or the respective line, so as to enlarge the image data.
For reducing the image, it is possible that the image processing means calculates reduction parameters for respective pixels or respective lines from a length reduction ratio designated by a user and pixel numbers or line numbers of an image read by the image sensor, in which the pixel numbers or the line numbers are counted from a starting pixel or a starting line of the image reading, and removes image data on the basis of the calculated reduction parameter for the respective pixel or the respective line, so as to reduce the image data.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram showing a configuration of a digital multifunctional apparatus in accordance with an embodiment of the present invention;
FIG. 2 is a block diagram showing a configuration of an image processing circuit of the digital multifunctional apparatus;
FIG. 3 is a conversion table showing examples of enlargement parameters used as references for enlarging image data; and
FIG. 4 is a conversion table showing examples of reduction parameters used as references for reducing image data.



DESCRIPTION OF THE PREFERRED EMBODIMENTS
A preferred embodiment in accordance with the present invention will be described with reference to the drawings.
FIG. 1 shows a schematic block diagram of a digital multifunctional apparatus having an inkjet printer mechanism in accordance with the embodiment. The digital multifunctional apparatus comprises: an image sensor 1 for reading image data of a document and converting the read image data into-analog electric signals; an analog front-end circuit (AFE) 2 for converting the analog electric signals of the image data read by the image sensor 1 into digital electric signals; image data correction circuit 3 for correcting the image data output from the AFE 2, if necessary; an image processing circuit (serving as an image processing means) 4 for enlarging or reducing the image data outputted from the image data correction circuit 3; a buffer (serving as a buffer means) 5 for temporarily memorizing the image data processed by the image processing circuit 4; a print control circuit 6 for controlling motion of a carriage 11 on the basis of the image data memorized in the buffer 5; a mechanical control circuit 7 for mechanically controlling a paper feed motor (not shown), and so on; a motor drive circuit 8 for applying a drive voltage to the paper feed motor, and so on, on the basis of control signals output from the mechanical control circuit 7; a CPU (Central Processing Unit, which is control means) 9 for controlling respective elements in the digital multifunctional apparatus; a memory (serving as a memory means) 10 memorizing operating programs of the CPU 9 and various data required for the operation of the CPU 9; a print carriage (serving as a printing means) 11 for printing a print based on the image data memorized in the buffer 5 or the image data processed by the image processing circuit 4; and so on. The CPU 9 serving as a control means controls not only the respective elements as described above such as the image sensor 1, the image processing circuit 4 and the buffer 5, but also other elements such as the print carriage 11.
The above-described image data correction circuit 3, the image processing circuit 4, the print control circuit 6, the mechanical control circuit 7 and the CPU 9 are integrated into one-chip ASIC (Application-Specific Integrated Circuit) 12. Note that the CPU 9 used in this embodiment has an operating clock frequency of 48 MHz. The ASIC 12 further has, integrated therein, a timing generator 13 for outputting synchronizing signals to the image sensor 1 and the AFE 2, and also has a USB (Universal Serial Bus) device control circuit 14 which is connected via a USB cable to a host PC (personal computer) 20 connected to the digital multifunctional apparatus, and which functions as an interface to host PC 20.
The image sensor 1 is configured by a CCD (Charge Coupled Device) or a CIS (Contact Image Sensor) each having pixels aligned in a row, and so on. The image sensor 1 irradiates light onto a document, receives light reflected from the document so as to read image data for each line (for example, 5100 pixels), and converts the image data into electric signals. The image data correction circuit 3 performs black level correction for the image data output from the AFE 2, sensitivity correction for each pixel as well as level correction and gamma correction for each color of RGB (Red, Green and Blue). The image data corrected by the image data correction circuit 3 are output to alternatively of the image processing circuit 4 and the USB device control circuit 14 via a switch 15, switching operation of which is controlled by the CPU 9. More specifically, when the switch 15 is turned to the image processing circuit 4, the digital multifunctional apparatus can copy the image data of the document by itself. On the other hand, when the switch 15 is turned to the USB device control circuit 14, the image data output from the image data correction circuit 3 is transferred via the USB device control circuit 14 to the host PC 20.
The image processing circuit 4 is configured by a hardware circuit (logic circuit) as shown in FIG. 2 described later, and enlarges or reduces the image data output from the image data correction circuit 3 for enlarging or reducing-the image based on the image data. The image data processed by the image processing circuit 4 is temporarily memorized in the buffer 5.
FIG. 3 shows examples of enlargement parameters in each area magnification (MAG), which are used as references for supplementing image data between adjacent pixels in one line, when enlarging of image is performed. A user inputs an area magnification percentage (MAG: %) by operating, for example, numeric input keys provided on the digital multifunctional apparatus or the like. Otherwise, it can be designed such that the CPU 9 automatically calculates the area magnification percentage (MAG) from the size of a document and the size of a printing paper designated by the user. In this embodiment, the area magnification percentages (MAG) can be set from 25% to 400% by a pitch of 1%, although the conversion table shown in FIG. 3 and a conversion table shown FIG. 4 described later show only a part of the range from 25% to 400%.
The CPU 9 converts an area enlargement ratio (EARE) obtained from an input area magnification percentage (MAG) into a length enlargement ratio (ELEN). Thus, it can be said that the length enlargement ratio (ELEN) is designated by the user inputting the area magnification percentage (MAG). This conversion from the area enlargement ratio (EARE) to the length enlargement ratio (ELEN) is performed by firmware (FW) installed in the memory 10. The memory 10 memorizes the conversion tables necessary for the conversion. Normally, the length enlargement ratio (ELEN) can be calculated by square root of the area enlargement ratio (EARE). However, in order to reduce the burden of the CPU 9, the present embodiment uses a linear approximation, more specifically an approximation to regard the length enlargement ratio (ELEN) as varying linearly with the area enlargement ratio (EARE) as the length enlargement ratio (ELEN) varies by every 0.1. The length enlargement ratio (ELEN) calculated by the CPU 9 is output to the image processing circuit 4.
Referring to FIG. 2, at each clock input to a clock control circuit 16, the image processing circuit 4 multiplies a length enlargement ratio output from the CPU 9 by pixel numbers of an image read by the image sensor 1, in which the pixel numbers are counted from a starting pixel of the image reading, so as to calculate enlargement parameters for respective pixels. A pixel counter 17 counts integer portion C of each of the calculated enlargement parameters. When the counted integer portion C of the calculated enlargement parameter of a respective pixel increases by one “1”, namely when the counted integer portion C of the calculated enlargement parameter of a respective pixel does not increase by at least two from that of the preceding pixel (corresponding to each non-shadowed column of the conversion table of FIG. 3), the image processing circuit 4 stores the image data of the respective pixel, as is, in the buffer 5.
On the other hand, when the counted integer portion C of the calculated enlargement parameter of a respective pixel increases by at least two from that of the preceding pixel (corresponding to each shadowed column of the conversion table of FIG. 3), a pixel operation circuit 18 supplements one image data between the respective pixel and the preceding pixel. The image processing circuit 4 stores the image data of the respective pixel and the supplemented image data in the buffer 5. Thus, the image processing circuit 4 stores, in the buffer 5, image data enlarged according to the area enlargement percentage input by a user. The mechanical control circuit 7 and the print control circuit 6 respectively control the motor drive circuit 8 and the print carriage 11 on the basis of the stored image data so as to print an enlarged image.
The above has described enlargement of an image in the direction of pixel alignment of the image sensor 1, that is, alignment direction of the imaging element, but can be similarly applied to enlargement of an image in a direction perpendicular to the direction of pixel alignment of the image sensor 1 (that is, enlargement in the direction of scanning lines of a document or of the image sensor 1 perpendicularly to the alignment direction of the imaging element). The enlargement of an image in the perpendicular direction can be done by multiplying a length enlargement ratio, output from the CPU 9, by line numbers of an image read by the image sensor 1, in which the line numbers are counted from a starting line of the image reading, so as to calculate enlargement parameters for respective lines.
FIG. 4 is shows examples of reduction parameters used as references for reducing image data for partially removing image data of pixels in one line, when reduction of image is performed. A user inputs an area reduction percentage (RED: %) in a manner similar to that described above for the area enlargement percentage. Otherwise, it can be designed such that the CPU 9 automatically calculates the area reduction percentage (RED) from the size of a document and the size of a printing paper designated by the user.
The CPU 9 converts an area reduction ratio (RARE) obtained from an input area reduction percentage (RED) into a length reduction ratio (RLEN). Thus, it can be said that the length reduction ratio (RLEN) is designated by the user inputting the area reduction percentage (RED). This conversion from the area reduction ratio (RARE) to the length reduction ratio (RLEN) is performed by the firmware (FW) installed in the memory 10. Similarly as in the case of the image enlargement, this embodiment uses a linear approximation to regard the length reduction ratio (RLEN) as varying linearly with the area reduction ratio as the length reduction ratio (RLEN) varies by every 0.1. The length reduction ratio (RLEN) calculated by the CPU 9 is output to the image processing circuit 4.
At each clock input to the clock control circuit 16, the image processing circuit 4 multiplies a length reduction ratio output from the CPU 9 by pixel numbers of an image read by the image sensor 1, in which the pixel numbers are counted from a starting pixel of the image reading, so as to calculate reduction parameters for respective pixels. The pixel counter 17 counts integer portion C of each of the thus calculated reduction parameters. When the counted integer portion C of the calculated reduction parameter of a respective pixel is unchanged from that of the preceding pixel (corresponding to each non-shadowed column of the conversion table of FIG. 4), the pixel operation circuit 18 removes the image data of the respective pixel.
On the other hand, when the counted integer portion C of the calculated reduction parameter of a respective pixel changes from that of the preceding pixel (corresponding to each shadowed column of the conversion table of FIG. 4), the image processing circuit 4 does not remove and stores the image data of the respective pixel in the buffer 5. Thus, the image processing circuit 4 memorizes, in the buffer 5, image data reduced according to the area reduction percentage (RED) input by a user. The mechanical control circuit 7 and the print control circuit 6 respectively control the motor drive circuit 8 and the print carriage 11 on the basis of the memorized image data so as to print a reduced image.
The above has described reduction of an image in the direction of pixel alignment of the image sensor 1, that is, alignment direction of the imaging element, but can be similarly applied to reduction of an image in a direction perpendicular to the direction of pixel alignment of the image sensor 1 (i.e. reduction in the direction of scanning lines of a document or of the image sensor 1 perpendicularly to the alignment direction of the imaging element). The reduction of an image in the perpendicular direction can be done by multiplying a length reduction ratio, output from the CPU 9, by line numbers of an image read by the image sensor 1, in which the line numbers are counted from a starting line of the image reading, so as to calculate reduction parameters for respective lines.
As described in the foregoing, according to the digital multifunctional apparatus of the present embodiment, the image processing circuit 4 is formed of a hardware circuit, so that it is possible that while reading image data of a document, the image processing circuit 4 can quickly enlarge or reduce the read image data for enlarging or reducing the image based on the image data without increasing the burden of the CPU 9. Thus, it is possible to use an inexpensive processor having a low operating clock frequency for the CPU 9, while reducing time required from reading of a document to printing, thereby making it possible to reduce the cost of the digital multifunctional apparatus. Moreover, it is possible to omit a CPU for scan control, a CPU for print control and a DSP for image processing, so that the cost of the digital multifunctional apparatus can be further reduced.
Furthermore, the image processing circuit 4 enlarges or reduces image data on the basis of enlargement parameters or reduction parameters calculated by a simple multiplication process so as to enlarge or reduce an image based on the image data, so that the circuit configuration of the image processing circuit 4 can be simplified, thereby still further reducing the cost of the digital multifunctional apparatus. In addition, the CPU 9 converts an area enlargement ratio and an area reduction ratio of an image into a length enlargement ratio and a length reduction ratio, respectively, so that a user is only required to input, to the digital multifunctional apparatus, an area enlargement ratio or an area reduction ratio according to a document or output paper, in order to be able to produce a print of a suitable size, thereby increasing user convenience.
The present invention is not limited to the structure, configuration or process of the above embodiment, and various modifications are possible. For example, the configuration of the image processing circuit 4 is not limited to that shown in FIG. 2, but can be a hardware circuit with another algorithm of enlargement and reduction different from that of the above embodiment. Furthermore, for converting the area enlargement ratio and the area reduction ratio to the length enlargement ratio and the length reduction ratio, respectively, it can be designed such that the CPU 9 calculates without using conversion tables such as shown in FIGS. 3 and 4. In addition, the printer function is not limited to that achieved by an inkjet printer, but can be that achieved by a laser printer.
This application is based on Japanese patent application 2004-140454 filed May 10, 2004 in Japan, the contents of which are hereby incorporated by references.
Although the present invention has been fully described by way of example with reference to the accompanying drawings, it is to be understood that various changes and modifications will be apparent to those skilled in the art. Therefore, unless otherwise such changes and modifications depart from the scope of the present invention, they should be construed as being included therein.

## Claims

1. A digital multifunctional imaging apparatus capable of copying a document independently, comprising:
an image sensor for irradiating light onto a document and receiving light reflected from the document so as to read image data of the document;
an image processor for processing the image data read by the image sensor so as to enlarge or reduce an image;
a printing mechanism for printing an image with using the image data processed by the image processor;
a single CPU (Central Processing Unit) for controlling the image sensor, the image processor and the printing mechanism; and
a memory memorizing operating programs of the CPU, wherein
the image processing means is configured by a hardware circuit
while reading the image data of the document, the image processor quickly processes the read image data for enlarging or reducing an image to be printed without increasing burden of the control means, and wherein
the CPU converts an area enlargement ratio input by a user into a length enlargement ratio by firmware installed in the memory using a linear approximation to regard the length enlargement ratio as varying linearly with the area enlargement ratio as the length enlargement ratio varies by every 0.1 and the calculated length enlargement ratio is output to the image processor;
for enlarging the image, the image processor calculates enlargement parameters for respective pixels or respective lines from a length enlargement ratio designated by a user and pixel numbers or line numbers of an image read by the image sensor, in which the pixel numbers or the line numbers are counted from a starting pixel or a starting line of the image reading, and supplements one image data between a respective pixel and the preceding pixel or between a respective line and the preceding line on the basis of the calculated enlargement parameter for the respective pixel or the respective line, so as to enlarge the image data; and
for reducing the image, the image processing means calculates reduction parameters for respective pixels or respective lines from a length reduction ratio designated by a user and pixel numbers or line numbers of an image read by the image sensor, in which the pixel numbers or the line numbers are counted from a starting pixel or a starting line of the image reading, and removes image data on the basis of the calculated reduction parameter for the respective pixel or the respective line, so as to reduce the image data.

2. A digital multifunctional imaging apparatus capable of copying a document independently, comprising:
an image sensor for irradiating light onto a document and receiving light reflected from the document so as to read image data of the document for each line;
an image processing means for processing the image data read by the image sensor so as to enlarge or reduce the image data;
a buffer means for temporarily storing the image data enlarged or reduced by the image processing means;
a printing means for producing a print on the basis of the image data stored in the buffer means;
a control means for controlling the image sensor, the image processing means, the buffer means and the printing means; and
a memory means memorizing an operating program of the control means and also storing a conversion table which the control means references, wherein
the control means is configured by a single CPU (Central Processing Unit),
referring the conversion table stored in the storage means, the control means converts an area enlargement ratio and an area reduction ratio input by a user to a length enlargement ratio and a length reduction ratio, respectively, using a linear approximation to regard the length enlargement ratio as varying linearly with the area enlargement ratio as the length enlargement ratio varies by every 0.1, and further outputs the converted length enlargement ratio and the converted length reduction ratio to the image processing means,
the image processing means is formed of a hardware circuit,
for enlarging the image, the image processing means multiplies a length enlargement ratio output from the control means by pixel numbers or line numbers of an image read by the image sensor, in which the pixel numbers or the line numbers are counted from a starting pixel or a starting line of the image reading, so as to calculate enlargement parameters for respective pixels or respective lines,
when the counted integer portion of the calculated enlargement parameter of a respective pixel or a respective line increases by at least two from that of the preceding pixel or the preceding line, the image processing means supplements one image data between the respective pixel and the preceding pixel or between the respective line and the preceding line, in which the image processing means stores the image data of the respective pixel or the respective line and the supplemented image data in the buffer means, while the counted integer portion of the calculated enlargement parameter of the respective pixel or the respective line does not increase by at least two from that of the preceding pixel or the preceding line, the image processing means stores the image data of the respective pixel or the respective line, as is, in the buffer means, so as to enlarge the image data, and
for reducing the image, the image processing means multiplies a length reduction ratio output from the control means by pixel numbers or line numbers of an image read by the image sensor, in which the pixel numbers or the line numbers are counted from a starting pixel or a starting line of the image reading, so as to calculate reduction parameters for respective pixels or respective lines,
when the counted integer portion of the calculated reduction parameter of a respective pixel or a respective line is unchanged from that of the preceding pixel, the image processing means removes the image data of the respective pixel or the respective line, while the counted integer portion of the calculated reduction parameter of the respective pixel or the respective line changes from that of the preceding pixel or the preceding line, the image processing means stores the image data of the respective pixel or the respective line in the buffer means, so as to reduce the image data,
whereby while reading the image data of the document, the image processing means quickly enlarges or reduces the read image data for printing without increasing burden of the control means.