Image processing method and system
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a method or system for processing image data. 
     2. Description of the Prior Art 
     In a conventional copying apparatus, when a plurality of originals of a size 1/4 that of the original table are to be copied, four originals, for example, are arranged on the original table for copying on a single recording paper sheet. Then, the sheet must be cut to the size of the original. Alternatively, the originals are placed on the original table one by one for copying on sheets of the corresponding size. Therefore, such a copying apparatus is inefficient. 
     Copying apparatus of another type form images on the basis of image data stored in and read out from a line memory or a page memory. In this case, images are formed on sheets of a single size. Therefore, an image may be formed outside the sheet if a recording paper sheet of a different size is used. 
     Still another apparatus scans an original by means of the relative movement of a CCD and the original. The image data obtained by this scanning operation is stored in a memory. The relative movement is performed over the entire document table. Therefore, scanning may be carried out beyond the memory capacity or the memory area capacity for storing the image data. 
     In some copying apparatus, memory addresses corresponds to points on the coordinate system defined on the original table. If the original is not placed at a proper position, the desired copy may not be produced. 
     On the other hand, when the image data of an original is read and converted into electric signals and then these signals are processed to print out images, the processing speed may sometimes be reduced, or an erroneous operation may occur. 
     SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide an image processing method and system which eliminates the drawbacks of conventional apparatus as described above. 
     It is another object of the present invention to provide an image processing method and system in which proper memory access is possible according to the scanning area or the paper size. 
     It is a further object of the present invention to provide an image processing method according to which image data of a plurality of originals can be simultaneously read by a single scanning operation over the original table to be stored in a memory, and the image data can be separately read out from the memory to produce images on sheets of corresponding sizes. 
     It is a still further object of the present invention to provide an image processing method and system in which an original can be scanned in accordance with the capacity of the memory areas for storing the image data. 
     It is a still further object of the present invention to provide an image processing method and system which comprises an image memory of a capacity corresponding to the scanning area on the original table and in which image data is read out from addresses of the image memory corresponding to respective zones of the original table. 
     It is a still further object of the present invention to provide an image processing method and system in which the access limit of an image memory can be displayed. 
     It is a still further object of the present invention to provide an image processing method and system in which the access area of an image memory can be displayed. 
     It is a still further object of the present invention to provide an improvement in a copying system wherein image data of an original is read and converted into electric signals, and these electric signals are stored in a memory and read out for printing. 
     It is a still further object of the present invention to provide an improvement in a high-speed printing system. 
     The above and other objects of the present invention will be apparent from the following description of the preferred embodiments thereof. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a diagram illustrating a scanning area of an original table divided into a plurality of zones of a desired size according to the present invention; 
     FIG. 2 is a diagram illustrating memory areas corresponding to the divided zones of FIG. 1 according to the present invention; 
     FIG. 3 is a block diagram of an image processing system according to one embodiment of the present invention; 
     FIG. 4 is a diagram for explaining a division process of the scanning area of an original; 
     FIGS. 5 to 8 are respectively examples of control flowcharts; 
     FIG. 9, comprising FIGS. 9A and 9B, is a block diagram of an image processing syste according to another embodiment of the present invention; 
     FIGS. 10 to 12 are respectively operation timing charts for the circuitry of FIG. 9; and 
     FIG. 13 is a perspective view of a photosensitivie drum. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     One embodiment of the present invention will now be described below with reference to the accompanying drawings. 
     FIG. 1 is a diagram for explaining a process of reading an original when the surface area of an original table is divided into four zones (Z1, Z2, Z3 and Z4), for example. The original is read in the conventional manner wherein a solid scanning element such as a CCD or an optical imaging system for the CCD reciprocates on the stationary original. First, main scanning is performed along the direction indicated by arrow a and then subscanning is performed in the direction perpendicular thereto. Thereafter, main scanning is carried out in the direction indicated by arrow b. Subscanning is performed by the displacement of the CCD or the optical system. Similarly, main scanning and subscanning operations in the directions indicated by arrows c, d to g are repeated to sequentially read the original image in units of picture elements. 
     Image data thus obtained is sequentially written in the predetermined memory areas of an image memory such as a RAM, as shown in FIG. 2. The image data of a byte length l (1 byte=8 bits) can be stored in one memory area M1. The image data obtained by the first main scanning in the direction a is stored at an address a corresponding to two memory areas M1 and M2. In this manner, the image data of one main scanning line X is stored at the addresses b, c to g each corresponding to a set of two memory areas M1 and M2, or M3 and M4. Therefore, the image data read from the zones Z1, Z2, Z3 and Z4 are written in the memory areas M1, M2, M3 and M4, respectively. 
     FIG. 3 is a block diagram of a circuitry for storing image data corresponding to the divided zones Z1, Z2, Z3 and Z4 of the original table in an image memory and for reading out the image data therefrom. Referring to FIG. 3, an image memory 10 receives via a signal line Vd the image data read by a known reader 30 having a CCD. The image memory 10 includes an address counter for counting its address. When one readout operation of the CCD is finished, a main scanning end signal is supplied to a CPU 20 via a signal line L R  (E) to output an address signal on a read/write address setting line Ad. The image data is written at the corresponding address of the image memory 10. Also, the CCD starts reading the next line and the obtained image data is stored at the next address. The original is sequentially read in this manner. The image data thus obtained is arranged and stored in the respective predetermined memory areas of the image memory 10 in the manner as shown in FIG. 2. 
     The image data thus stored is read out from the image memory 10 in response to clocks CLK from a readout clock 16. A byte counter 12 counts these clocks CLK to determine the byte length of the image data (hereinafter referred to as &#34;the transfer data&#34;) read out from the memory 10 and to produce a count output C. This count output C is supplied to a comparator 14 to be compared with a preset byte number signal L B  corresponding to the byte length l. When the count output C reaches the preset byte length, the comparator 10 generates a count-up signal Cup and outputs a reset signal RESET to the byte counter 12. 
     A pair of line buffer memories 18L (hereinafter referred to simply as &#34;the line buffers&#34;) output the image data obtained by one main scanning operation of the CCD. In this embodiment, two line buffers are employed for faster operation. A switching circuit 18C such as a multiplexer selects one of the line buffer memories 18L to be used. 
     An operation instruction input unit 40 comprises a keyboard, for example, which provides operation instructions to a CPU 20. The operation instruction input unit 40 includes a display portion 40A for displaying the number of divided zones; another display portion 40B for displaying the number of copies to be produced; a mode selection key 40C for selecting whether or not division is to be made; an original division size specifying key 40D; and an input portion 40E with a plurality of ten keys 0 to 9, a clear key C, and a read start key 40e. 
     A printer 50 produces hard copies of the image data output from the line buffers 18L. The printer 50 is a line printer such as a laser beam printer consisting of a CPU 52 (including a microcomputer 8080 manufactured by Intel Inc., for example. The CPU 20 may also include an Intel Inc. 8080 microcomputer) and a sheet feed system 54. The sheet feed system 54 has a sheet feed driver 54A for driving sheet feed rollers 54B in response to commands from the CPU 52, and cassettes 54C and 54C&#39; for A6 and A3 size originals, respectively. Either of the cassettes 54C and 54C&#39; is selected at any one time. A cassette size detector 54D detects the cassette size, and a detection signal therefrom is supplied to the CPU 52. In accordance with this detection signal, a cassette of a proper size is selected in response to the key-in operation of one the keys 40D. Further, the memory addresses are selected according to the selected cassette size. 
     The mode of operation of the above embodiment of the above structure will be described below. A description will be made with reference to a case wherein image data for the zone Z1 of FIG. 1 is read out from the image memory 10. As described above, the image data for Z1 is stored in the memory areas M1 of the image memory, as shown in FIG. 2. Then, the preset byte number signal L B  corresponding to the byte length l of the image data obtained from the zone Z1 by one main scanning operation of CCD of the reader 30 is supplied to the comparator 14. The address (a, a&#39;, g or g&#39;) and the byte length are determined by the CPU 20 based upon the data entered through one of the keys 40D. In correspondence with the size and position of the zone specified by the one of the keys 40D, the address signal on the read/write address setting line Ad is transferred to the image memory 10 to set a transfer start address. Then, a read start signal L RW  (S) is supplied to one line buffer 18L to start transferring the image data. The byte counter 12 counts the clocks CLK to output a count output C representing the transfer byte length to the comparator 10. The comparator 14 compares this count output C with the signal L B . When the count output C reaches the signal L B , the comparator 14 outputs to the CPU 20 a count-up signal Cup representing completion of the transfer of the image data of one main scanning line across the image zone Z1, and also resets the byte counter 12 by the reset signal RESET. The CPU 20 receives the count-up signal Cup from the comparator 14 to change the address counted by the address counter from a to b (FIG. 2). During this time interval, image signals R are read out from the line buffer 18L in response to the readout clocks CLK. The image signals R are input to the printer 50 to record an image of the byte length l on a recording paper sheet fed from the cassette 54C or 54C&#39; for the size of the zone Z1. When recording is completed, the printer 50 produces a read end signal L W  (E). 
     When the CPU receives the signal L W  (E), a signal for initiating image data transfer for the next main scanning line, that is, another read start signal L RW  (S) is supplied to the image memory 10 and to the byte counter 12. Concurrently, a switching signal Sf synchronous with the signal L RW  (E) is supplied to a control 18C to switch from one line buffer 18L to another. The image data stored in the memory area M1 at the address b is read out and printed as in the case of that at the address a. In response to another count-up signal Cup from the comparator 14, the CPU 20 again sets the address counted by the address counter from b to c. Also, the CPU 20 supplies another read start signal L RW  (S) to the image memory 10 and the byte counter 12, and switches the line buffers 18L, in response to the read end signal L W  (E) from the printer 50. Furthermore, the length of the zone Z1 in the subscanning direction (that is, the number of main scanning lines) is set in the RAM of the CPU 20. The CPU 20 repeats the above operation until the current number of main scanning lines coincides with the preset value. Thus, the image data transfer for Z1 is completed. In this manner, the CPU sequentially presets read start addresses for the respective memory areas M2 to M4 corresponding to the zones Z2 to Z4. The CPU then sequentially and separately outputs the image data stored in the memory areas M2 to M4 onto recording paper sheets of corresponding sizes. 
     The sheet feed roller of the cassette 54C or 54C&#39; is driven when the transfer of the image data in the memory areas M1 to M3 is completed. Consequently, recording paper sheets are fed in correspondence with the memory areas M2 to M4. Addressing of the memory areas M2 to M4 is performed in response to the start of the feeding operation of sheets corresponding to the zones Z2 to Z4. 
     In this manner, the byte length l (main scanning length) in the comparator 14 is programmable by the size signal entered through the keys. Furthermore, the subscanning range is also programmable. Therefore, when the original table surface is divided into two or four zones, for example, images on these divided zones can be reproduced on sheets of different sizes. In addition, the readout location of the memory can be automatically selected in accordance with the sheet size required. The read start bit can be selected in accordance with the sheet size, if a line memory is employed. 
     The reading operation of the reader 30 and storage of the image data in the image memory 10 will be described below in conjunction with the original table. 
     FIG. 4 shows an original table of A3 size. Eight pairs of LEDs 1 and 1&#39; to 8 and 8&#39; for indicating the original position are disposed around the original table. It is now assumed that the original table division mode is specified by the mode selection key 40C of the input unit 40 and one of the division size indicating keys 40D, for example, an key |A6| is operated. Then, the LEDs 1 to 3 and 8 are lit as shown by the dotted lines of FIG. 4 to display the positions to place the original. In this case, up to eight originals may be set. The number of originals is entered through the input portion 40E and displayed at the display portion 40A as the number of used divided zones. When the number displayed at the display portion 40A exceeds the allowable number, the display portion is lit, for example, to disable the key input. If the originals are set in the sequence of a, b, c, d, e, f, g and h to facilitate the operation of the CCD, the subscanning length and the scanning duration are reduced. In the case of four originals of A6 size, they can be placed on the original table in the sequence of a, b, c and d. Then, subscanning is performed up to a position of the LED 1. The readout sequence from the image memory is determined so that the system may be simplified. 
     The reading operation is started when the read start key 40e shown in FIG. 3 is operated. The CPU 20 counts main scanning end signals L R  (E) (H sync) from the reader 30. The count value of L R  (E) is compared with the number of main scanning lines w (subscanning length) determined by the division size and the number of used zones according to the key input. When these two values coincide with each other, the reading operation is completed. Thereafter, the optical scanning system is restored to the home position for the next scanning operation. That is, when the key |A6| and key |4| are operated, the optical system is stopped at a position of the LED 1 and returned to the above position. Alternately, the number of main scanning lines w can be decremented every time the signal L R  (E) is input and subscanning can be stopped when w becomes zero. 
     Then, the data corresponding to the original table zone a is output from the image memory 10 to the printer 50 in the manner described above. In this case, the preset byte number signal corresponding to the distance from a read start point S to the LED 2 is set in the comparator 14. The main scanning end signals L R  (E) representing the number of H sync signals (main scanning lines) from the read start point S to the LED 3 is supplied to the RAM of the CPU 20. Output of the image data from the memory is thus controlled. Data is sequentially output from the memory areas corresponding to the zones a, b, c and d for printing four copies. Thus, the scanning length is determined in accordance with the size of the memory area accessed. 
     The original support division size specifying keys 40D are operated so as to select a cassette of the required size (A6 in FIG. 4, for example). In an appropriate case absence of a cassette of the selected size is signalled and the image is formed on a sheet of a larger size. 
     When an original is placed in the zone a of the original table and the key |A6| as well as the key |1| are operated, the optical scanning system stops scanning at the LED 3 and starts returning. Then, the byte length and address are determined in the manner as described above. The image data is stored in the memory areas corresponding to the zone a. The stored data is read out on the basis of the byte length and address for printing operation onto a sheet of A6 size. 
     When the normal mode is selected by the mode selection key 40C, the original support division size specifying keys 40D simply function as sheet size selection keys. The number of copies to be made is displayed at the display portion 40B by a display output Dsp from the CPU 20. 
     Alternatively, the cassette size in the printer may also be used for indicating the original table division size. In this case, original table division size specifying keys 40D are not required. When the original division mode is specified by the mode selection key, 40C, the original table division size is determined by the sheet size of the cassette received in a particular cassette holder (by a signal from the cassette detector 54D). The cassette used is selected by specifying the upper or lower cassette position through a key not shown. 
     Access control in accordance with the sheet size is possible not only for the readout operation from the image memory, but also for the writing operation into the image memory. 
     When the image memory comprises a floppy disk, the limit of its storage capacity can be displayed at the display portion 40A. The LEDs of FIG. 4 can be then effectively used for overlaying of a memory image and an original image, since they display access areas of the image memory 10. 
     The present invention may be sufficiently understood and practiced with reference to FIGS. 1 to 4, but will now be additionally described with reference to the control flowcharts of FIGS. 5 to 8. These control programs are stored in the ROM in the microcomputer of the CPU 20. FIG. 5 shows a general flow of operation. In step 5-1, the printer 50 is checked for abnormal state. When it is in the normal state, key-in and display operations are performed at the operation instruction input unit 40 (step 5-2). Data entered through the keys is stored in the RAM of the CPU 20. When the read start key 40e is operated, the reader 30 is actuated (step 5-3) and the image data is written in the image memory 10 (step 5-4). Then, images are printed out according to the image data read out from the memory in steps 5-5 and 5-6. 
     FIG. 6 illustrates the flow of operation in step 5-4 in more detail. As described above, the required number of main scanning lines w is calculated in accordance with the division size and number data entered through the keys 40D and 40E, and then stored in the RAM as in step 6-1. In step 6-2, the start address is set in the address counter in the image memory 10. In step 6-3, it is discriminated if the image data of one scanning line has been stored in the image memory. When YES is obtained in step 6-3, the next start address is set in the address counter (step 6-4). Then, &#34;1&#34; is subtracted from w (step 6-5), and the reading operation of the CCD as well as the writing operation into the image memory are repeated until w becomes zero (step 6-6). When w becomes zero, the optical scanning system is stopped and returned to the start position (step 6-7). The number of main scanning lines w may correspond to the capacity of a floppy disk in step 6-1. 
     FIG. 7 shows the flow of operation in steps 5-5 and 5-6 of FIG. 5 in more detail. In step 7-1, a preset byte number signal L B  representing a byte length is supplied to the comparator 14 in accordance with the key input data stored in the RAM. Data R indicative of the image size in the subscanning direction is set in the RAM (step 7-2). A cassette of a proper size is specified and sheet feed is started (step 7-3). The read start address is set in the address counter in correspondence with the readout memory areas of the image memory and to size data R (step 7-5). In step 7-5, a signal produced by a laser beam detector of the printer 50 and indicating completion of printing for one line is sensed. If the signal is sensed, image data is output from the image memory 10 and it is discriminated if the byte counter 12 has been counted-up (step 7-6). Then, completion of reading for one main scanning line is determined, and &#34;1&#34; is subtracted from size data R. Reading and printing operations are repeated until size data R becomes zero (step 7-6). When R becomes zero, image output is terminated. In step 7-3, a cassette may be selected by detecting the access memory area of the image memory 10. 
     FIG. 8 shows part of the operation flow in step 5-2 of FIG. 5 in more detail. If the division mode is selected by operating the mode selection key 40C, one of the keys 40D is operated (step 8-2). The maximum number M of memory areas available is calculated from the size data entered through the key 40D, and is displayed at the display portion 40A (step 8-3). The ten keys are operated to set the number u of memory areas to be used in the RAM (step 8-4), and then M is compared with u (Step 8-5). If u&gt;M, further input by the ten keys and start key is inhibited. If u&lt;M, the ten keys are operated to determine the number of copies per memory area. When the mode selection key 40C is not actuated, a cassette size is selected by one of the keys 40D and the number of copies is determined through the ten keys. 
     FIG. 9, comprising FIGS. 9A and 9B, shows a block diagram of the circuitry of another embodiment of the invention. A known laser beam printer is employed to provide the following features: 
     (1) Separate access clock pulse sources are provided for operating the CCD and writing data in the image memory, and for reading out data from the image memory. A common memory access counter is used, so that the circuit is further simplified. 
     (2) Serial image data output from the CCD is converted into parallel data and then stored in the image memory. Then, the parallel output from the memory is again converted into serial data for output to the printer. Therefore, image data processing is easy. 
     (3) During the reference left margin setting step, the memory address and image byte length are loaded to the respective counters. As a result, data can be immediately output after the left margin. 
     (4) Clocks of a reference frequency are frequency-divided to provide pulses for accessing the image memory. These pulses are generated only in the image data duration, whereby erroneous operation is avoided. This second embodiment will now be described in greater detail. 
     Reader 30 
     The reader 30 starts image reading operation in response to a read start signal from the CPU or main control 20. The original is read out by a CCD circuit 34. The image data obtained is converted in a binary form and serially output to an R-serial line. This reading operation is controlled by signals RS, SH, φR1 and φR2 produced by a READ operation control 33. The control 33 also produces the timing signals to start a series of image reading operations in response to the READ start signal from the CPU 20 as shown in FIG. 10(a). The reading operations are performed in synchronism with clocks φ1CLK from a read CLK generator 31. The clock φCLK is 1/2 frequency-divided to produce signals φR1 and φR2. These signals are out of phase relative to each other by 180 degrees and are supplied to the CCD circuit 34. In response to the read start signal and synchronously with the immediately following leading edge of the signal φR1, an SH (sample and hold) signal is applied to the CCD circuit 34. In response to this SH signal, the CCD circuit 34 serially outputs image data by the signals φR1 and φR2 at the same frequency of the clock φCLK. However, since a few initial bits are dummy signals, an image enable signal is output at the frequency of φ1CLK for a period of time corresponding to the number of signal output bits (time T2) for time interval T1 corresponding to these dummy output bits from the SH signal. After the clocks φ1CLK are counted for time interval T2, the image ENABLE signal goes to low level and one line read end signal is output for indicating that the reading operation for one line (for one main scanning line) is completed. Thereafter, the clocks φ1CLK are again counted for time interval T3. Then, the SH signal is again produced in synchronism with the leading edge of the signal φR1 to initiate the reading operation for the next line. A reset signal Rs applied to the CCD synchronously with φ1CLK. FIG. 10(b) illustrates the operation timing from start to end of the reading operation. A memory WRITE signal is for writing data in the image memory. This signal rises at the leading edge of the SH signal after the READ start signal, and falls at the trailing edge of the one line read end signal after the read end signal. 
     Serial image signals from the CCD circuit 34 are converted into parallel data of n bits by a pair of serial/parallel converters 35. A 1/n frequency divider circuit 32 shown in FIG. 9 produces an interval signal for every n bits. The frequency divider 32 frequency-divides the clocks φ1CLK to generate φ1/n signals. The frequency division is made during the time interval indicated by T2 of FIG. 11 in which the image ENABLE signal remains at high level, that is, effective image signals are output. A toggle flip-flop 37 alternately switches on and off output ends Q and Q in response to the leading edge of the signal φ1/n from the 1/n frequency divider 32. The signals RQ and RQ from the output ends Q and Q, respectively, alternately render signals R-CLK1 and R-CLK2 applied to the two serial/parallel converters 35 effective in units of n bits. A selection signal RQ is supplied to a selector 36 to supply, to the image memory 10, the output from the serial/parallel converter 35 to which no clock pulse is applied. 
     Memory read control 600 
     Image data is read out from the image memory 10 and output to the printer 500 in synchronism with an IMAGE signal from the CPU 20. A flip-flop (hereinafter referred to simply as &#34;F/F&#34;) 610 synchronizes an image ENABLE signal with a horizontal sync signal generated by a laser beam detector 530 upon each scanning operation of a laser beam 510 over a photosensitive drum 520. A memory READ clock 660 produces a reference clock φ2CLK for memory reading operation. A counter 630 counts the margin value from the start of laser beam detection by the laser beam detector 530 up to the image output. The count value of the counter 630 is fixed as indicated by 630a. A signal LEFT MARGIN is produced by a flip-flop 620 by indicate that the margin value is being counted. The timing of operation of the above arrangement is shown in FIG. 12. Various load operations are performed by the margin output from a gate G1. A memory READ length counter 650 counts the length of the image formed on the photosensitive drum after the LEFT MARGIN signal. The counter 650 counts the clocks CLKφ2/n set by the CPU 20 and obtained by 1/n frequency division of φ2. A flip-flop 640 is set at the leading edge of the LEFT MARGIN signal and reset by the one line read end signal. The F/F 640 produces an M-OUT signal indicating that one line image data is being written. 
     A pair of parallel/serial converters 680 convert a parallel MEMORY OUT signal of n bits read out from the image memory into a serial from and serially output the data to the printer at the frequency of φ2CLK. 
     A toggle flip-flop 690 for controlling switching the two parallel/serial converters 680 inverts its output at a frequency of the signal φ2/n for every φ2/n bits from the 1/n frequency divider 670. A selector 692 selects serial image signals from the parallel/serial converters 680 in response to the output from the toggle F/F 690 and serially outputs the selected image signals to the printer 500. 
     Printer 500 
     Image signals output from the image memory 10 are supplied to a laser driver 540. A laser beam 510 radiated from a semiconductor laser 550 is switched on and off by the laser driver 540. The on-off controlled laser beam is deflected by a scanner 504 in the axial direction across the surface of a photosensitive member 520. Then, an electrostatic latent image is formed on the photosensitive member 520, and a visible toner image is obtained by means of an electrostatic photography process. 
     A printer controller 502 receives a signal from the CPU 20 to control the sequence of the printer. The printer 500 further includes register rollers 506, sheet feed rollers 570, sheet cassettes of sheet trays 590, a sheet feed driver 560, and a sheet size detector 580. 
     FIG. 13 shows the arrangement between the photosensitive drum and the left margin. While the margin is scanned, the signal L B  is loaded in the byte length counter 650. Also, the address counter 100 is loaded with start address data, and an image is immediately printed out upon the count-up operation of the margin counter 630. The margin counter 630 counts clocks φ2CLK to define the left margin. Frequency-divided clocks φ2/n are produced during the MEMORY OUT signal duration, and frequency-divided clocks φ1/n are produced during the image ENABLE signal duration. Writing operation into the image memory is enabled not by CCD clocks but by data transfer clocks through a gate G3. Address counter of the image memory 10 can be used both for reading and writing operations. While data is written, φ1/n clocks are input through gates G4 and G5 to enable addressing from the start address. While data is read out, φ2/n clocks are applied through a gate 5. Common address data is used for reading and writing. The address data is loaded for reading during initialization or at the end of one line reading operation, and also for writing during the margin setting step. Serial data from the CCD is converted by converters 35 and 36 into parallel data of n bits and transferred to the image memory 10. Then, the parallel data of n bits from the memory is converted into a serial form by the control 600 for transfer to the laser driver.