Image processing apparatus

Abstract: An image processing apparatus includes a resolution ratio setting unit for setting a ratio of the resolution of input image data to the resolution of multi values image data to be output, a pixel interpolation unit for interpolating and determining pixel values of output multi values image data on the basis of the ratio set by the resolution ratio setting unit and the input image data, and an image data output unit for outputting the output multi values image data generated by the pixel interpolation unit.

Description: The present invention relates to an image processing apparatus suitably applied to a page printer, a digital copying machine, and the like. Conventionally, most page printers do not have a function of generating a large image. In addition, a storage means for image generation has a capacity corresponding to only one page of the maximum outputtable image size. Even when the image size can be changed, since the maximum outputtable image size is relatively small, such a page printer is used for outputting an image in the maximum image size or in a size close to it. However, when the page printer has only a storage capacity corresponding to one page of an image, image development processing for the next page cannot be started until an image output operation for the current page is completed. For this reason, in a compound machine of a copying machine and a page printer having a high print speed, the high print speed cannot often be sufficiently utilized. Most of such compound machines have a relatively large maximum outputtable image size. Meanwhile, image sizes that a user frequently outputs are often half or less the maximum image size. In this case, the use efficiency of a memory is low. A conventional image forming apparatus such as a page printer having a recording unit executes recording using a density obtained by expressing the density of one pixel as a binary value. For this reason, when the resolution of image data to be recorded is different from that of the recording unit, the resolution of the recording unit must be changed by the image forming apparatus side to match with that of the image data, or resolution conversion processing of binary data must be performed. As for image data whose resolution can be changed, e.g., image data such as vector data, binary image data to be developed is determined by the resolution of the recording unit. In the image forming apparatus, image data is developed to binary image data in correspondence with the resolution of the recording unit, and the developed data is output from the recording unit. However, as a countermeasure to be taken when the resolution of the input image data is different from that of the recording unit of the image forming apparatus, to prepare a plurality of resolutions in the recording unit of the image recording apparatus results in a complicated apparatus arrangement and high cost, and the prepared resolutions can only be used. When resolution conversion of binary image data is performed in the image forming apparatus, image quality is considerably deteriorated. Furthermore, when vector data or the like is developed to binary image data, if the resolution of the recording unit is high, it takes much time in the image forming apparatus to develop image data. US-A-4905097 discloses an image processing system in which binary image data can be converted to multi-value image data. US-A-4841375 discloses an image resolution conversion apparatus in which an image having a first pixel density can be converted to an image having a second pixel density which is different from the first pixel density. It is another object or the present invention to provide an image forming apparatus, which can execute flexible resolution conversion corresponding to various resolutions with less deterioration of image quality without complicating an arrangement in such a manner that input image data is converted into multi values image data with a desired resolution, and the converted image data is output. In accordance with one aspect the present invention provides an image processing method comprising a first conversion step of converting binary image data having a first resolution into multi-value image data having the first resolution, one logical level of the binary image data being converted into a first predetermined value of the multi-value image data, and the other logical level of the binary image data being converted into a second predetermined value of the multi-value image data different from the first predetermined value; and by a second step of converting the multi-value image data having the first resolution into multi-value image data having a second resolution pixel values of the multi-value image data being determined by pixel interpolation based on the ratio of the first and second resolutions. In accordance with another aspect the present invention provides image processing apparatus comprising conversion means for converting binary image data having a first resolution into multi-value image data having said first resolution; characterised by said conversion means is adapted to convert one logical level of said binary image data into a first predetermined value of the multi-value image data, and the other logical level of the binary image data into a second predetermined value of the multi-value image data different from the first predetermined value; and by resolution conversion means for converting the multi-value image data having the first resolution into multi-value image data having a second resolution pixel values of the multi-value image data being determined by pixel interpolation based on the ratio of the first and second resolutions. With the above arrangement, input multi values or binary image data is converted into multi values image data according to a ratio of the resolution of the input image data to that of the output image data. Thus, the multi values image data having a desired resolution can be obtained regardless of the resolution of the input image data. Furthermore, as for image data whose resolution can be changed, input image data is developed to binary image data having a desired resolution, and the developed image data is further converted into multi values image data having a desired resolution. Embodiments of the present invention will now be described with reference to the accompanying drawings, in which: Fig. 1 is a schematic view showing the entire image forming apparatus according to the first and second embodiments of the present invention; Fig. 2 is a block diagram of the image forming apparatus; Fig. 3 is a circuit diagram of an exposure control signal generation circuit; Fig. 4 is a timing chart showing signal waveforms upon generation of an exposure control signal; Fig. 5 is a block diagram of a two values (binary) image generation & storage unit; Fig. 6 is an explanatory view of an enlargement & reduction algorithm; Fig. 7 is an explanatory view of a resolution conversion algorithm; Fig. 8 is a flow chart executed when data which does not depend on the resolution is to be processed; Fig. 9 is a block diagram of an image forming apparatus according to the third embodiment of the present invention; Fig. 10 is a block diagram of a two values image generation & storage unit; Fig. 11 is a flow chart when an image memory is used upon being divided; and Fig. 12 is a flow chart showing an operation according to the fifth embodiment of the present invention. <First Embodiment> In an image forming apparatus of the first embodiment, a digital copying machine embodied as a multi values printer will be described. Fig. 1 is a schematic view of the entire digital copying machine used in the image forming apparatus of the first embodiment. In general, the digital copying machine comprises a printer unit 33 capable of printing density data as multi values data in units of pixels so as to output an image read by an image reader 31 with high quality. In Fig. 1, originals placed on an original feeder 1 are sequentially conveyed onto an original table glass surface 2 one by one. When an original is conveyed, a lamp 3 of a scanner unit 4 is turned on, and the scanner unit 4 moves to illuminate the original. Light reflected by the original is transmitted through a lens 8 via mirrors 5, 6, and 7, and is input to an image sensor unit 9. The arrangement and function of the image reader 31 have been described. Fig. 2 is a block diagram of the image forming apparatus according to this embodiment. An output signal from the image reader 31, i.e., an image signal output from the image sensor unit 9 is input to an image signal control circuit 32 controlled by a CPU 30. The image signal control circuit 32 converts input image data into digital multi values image data, further processes the converted data, and supplies the processed data to the printer unit 33. A laser beam is controlled by an exposure control unit 10 according to a signal input from the image signal control circuit 32 to the printer unit 33, and is radiated on a photosensitive body 11 as a light signal. A latent image formed on the photosensitive body 11 by the radiated light is developed by a developing unit 13. A transfer sheet is conveyed from a transfer sheet stack unit 14 or 15 in synchronism with the formation of the latent image, and is registered by registration rollers 21. Thereafter, the developed image is transferred onto the transfer sheet. The transferred image is fixed to the transfer sheet by a fixing unit It, and the transfer sheet is discharged outside the apparatus by a sheet discharge unit 18. Note that an intermediate tray 20 is used in a dual-surface print mode, and a flapper 19 is used for switching the sheet convey path to the sheet discharge unit or the intermediate tray 20. An arrangement with which the printer unit 33 of the image forming apparatus of this embodiment outputs multi values density data will be described below. The printer unit 33 of this embodiment employs a laser beam as exposure means for scanning in units of lines, and a signal for controlling the laser beam is modulated to change the radiation area on the photosensitive body 11, so that area gradation can be realized in units of pixels, and an image can be expressed as multi values data. Fig. 3 is a circuit diagram of a circuit for generating a signal for modulating the laser beam on the basis of an image signal input to the printer unit 33. Density data of an image based on an image signal input to the printer unit 33 is a digital value. When this value is input to a D/A converter 41 in units of pixels, the digital value is converted into an analog value, and the analog value is input to a comparator 42. A triangle wave generator 40 supplies a triangle wave to be compared with an image signal to the comparator 42. Fig. 4 is a timing chart showing the relationship among an image signal 101 and a triangle wave output 102, which are input to the comparator 42, and an exposure control signal 103 output from the comparator 42. The exposure control signal 103 is output as a pulse-width modulation (PWM) signal corresponding to the level of the image signal 101. When the radiation time of the laser beam for each pixel in one scanning line is controlled according to the exposure control signal 103, the radiation area of each pixel can be changed, and area gradation can be realized. A two values (binary) image generation & storage unit 34 shown in Fig. 2 will be described below. Fig. 5 is a block diagram showing the details of the binary image generation & storage unit 34. The binary image generation & storage unit 34 develops image data on the basis of data according to a page descriptive language sent from an external computer. The page descriptive language means a language system for expressing image data in units of pixels to be output by, e.g., a page printer in the form of commands. An interface 53 is an I/O interface with the external computer. Upon reception of the page descriptive language data input through the I/O interface 53, a CPU 50 interprets the content of the input data, and develops binary image data for one page onto an image memory 52 through a memory main controller 51. The image developed in this manner or an image read by the image reader 31 may be stored in a disk device 24 or may be displayed on a display device 22. In general, the image is output by the printer unit 33. Upon completion of the development of image data, the CPU 50 communicates with the CPU 30 through a communication line 54 to prepare for a communication of image data through an image data bus 55. When image data is transmitted to the image signal control circuit 32, the image data is converted through a binary & multi values conversion unit 56 and an enlargement & reduction circuit 57 shown in Fig. 5. The binary & multi values conversion unit 56 assigns two values of image data developed on the image memory 52 to the maximum and minimum values of multi values data, and outputs the multi values data. The enlargement & reduction circuit 57 executes resolution conversion of the input multi values data in the main scanning and subscanning directions according to the following algorithm. A multi values image enlargement & reduction method will be described below with reference to Fig. 6. In this case, main scanning pixels are enlarged to x/(x-y)%. At an equal magnification, no problem is posed since actual output positions 61 and actual read positions 63 of original image data (Fig. 6) correspond to each other. In an enlargement mode, it is considered that image signals are input at virtual read positions 62. When image data at the virtual read positions 62 are output to the actual output positions 61, an image can be enlarged. An image data density at each virtual read position 62 is interpolated from density values of image signals input at the actual read positions 63 according to the following equation: O2 = {R1•y + R2•(x - y)}/x In the subscanning direction, this algorithm can be applied to scanning lines. Fig. 7 shows a state wherein the above-mentioned enlargement & reduction circuit executes resolution conversion. When the virtual read positions 62 in Fig. 6 are considered as actual output positions 71, resolution conversion is executed. As shown in Fig. 7, when pixels at virtual read positions are interpolated so as to perform image enlargement, the resolution can be converted to a higher one. On the other hand, when pixels at virtual read positions are interpolated so as to perform reduction, the resolution can be converted to a lower one. Based on the above description, the operation of the copying machine of the first embodiment will be described below. In general, the content of an image described in the page descriptive language is set for the resolution corresponding to an exclusive page printer. For example, assume that the printer unit 33 of the image forming apparatus according to this embodiment outputs pixels at 400 dots per inch (dpi), and data according to the page descriptive language corresponding to a page printer for outputting pixels at 240 dpi is supplied to the binary image generation & storage unit 34. In this case, the CPU 50 develops image data on the image memory 52 at a resolution of 240 dpi. When the developed data is transferred to the printer unit 33 of the copying machine, data is set in the enlargement & reduction circuit 57 to enlarge data at a magnification given by: (400/240) × 100 = 166.6% The image data is converted into multi values data by the binary & multi values conversion unit. Thereafter, the enlargement & reduction circuit executes interpolation of pixels at the set magnification, and the interpolated data is transferred to the printer unit 33. The printer unit 33 outputs the transferred image data at 400 dpi. In this manner, image data input at 240 dpi can be output at 400 dpi. As described above, according to the first embodiment, binary image data is converted into multi values image data, and the resolution of the multi values image data is converted using the enlargement & reduction function. Thus, the resolution of image data can be easily converted to a desired value while suppressing deterioration of image quality. Therefore, image data having various resolutions can be recorded. In the first embodiment, the printer unit of the digital copying machine can be utilized by resolution conversion, and an image forming apparatus having both the functions of a copying machine and a page printer can be realized. Thus, the image forming apparatus with high use efficiency can be provided. <Second Embodiment> In the second embodiment, a case will be explained below wherein the above-mentioned page descriptive language processes data which does not depend on the resolution, e.g., vector data. The arrangement of the apparatus is the same as that in the first embodiment. Since data does not depend on the resolution, when input page descriptive language data is vector data, the binary image generation & storage unit 34 need only develop the page descriptive language data according to a constant depending on the designated resolution, so that it can cope with any resolution. When the CPU 50 develops data onto the image memory 52 like in this embodiment, the time required for developing data is increased as the resolution becomes higher. However, since the binary & multi values conversion unit 56 and the enlargement & reduction circuit 51 can perform real-time processing, the data need only be developed at a low resolution so as not to influence image quality, and the time until actual image data is output from the copying machine can be greatly shortened. Upon comparison of the development times of image data on the basis of the number of pixels per unit area, the development time at 400 dpi is about three times that at 240 dpi as follows: (400) 2 /(240) 2 = 25/9 The effect of this embodiment is remarkable. Fig. 8 is a flow chart when image data input from the external computer connected to the interface 53 is developed at a low resolution. In step S1, reception from the external computer is started. In step S2, data indicating a development resolution is received. The development resolution is set to be lower than a resolution output to the image signal control circuit. In step S3, page descriptive language data is received, and in step S4, binary image data is developed onto the image memory 52 based on the received data (image data is developed at a resolution lower than that of the printer unit 33). In step S5, a variable magnification corresponding to a designated resolution is set in the enlargement & reduction circuit 57. For example, when image data is developed at a resolution of 240 dpi, and the developed data is output at a resolution of 400 dpi, a variable magnification to be set is: (400/240) × 100 = 166.6% In step S6, the image signal is supplied to the image signal control circuit 32 through the enlargement & reduction circuit 57 set at the above variable magnification. In this manner, binary image data developed at 240 dpi is converted to multi values image data at 400 dpi, and the printer unit 33 prints the multi values image data. As described above, according to the second embodiment, since image data is developed at a resolution lower than that of the printer unit 33, the processing time of image data can be shortened. In addition, since resolution conversion is performed using multi values image data, deterioration of an output image can be minimized. <Third Embodiment> In the third embodiment, a known facsimile function is applied to means for generating binary image data. In a normal facsimile function, as shown in Fig. 9, data received through a public line 37 is developed onto a memory (not shown) included in a facsimile image reception & development circuit 36 by the facsimile image reception & development circuit 36. When the resolution of the developed image data is converted by the method described in the first embodiment, and the resolution-converted data is output, image size information and resolution information are required. In this case, by utilizing the facsimile communication function, the size of a received image, and the resolution of an image can be detected. Therefore, a proper enlargement or reduction ratio is obtained from these values, and the received image can be output as an image expressed by multi values data. Note that the present invention may be applied to either a system constituted by a plurality of devices, or an apparatus constituted by a single device. As described above, an image forming apparatus, which can generate and output image data having a desired resolution on the basis of input image data, and can execute resolution conversion in a simple arrangement while suppressing deterioration of image quality, can be provided. Image data whose resolution can be changed is developed at a desired resolution, and thereafter, the resolution of the developed image data can be converted into a resolution matching with an output apparatus. Thus, image data can be developed at a resolution lower than that of the output apparatus, thereby shortening the development time of an image. <Fourth Embodiment> The operation of the above-mentioned arrangement according to the characteristic feature of the present invention will be described below with reference to the block diagram of Fig. 10 and the flow chart of Fig. 11. A copying machine 100 of this embodiment can output an image of a maximum of an A3-size sheet. For this reason, at 240 dpi, an image memory 52 must have a capacity of at least: (297 mm × 240 dpi/25.4 mm/inch) × (420 mm × 240 dpi/25.4 mm/inch)/8 = 1.4 Mbytes In this embodiment, page descriptive language data is received from a computer (steps T1 and T2), and the size of an image to be generated is determined (step T3). When an A4-size image is formed and output, the required capacity can be half the above-mentioned capacity, i.e., 0.7 Mbytes, and the image memory 52 is used upon being divided into two areas (image memories) 52a and 52b (step T4). Upon completion of development of an image into the divided image memory (52a or 52b), the developed image is output under an assumption that the output order of the developed image is left unchanged. When the developed image is being output from one area (e.g., the area 52a), the flow advances from step T5 to step T7, and the system as a whole is set in a wait state. By utilizing this wait time, development of an image of the next page onto the area 52b is started (step T8). When the output operation of the image from the area 52a is completed, image data of the next page is developed onto the area 52a during the output wait time after the completion of image development onto the area 52b (step T9). When an A3-size image is developed, one image occupies the entire image memory 52. In order to execute the above-mentioned processing, a memory main controller 51 shown in Fig. 10 is preferably constituted by two equivalent controllers for the sake of easy control. With this arrangement, when the image memory 52 is used upon being divided into two areas, the two memory main controllers can be respectively assigned to the divided memory areas 52a and 52b. More specifically, the memory main controller 51 generates, e.g., an address signal used when image data is output from the image memory 52. When two controllers are arranged in correspondence with the predetermined memory areas, the memory main controller can be easily constituted by, e.g., gate arrays. When a CPU 50 supplies an instruction to the memory main controller corresponding to, e.g., the area 52a, a bus connected to the area 52a is disconnected from the CPU 50, and thereafter, the memory main controller corresponding to the area 52a and the CPU 50 can parallelly execute different operations. As described above, according to this embodiment, even during the output operation of an image signal of the previous page (during the operation of one memory main controller), image development by the CPU 50 can be started (steps T6 and T8), and the output operation of an image (the operation of the other memory main controller) can be performed (step T12) while executing, e.g., variable magnification processing (step T11) after the completion of the output operation of the previous page (step T10). If it is determined in step T3 that an image size is larger than the A4 size, the entire image memory 52 is occupied by one image, and image development is started (step T13). After the completion of the image development (step T14), the flow advances to step T11. As a modification of this embodiment, a plurality of CPUs for controlling the memory main controller and the image memory may be arranged. In an arrangement of this modification, two CPUs 50 shown in Fig. 10 are arranged. The flow chart is equivalent to that shown in Fig. 11. In this case, since development operations onto the divided image memories can be parallelly executed, the development and output operations can be executed at higher speed than the above embodiment. When an image is developed using the entire image memory, one CPU is inhibited from executing development, thus executing proper development. As described above, when the image forming apparatus capable of generating and outputting a large-size image generates and outputs an image smaller than a predetermined size, the image memory is divided into a plurality of areas, and the image is developed onto one area while the other area is in an output wait state, thereby improving the throughput of the entire apparatus. <Fifth Embodiment> In this embodiment, even when the size of an image to be output is an A3 size, the image memory 52 is used upon being divided into the two areas 52a and 52b. More specifically, page descriptive language data is received from a computer (steps E1 and E2), and image development is performed using a non-used one of the areas 52a and 52b (steps E3 to E6). When the image development is completed (step E7), and image data is not being currently output to the copying machine (step E8), resolution conversion and variable magnification processing are performed (steps E10 and E11) according to the image size to be generated (step E9), and the processed image data is output to the copying machine (step E12). More specifically, in this embodiment, for example, when an A3-size image is developed, since a low resolution is set, image development can be performed using one of the areas 52a and 52b. When image data is output to the copying machine, since resolution conversion is performed in step E11, image data having a desired size and resolution can be output. In this manner, since the image memory 52 is divided into the two areas like in the above embodiment, the throughput can be improved.

Claims: An image processing method comprising: a first step of converting binary image data having a first resolution into multi-value image data having the first resolution, one logical level of the binary image data being converted into a first predetermined value of the multi-value image data, and the other logical level of the binary image data being converted into a second predetermined value of the multi-value image data different from the first predetermined value; and a second step of converting the multi-value image data having the first resolution into multi-value image data having a second resolution pixel values of the multi-value image data being determined by pixel interpolation based on the ratio of the first and second resolutions. A method according to claim 1, further comprising the step of generating the binary image data having the first resolution on the basis of input information sent from an external apparatus. A method according to claim 2, wherein the input information includes information for specifying the first resolution. A method according to claim 3, wherein the first resolution is specified by a command from the external apparatus. A method according to claim 2, wherein the input information is resolution independent information. A method according to claim 5, wherein said binary image data is generated at said first resolution which is a lower resolution than said second resolution. A method according to claim 5 or claim 6, wherein the first resolution is predetermined. A method according to claim 2, wherein the input information is facsimile reception information. A method according to any one of claims 2 to 7, wherein the input information is described in a page description language. A method according to any one of claims 2 to 9, wherein a memory means (52) having a plurality of memory areas (52a, 52b) is provided for storing the generated binary image data, the method including the parallelly executed steps of developing the binary image data in one of said memory areas (52a, 52b); and outputting binary image data stored in another of said memory areas (52a, 52b); wherein the binary image data output from said memory means (52) is converted into multi-value image data in the conversion step. A method according to any preceding claim further including the step of outputting the multi-value image data having the second resolution. Image processing apparatus comprising: conversion means (56) for converting binary image data having a first resolution into multi-value image data having said first resolution; characterised by said conversion means (56) being adapted to convert one logical level of said binary image data into a first predetermined value of the multi-value image data, and the other logical level of the binary image data into a second predetermined value of the multi-value image data different from the first predetermined value; and by resolution conversion means (57) for converting the multi-value image data having the first resolution into multi-value image data having a second resolution pixel values of the multi-value image data being determined by pixel interpolation based on the ratio of the first and second resolutions. Image processing apparatus according to claim 12 including generation means (50, 51, 52) for generating the binary image data having the first resolution on the basis of input information sent from an external apparatus. Image processing apparatus according to claim 13, wherein said generation means (50, 51, 52) is adapted to generate the binary image data using the input information which includes information for specifying the first resolution. Image processing apparatus according to claim 14, wherein said generation means (50, 51, 52) is adapted to generate the binary image data at the first resolution in response to a command from the external apparatus which specifies the first resolution. Image processing apparatus according to claim 13, wherein said generation means (50, 51, 52) is adapted to generate the binary image data on the basis of the input information which is resolution independent. Image processing apparatus according to claim 16, wherein said generation means (50, 51, 52) is adapted to generate the binary image data at said first resolution which is lower than said second resolution. Image processing apparatus according to claim 16 or claim 17, wherein said generation means (50, 51, 52) is adapted to generate the binary image data at said first resolution which is predetermined. Image processing apparatus according to claim 13, wherein said generation means (50, 51, 52) is adapted to generate the binary image data on the basis of facsimile reception information. Image processing apparatus according to any one of claims 13 to 18, wherein said generation means (50, 51, 52) is adapted to generate the binary image data on the basis of information in a page description language. Image processing apparatus according to any one of claims 12 to 20, further including output means (55) for outputting the multi-value image data having the second resolution. Image processing apparatus according to claim 21, wherein said output means (55) comprises electrophotographic means.

Inventors: KOHTANI HIDETO, MAKITANI HIDEYUKI, SAKAI MASANORI, UTSUNOMIYA TAKEHITO, KOHTANI, HIDETO, MAKITANI, HIDEYUKI, SAKAI, MASANORI, UTSUNOMIYA, TAKEHITO, KOHTANI, HIDETO, C/O CANON KABUSHIKI KAISHA, Makitani, Hideyuki, c/o Canon Kabushiki Kaisha, SAKAI, MASANORI, C/O CANON KABUSHIKI KAISHA, Utsunomiya, Takehito, c/o Canon Kabushiki Kaisha
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1992
Main classification: G06K15
IPC codes: G06K15