GB2149997A - Image processing method and apparatus therefore - Google Patents

Image processing method and apparatus therefore Download PDF

Info

Publication number
GB2149997A
GB2149997A GB08429177A GB8429177A GB2149997A GB 2149997 A GB2149997 A GB 2149997A GB 08429177 A GB08429177 A GB 08429177A GB 8429177 A GB8429177 A GB 8429177A GB 2149997 A GB2149997 A GB 2149997A
Authority
GB
United Kingdom
Prior art keywords
image
signal
run
memory
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
GB08429177A
Other versions
GB8429177D0 (en
GB2149997B (en
Inventor
Yoshikazu Yokomizo
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP56058577A external-priority patent/JPS57174978A/en
Priority claimed from JP56058575A external-priority patent/JPS57173263A/en
Priority claimed from JP56058580A external-priority patent/JPS57174981A/en
Priority claimed from JP56058581A external-priority patent/JPS57174982A/en
Priority claimed from JP56058579A external-priority patent/JPH0657045B2/en
Priority claimed from JP56058576A external-priority patent/JPS57174977A/en
Priority claimed from JP56058578A external-priority patent/JPS57174979A/en
Priority claimed from JP56058574A external-priority patent/JPS57173262A/en
Priority claimed from JP56058582A external-priority patent/JPS57174983A/en
Priority claimed from GB08211080A external-priority patent/GB2101838B/en
Application filed by Canon Inc filed Critical Canon Inc
Publication of GB8429177D0 publication Critical patent/GB8429177D0/en
Publication of GB2149997A publication Critical patent/GB2149997A/en
Publication of GB2149997B publication Critical patent/GB2149997B/en
Application granted granted Critical
Expired legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/3872Repositioning or masking
    • H04N1/3873Repositioning or masking defined only by a limited number of coordinate points or parameters, e.g. corners, centre; for trimming

Abstract

This invention provides a method and an apparatus for synthesizing or compositing two image signals (A, B), at least one of which is run-length coded, at a high speed. <IMAGE>

Description

SPECIFICATION Image processing method and apparatus therefor BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a method for processing image data and an apparatus therefor, and more particularly to such method and apparatus for synthesizing at least two image signals.
Description of the Prior Art As an example of high-speed image synthesis there is already known that employed in the field of television in which a synthesized image can be obtained by receiving and storing the image signal of a program in a random-access frame memory while receiving and reproducing another program, reading thus stored signal at a determined position in said another reproduced program, and switching two signals by a switching circuit. In such case said switching circuit can be composed of an analog switch since the image synthesis is basically effected between analog signals.
Such conventional method is however not applicable to the run-length encoded signals obtained for example in facsimile devices.
As already known, the run-length encoding is employed for compressing the amount of continuous signals such as image signals. For example 320 consecutive white pixels, conventionally requiring a memory capacity of 320 bits, can be compressed in said encoding to less than 20 bits, i.e. several bits indicating white pixels and also several bits representing "320". The rate of compression can be further increased by so-called modified Huffman code with variable length. It has been difficult in the known art to synthesize such encoded and compressed signals.
Also a computer processing, such as synthesis, of such encoded image signals has been quite slow.
In one aspect the present invention aims to provide an image processing method and an apparatus therefor not associated with the above-mentioned drawbacks.
In another aspect the present invention aims to provide a method and an apparatus for synthesizing run-length encoded image signals.
In a further aspect the present invention aims to provide a method and an apparatus capable of a real-time high-speed image processing.
In a still further aspect the present invention aims to provide a reproducing apparatus provided with a control circuit for synthesizing run-length encoded image signals; In yet another aspect the present invention aims to provide a method and an apparatus for compressing, encoding, synthesizing and reproducing document image signals; In another aspect the present invention aims to provide a method and an apparatus for partial synthesis of run-length encoded image signals stored in memories; In yet another aspect the present invention aims to provide a method and an apparatus for reproducing an image by synthesizing an image in a memory with an image of a scanned document.
In a further aspect the present invention aims to provide a method and an apparatus for synthesizing a run-length encoded image signal with an uncoded image signal.
In a still further aspect the present invention aims to provide an improvement over an image reproducing method and an apparatus therefor in which the image reproducing position can be arbitrarily selected.
In yet another aspect the present invention aims to provide an improvement over an image reproducing method and an apparatus therefor having plural image memories.
In a further aspect the present invention aims to provide an improvement over an image reproducing method and an apparatus therefor in which a document image is electrically read, processed and printed.
Some preferred embodiment of the invention will now be described by way of example with reference to the accompanying drawings, in which: BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram showing the entire system of an image synthesizing apparatus embodying the present invention; Figure 2 is a block diagram showing the structure of an image synthesizing apparatus of the present invention; Figure 3 is a block diagram of a main image data expander; Figure 4 is a block diagram showing an embodiment of a decoder for modified Huffman's code; Figure 5 is a block diagram of an auxiliary image data expander; Figure 6 is a block diagram of an X-Y coordinate detecting circuit; Figure 7 is a block diagram of a synthesized image compressor; Figure 8 is a block diagram of a modified Huffman encoder; Figure 9 is a schematic view of an embodiment of a coordinate input device;; Figure 10 is a schematic view of another embodiment of the coordinate input device; Figure 11 is an explanatory view showing the synthesis of a main image and an auxiliary image; Figure 12 is an explanatory view showing the principle of addressing in synthesis of a main image and an auxiliary image; Figure 13 is a block diagram of an apparatus synthesizing a run-length encoded image signal and a signal from a character generator; Figure 14 is a block diagram showing the details of a principal part in Fig. 13; Figure 15 is an explanatory view showing the addresses for image synthesis; Figure 16 is an explanatory view of runlength; Figure 1 7 is a control flow chart for the coordinate input; and Figure 18 is an explanatory view of character synthesis.
DESCRIPTION OF THE PREFERRED EMBODI MENTS Now the present invention will be clarified in detail by the following description of preferred embodiments to be taken in conjunction with the attached drawings.
Figs. 1 shows the entire system of an image synthesizing apparatus of the present invention in a block diagram wherein an original document 1 is displaced in a direction indicated by a thick arrow, hereinafter referred to as the auxiliary scanning direction or X-direction, while it is illuminated by an unrepresented iliuminating device. The image on said document 1 is focused through a lens 2 onto a solid-state linear imaging device 3 such as a charge-coupled device. A thin arrow on the original 1 indicates the scanning direction of the CCD 3, hereinafter referred to as the main scanning direction or Y-direction, in response to clock signals from a clock generating circuit 4.There are provided a video amplifying circuit 5 for amplifying thus obtained video signal into a desired value, and a digitizing circuit 6 for digitizing said video signal into binary signal. A run-length encoder 7, for example utilizing the modified Huffman's encoding according to the CCITT standard, is utilized for compressing said video signal as explained in the foregoing. An image memory 8, having a layered structure of at least three layers 8a, 8b, 8c as will be explained later and composed for example of a random access memory, is used in combination with a magnetic disk 12 and a magnetic tape 1 3 as auxiliary memories. An image synthesizing circuit 9 of the present invention has a function of extracting a particular part from one of for example two run-length encoded images and fitting said part into a determined part of the other image.
The signal encoded by the run-length encoder 7 is either transmitted through a signal line 1 7 to a run-length decoder 10 for decoding followed by printing in a printer 11, or through a signal line 14 to the image memory 8, then subjected to the synthesis with a stored image in the image synthesizing circuit 9 through a signal line 16, released from a signal line 1 5 to the run-length decoder 10 for decoding and printed in the printer 11.
Signal lines 21, 22 perform input and output of signals to and from the image synthesizing circuit.
A signal not requiring memory or synthesis as mentioned above is transmitted through the signal line 17, which is functionally equivalent to the signal line 18 by passing the encoding circuit. The image synthesis can be effected not only on two images stored in the image memory 8 but also on a signal 21 or 1 9 obtained from the CCD 3 in combination with an already stored image supplied from a signal line 1 6. Also a synthesis of a stored image with a character image from a character generator 1 55 is possible. Furthermore the synthesized may not only be stored in the image memory 8 but also transmitted directly to the printer 11 through the signal line 22 or 20. A sequence controller 23 controls the function of the image synthesizing circuit.
Fig. 2 is a block diagram showing the principal part of the image memory 8, image synthesizing circuit 9 and sequence controller 23 shown in Fig. 1.
The image memory 8 has a layered structure of at least three layers, divided into a main image memory 8a, an auxiliary image memory 8b and a synthesized image memory 8c, respectively provided with independent hardware address counters 26, 29 and 46 for enabling independent address access. It is naturally possible also to allot the addresses of said memories to a certain address space of the sequence controller 23 for enabling image data access by said controller. The memories 8a 8b store the image signals from the CCD 3 in the form of run-length encoded signals obtained through the run-length encoder 7 and a modified Huffman (M-H)encoder. The address counters 26, 29 are advanced by enable signals EN supplied from the M-H encoder and through an unrepresented OR gate.
A modified Huffman (M-H) decoder 24 separates the main image stored in the form of run-length code into a main image video signal 48 (B/W(1)) for identifying black and white, a main image end-of-line signal 57 (EOL(1)) indicating the end of data of one line in the Y-direction, and a main image runlength signal 62 (RUN(1)) indicating the number of consecutive white or black bits. The numeral (1) attached to said signals indicates that said signals are related to the main image. Said signals 48, 57 and 62 are respectively supplied data selectors 30, 33 and a run-length counter 25. The run-length counter 25 is advanced in synchronization with clock pulses 2fT and is reset when the count meets the run-length signal 62 (RUN(1)) from the M H decoder 24. Simultaneously with said resetting the address counter 26 is started to read succeeding M-H encoded data from the main image memory 8a. Consequently the output signal 51 from the run-length counter 25 corresponds to the real time and is there fore referred to as the real-time main image run-length signal (RUN-LENGTH (1)). Also the signal 54 for resetting the run-length counter 25 is hereinafter called the main image endof-run-length signal (EOR(1)). Said signals 51, 54 are respectively supplied to the data selectors 31, 32.
The auxiliary image signal is similarly decoded as explained in the foregoing, wherein an M-H I decoder 27, a run-length counter 28 and an address counter 29 respectively correspond to the M-H decoder 24, run-length counter 25 and address counter 26 for the main image. An auxiliary image video signal 49 (B/W(2)), an auxiliary signal end-of-line signal 58 (EOL(2)) and an auxiliary image runlength signal 63 (RUN(2)) obtained from said M-H decoder 27 are respectively supplied to data selectors 30, 33 and the run-length counter 28. In a similar manner as explained in the foregoing, the run-length counter 28 generates an auxiliary image run-length signal 52 (RUN-LENGTH (2)) processed in real-time and an auxiliary image end-of-run-length signal 55 (EOR(2)) for resetting. Said signals 52, 55 are also supplied to the data selectors 31, 32.The numeral (2) attached to said signals indicates that said signals are related to the auxiliary image.
The foregoing various signals obtained from the main and auxiliary images are suitably selected by the data selectors 30, 31, 32, 33 in response to an EOC signal to be explained later to provide a synthesized image video signal 50 (R/W(3)), a real-time synthesized image run-length signal 53 (RUN LENGTH(3)), a synthesized image end-of-runlength signal 56 (EOR(3)), and a synthesized image end-of-line signal 59 (EOL(3)), wherein the numeral (3) indicates that said signals are related to the synthesized image. Said signals 50, 53, 59 are supplied to an M-H encoder 45 for M-H encoding in response to the signal 56. (EOR(3)) as will be explained later, and thus encoded signal is stored in the synthesized image memory 8c addressed by an address counter 46.
The data selectors 30, 31, 32 are real-time selected by an enable-of-composite signal 60 (EOC) from a flip-flop 64 for effecting the image synthesis.
Said OEC signal is generated in the following manner. At first a start address YO for the Y-direction is stored in a Y-start address memory 35 through a data bus 61 of the sequence controller 23, and an end address Y1 is similarly stored in a Y-end address memory 36. Then a start address XO for the X-direction is stored in an X-start address memory 40, and an end address X1 is stored in an Xend address memory 41. Said storages are for example conducted in response to the actuations of keys shown in Fig. 9. As shown in Fig. 12, said addresses YO, Y1, XO and X1 stored in the address memories 35, 36, 40 and 41 define a rectangular area in which the image is to be extracted from the auxiliary image.Then the clock pulses from the clock circuit 4 shown in Fig. 1 are counted, comparators 37, 38 compare the output signal from a Y-counter 34 indicating the position in the Y-direction with output signals YO, Y1 from said memories 35, 36. Said comparators respectively supply enable signals for Y-direction to gate circuits 44, 65 at YO and Y1.
Similarly comparators 42, 43 compare the output signal from an X-counter 39 indicating the X-position of auxiliary scanning with output signals XO, X1 from said memories 40, 41 and respectively supply enable signals for X-direction to a flip-flop 66 at XO and X1. The gate circuits 44, 65 generate logic products of the enable signals in the Y- and X-directions, and the aforementioned EOC signal 60 is obtained through a flip-flop 64. Consequently, in the positive logic, the EOC signal is at the high level when access is made to the interior of the rectangle in the auxiliary image shown in Fig. 12.
Then a synthesized image signal obtained from the synthesized image video signal 50 (B/W(3)), real-time synthesized image runlength signal 53 (RUN-LENGTH(3)) and synthesized image end-of-line signal 59 (EOL(3)) and encoded by the M-H encoder 45 is stored in the synthesized image memory 8c. The address counter 46 counts the signal EOR(3) for addressing said memory. Also when the signal EOR(3) is entered consecutively, for example five times, a completion detecting circuit 47 identifies the end of an image of a page and terminates the counting action of the address counter 46.
A synthesis start signal XYs from the AND gate 44 and a synthesis end signal XYE from the AND gate 65 are supplied through OR gates 71, 70 to the synthesized image end-ofrun-length signal 56 (EOR(3)) in order that, when the image synthesis is conducted by the inversion of the channel switching EOC signal 60 during the counting action of run length by the counter 25 or 28, the run length in said counting action before said switching is no longer counted but encoded at said switching and stored in the memory 8c for step advancing the address counter 46. This operation is called a pre-process for synthesis. The aforementioned signals XYs, XYE are generated corresponding to the synthesizing positions as shown in Fig. 1 5.
The run length counters 25, 28 are respectively reset by the synthesis start signal XY5 and the synthesis end signal XYE, in order that, when the image synthesis is conducted by the inversion of the channel switching EOC signal 60 during a counting action of run length by the run-length counter 25 or 28, the run length in the image after said switching is counted only from said switching to the end of said run length. This operation is called a post-process for synthesis. These processes ensure continuity of the image at the channel switching.
The aforementioned pre- and post-processes enable a synthesis in real time basis of the run-length codes which are non-real-time data.
An initial value setting circuit 67 stores addresses for extracting the auxiliary image.
The memories 35, 36, 40 and 4t initially store the coordinates YO, Y1, XO and X1 defining a rectangle in the auxiliary image shown in Fig. 12, through the controller 23.
Then the image synthesis is experimentally conducted, and the initial value setting circuit 67 detects the inversion of the synthesis start signal XYs to the high level at (XO, YO) to stop the run-length counter 28 and the address counter 29, thereby holding the run length and the address at this point. Then the coordinates YO', Y1', XO' and X1' defining a rectangle in the synthesized image shown in Fig. 12 are stored in the memories 35, 36, 40 and 41 Then the image synthesis is conducted in the following manner. When the scanning of the principal image reaches (XO', To'), the stopped address counter for the auxiliary image memory is restarted to release the data of the auxiliary image starting from (XO, YO).In this manner a part of the auxiliary image inside a rectangle defined by XO, Xl, Y0 and Y1 as shown in Fig. 1 2 is fitted into a rectangular area defined by XO', X1', YO' and Y1' in the synthesized image. The synthesis is conducted in a manner as shown in Figs. 11 and 1 2 to obtain the corresponding synthesized image from the printer 11, wherein A, A' indicate the main image, B, B' the auxiliary image and C, C' the synthesized image. In this manner the present invention allows to extract an image from an arbitrary position and to fit said into an arbitrary position of another image.Also using an entirely white main image, it is possible to extract a part of the auxiliary image and to move it to an arbitrary position. As explained in the foregoing, the above-explained embodiment is based on the change of image position through the hardware structure by controlling the address counters in response to the data of coordinates. This concept and some other concepts are applicable not only to the run-length encoded data.
In case of synthesizing a document image corrently read by the CCD 3 with a stored auxiliary image, the output signal from the run-length encoder 7 is processed in the similar manner as the processing for the signal from the main memory, and the controller 23 controls the addresses to interrupt the output from said main memory. In such case a signal HSYNC to be explained later corresponds to the start or end of a main scanning by the CCD, and another signal VSYNC corresponds to the start or end of the auxiliary scanning i.e. of a page. These signals have equivalent functions also in the synthesis of two stored images. Furthermore said signals can be made to correspond to the synchronizing signals for printing laser beam in case of printing the synthesized data.
Fig. 3 is a more detailed block diagram principally showing the main image memory 8a, run-length counter 25 and address counter 26 shown in Fig. 2. In Fig. 3 the components same as those in Fig. 2 are represented by same numbers. The main image data stored in the main image memory 8a are decoded by the M-H decoder 24 into the video signal 48 (B-W(1)), run-length signal 62 (RUN(1)) and end-of-line signal 57 (EOL(1)).
A signal line 73 transmits an enable-of Huffman signal Ooh(1) which is shifted to the high level when the signals on the signal lines 48, 62 and 57 assume the enabling state.
The run-length signal RUN(1) is supplied to an input port B of a comparator 72, so that counters 25a, 25b corresponding to the runlength counter shown in Fig. 1 simultaneously start counting of the clock pulses 2fT at the shifting of said enable signal EOH(1) to the high level. When the counter 25a counts up to the run length RUN(1), the output Q of said counter is supplied to the input port A of the comparator 72 whereby the output port A= B thereof provides a high-level end-of-runlength signal EOR(1) to a line 54. Simultaneously the address counter 26 is step advanced, and the counters 25a, 25b are reset through OR gates 74, 75.After the step advancing of the address for the memory 8a releasing the succeeding data and after the completion of decoding by the M-H decoder 24, the signal EOH(1) is again shifted to the high level whereby the counters 25a, 25b start to count the run length corresponding to said succeeding data. Said counters usually function in the identical manner but the latter alone is reset upon receipt of the synthesis end signal XYE through a line 69. In such case the run-length signal RUN(1) corresponds to the count by said counter 25b after the entry of said synthesis end signal XYE, thus performing the aforementioned post-process. An auxiliary scan synchronizing signal VSYNC resets the counters 25a, 25b at each end of the scanning in the X-direction. Also an auxiliary scan enable signal VERT EN assumes the high level only during the data processing to interrupt the counting action of the address counter 26 during other periods.
The sequence controller 23 is provided with signal lines 76, 77 for initializing the address counters, by setting a start address of a desired image out of plural images stored in the main image memory 8a. A signal line 1 56 supplies the count of the address counter 26 into the sequence controller in order to identify the capacity required for storing an image in the form of run-length code, and to confirm the size of stored images and the amount of entire images. Fig. 1 6 shows an example of a charge in the run length count by the counters 25a, 25b, wherein a main image having 2,000 black bits and 2,000 white bits is synthesized with an auxiliary image having 3,300 black bits and 700 white bits in the central part thereof.In this case the synthesized run-length is obtained as 1,000 black bits (1) and 1,000 white bits (3) from the counter 25b. Also 2,000 black bits (2) are selected from the auxiliary image run-length counter 28b. Consequently the synthesized run length becomes composed of 3,000 black bits and 1,000 white bits, taking the abovementioned signals in the order of (1), (2) and (3).
Fig. 4 is a detailed black diagram of the M H decoder 24 and the address counter 26 shown in Fig. 3. The following explanation will be concentrated on the main image channel as it is identical with the auxiliary image channel.
The main image memory is for example composed of a structure wherein one byte is composed of eight bits. A parallel-in-series-out shift register 78 converts parallel data into serial signals for supply to a shift register 81 through a signal line 94 in response to clock pulses 2T supplied through an AND gate 80 when a shift enable signal 93 is at the high level. The octal counter 26a, constituting the address counter 26 shown in Fig. 3 in combination with the counter 26b, releases a highlevel output signal RCO upon complation of 8bit shifting of the shift register 78, thereby shifting said register 78 to the data parallelloading mode through an inverter 79 and advancing the address counter 26b by one byte.Consequently, in response to a shift of the shift enable line 93 to the high level, a series of encoded image signals is supplied, in synchronization with the clock pulses 2fit, through a signal line 94 to a serial-in-parallelout shift register 81 having a length of 13 bits. A read-only memory (ROM) 83 is provided for converting the modefied Huffman code, which is composed, according to the CCITT standard, of a code word for a white run, a code word for a black run, and a makeup code. The output signal from said ROM 83 is composed of a video signal B/W, a runlength signal R, a make-up code output signal M, an end-of-line signal EOL and an enable signal EN (EOH).
When the enable signal EN is shifted to the high level by decoding of the data, a fli-flop 91 provides a low-level shift-enable signal 93 to close an AND gate 82, whereby the data shifting is interrupted and the data are latched in latches 86, 88 through AND gates 87, 89.
In case the data represent a black or white run, the make-up code output signal M assumes the low level, whereby data selectors 84, 85 select input ports B thereof to reduce the upper 6 bits to zero and to allot the black or white run length to the lower five bits. Also if the data represent a make-up code, the make-up code output signal M assumes the high level whereby the data selectors 84, 85 select input ports A to reduce the lower 5 bits to zero and to allot the make-up data to the upper 6 bits. The number of data in the ROM 83 can be reduced in this manner. Consequently the run-length signal RUN is composed of 11 bits, in which the upper 6 bits and lower 5 bits are respectively constituted by the output signals from the latches 86 and 88.
A flip-flop 90 detects the enable signal EN from the ROM 83 in synchronization with the clock pulses 2fit, and releases a high-level output signal 92 to initiate the counting function of the run-length counter 25a when gates 87, 89 are opened by the high-level enable signal EN to fix the outputs from the latches 86, 88. Subsequently, when the output signal from the run-length counter 25a becomes equal to the run-length signal RUN on the line 62, the comparator 72 releases a high-level output signal to reset the counter 25a, to shift the flip-flop 90 to the low-level output for terminating the counting action of the counter 25a, and to shift the flip-flop 91 to the highlevel output for starting the shift of the succeeding image data. The decoding of the image data is effected by the repetition of the above-explained procedure.
Fig. 5 is a detailed block diagram corresponding to Fig. 3 and showing principally the auxiliary image memory 8b, run-length counter 28 and address counter 29, wherein shown are an enable-of-Huffman signal 95 (EOH(2)); OR gates 96, 97; AND gates 98, 99; an inverter 100; a comparator 101; an inverter 102, an AND gate 103; a flip-flop 104; a data selector 105; and a signal line 106.
This circuit is different from that shown in Fig. 3 by a fact by a fact that the signal EOR(2) is not released by the inverter 102 and the AND gate 103 at the high-level state of the signal EOL(2), and that an initial value setting circuit 67, indicated by a broken-lined rectangle, is additionally provided. In the example shown in Fig. 12, the area to be extracted from the auxiliary image does not contain the signal EOL therein since said area is relatively small. However the signal EOL may be detected in case the extracted area extends to an end of the image or by a certain erroneous function. The detection of the signal EOL of the auxiliary image is not desirable since the present embodiment solely depends on the signal EOL of the main image.For this reason the aforementioned AND gate 103 interrupts the EOR signal, thereby preventing the EOL signal of the auxiliary image from storage in the synthesized image memory 8c.
In the trial image synthesis phase, an initial value setting signal (XO, YO) SET from the sequence controller 23 is at the high level to open the AND gate 98 in the initial value setting circuit 67, and the data selector 105 controlled by the inverter 100 selects an input B from the flip-flop 1 04. Consequently the counters 28a, 28b, constituting the runlength counter 28 shown in Fig. 2, start counting action after the flip-flop 104 is reset by the signal VSYNC, and terminate said counting in response to the synthesis start signal XY5 for extracting the auxiliary image, which shifts the output Q of the flip-flop 104 to the low level thereby shifting the input signal ENP to the counter 28a and the input signal ENT to the address counter 29 to the low level through the data selector 105 and the AND gate 99. Consequently the address counter 29 and the run-length counter 28a respectively store an address of the auxiliary data corresponding to the synthesis start position (XO, YO) and the corresponding runlength position when the counting action is terminated.The main image memory is also scanned in said trial image synthesis phase, but this causes no inconvenience since the access to the synthesized image memory 8c is prohibited.
In the final image synthesis phase in which the initial value setting signal (XO, YO) SET from the sequence controller 23 is at the low level, the counter 28a is not reset by the signal VSYNC since the AND gate. 98 is closed. The address counter 29 and the runlength counter 28a retain the above-mentioned data even after the entry of the signal VERT EN since the data selector 105 selects the input A corresponding to the low-level output Q of the flipflop 104 cleared by the signal VSYNC thereby closing the AND gate 99.Subsequently, at the shifting of the synthesis start signal XY5 to the high level when the scanning proceeds to a point (XO', YO') in the synthesized image shown in Fig. 12, the flip-flop 104 provides a high-level output Q to activate the counters 29 and 28a. Thus a signal indicating the point (XO, YO) of the auxiliary image is released as the run-length signal RUN(2), which is further released as the run-length signal RUN(3) through the selector 31 shown in Fig. 2. The data of the main image are again released when the scanning proceeds to the point (X1', Y1') corresponding to the synthesis end signals XYE.In this manner it is rendered possible to extract a partial image from an arbitrary position of the auxiliary image and fit said partial image into an arbitrary position of the main image.
Fig. 6 is a detailed block diagram of the XYcoordinate detecting circuit shown in Fig. 2, where the components same as those shown in Fig. 2 are represented by the same numbers.
A Y-coordinate counter 34 is reset by a horizontal synchronizing signal HSYNC and counts the clock pulses 2fT to release the address in main scanning. Also an X-coordinate counter 39 is reset by the signal VSYNC and releases the address in the auxiliary scanning by counting the signal HSYNC. The data storage into the memories 35, 36, 40 and 41 is conducted in the same manner as that for the memories of the microcomputer MPU in the sequence controller 23. In the memory write-in mode where a DMA control line 118 is at the low-level state, AND gates 111-114 are opened to enable a read-write control line 11 9. Data input ports of the RAM memories 35, 36, 40, 41 are connected to a common data bus 61, and said memories are selected by chip-select ports CS thereof.A memory selecting decoder 11 6 decodes the address data supplied through an address bus line 117 and allots said memories in the address space of the microcomputer MPU in the sequence controller 23. In the DMA mode where the signal line 11 8 is at the high-level state, said memories are in the read mode and are made accessible regardless of the decoder 116 where the memory selection is made by the OR gates 107-110.
In case the data bus line of the microcomputer MPU in Fig. 6 is of an 8-bit structure not sufficient for the coordinate counters 34, 39 of a capacity of 12-13 bits, the memories 35, 36, 40, 41 store the X and Y coordinates in the 8-bit sliced form. In the foregoing explanation each of said memories 35, 36, 40, 41 stores one coordinate signal, but it is also possible to two or more coordinates in each memory and to time-sequentially read said coordinates.
As already explained in relation to Fig. 5, the signal read-out from the auxiliary image memory 8b, once started by the synthesis start signal XY5, is completely synchronized with that of the main image memory 8a, with comparison of coordinates made for example at every 4 bits. Although the enable-of-composite signal EOC may show a fluctuation of several bits, the image itself does not show any change except the fluctuation in the relative position of the synthesized image. Consequently the time-sequential division need not be applied to every pixel but can be conducted for every 4 pixels for example in case of a division into four.
The access to the address counters 26, 29 and 46 by the sequence controller 23 can be made in a similar manner as that for the memories 35, 36, 40 and 41.
The comparators 37, 38, 42, 43 and the flip-flop 64, 66 are of same structures and same functions as those explained in relation to Fig. 2.
Fig. 7 is a detailed block diagram of a synthesized image compressor for storing the synthesized image in a compressed form. The EOC signal 60 selects the data selectors 30, 31 and 32 through an inverter 1 24. The signal EOR(1) or EOR(2) selected by the data selector 32 is added with signals XYs and XYE in the OR gates 70, 71 and is synchronized with the clock pulse 2 < pT in an AND gate 123 to form the signal EOR(3), thereby reading the data stored in latches 120, 121 and 122.
Said signal EOR(3) is used also as a strobe signal for the M-H encoder 45 and an enable signal through an AND gate 1 29 and the latch 1 30 to the address counter 46. Consequently the data are read from the latches 120, 121 and 122 at each completion of runlength counting. During the image syntheses where the data selectors 30-33 respectively select the signals B/W(2), RUN(2), EOR(2), EOR(2) and EOL(2) in response to the signals EOC and (XO, Y0)SET, the signals B/W(3), RUN(3) and EOL(3) become related to the auxiliary image. Said signal however represent the main image when the image synthesis is not in progress.
The signal EOR(3) causes the M-H encoder 45 to encode the signals B/W(3), RUN(3) and EOL(3), and advances the address counter 46 by a step. The synthesized image thus M-H encoded is supplied through an AND gate 1 32 receiving the signal EOR(3) and the read-white signal, and is stored in the synthesized image memory 8c addressed by the address counter 46.
The signal EOL(3) is detected by a flip-flop 1 25 to generate a horizontal synchronizing signal HSYNC. The end of an image is detected by a shift register 1 26 and a 5-input AND gate 127, since the end of image is defined by 5 consecutive entries of the EOL(3) signals, and the output signal from said AND gate 1 27 is synchronized with the clock pulse 2 < pT in a flip-flop 1 28 to provide an end signal END. A signal END functions to stop the address counter 46 through an AND gate 129.
A flip flop 131 generates a vertical enable signal VERT EN which is initiated by the signal VSYNC and is terminated by said signal END, and which represents that the image processing is in progress.
Fig. 8 is a detailed block diagram principally showing the M-H encoder 45 shown in Fig. 7. A ROM 1 34 for M-H encoding releases M-H code from a port D1 and the data length thereof from a port D2. A shift register 1 35 converts the parallel M-H code into a serial code. A shift register 1 36 reconverts said serially converted M-H code into 8-bit parallel data.In response to the end-of-runlength signal EOR(3), an AND gate 137 latches and loads the data in a latch 1 38 and a shift register 1 35 in synchronization with the clock pulse 2fat. The latched data length D2 is supplied to an input port B of a comparator 143 and sets a flip-flop 139, thereby step advancing counters 141, 142 and shift register 135, 136.An 8-bit counter 141 step advances the address counter at every 8 bits, and causes the data reading from the memory 8e through the AND gate 1 32. The counter 1 42 measures the data length of the M-H code and supplies the result of said measurement to an input port A of a comparator 143, which resets the counter 142 and inverts the flip-flop 1 39 when the signals at A and B become mutually equal, thereby stopping the counters 142, 141 and the shift registers 1 35, 1 36. Also the address counter 46 is stopped through an AND gate 144.
Figs. 9 and 10 show an example of the X, Y-coordinate input device. A simplified X, Ycoordinate input device 145 is provided with numeral keys 146; "X", "Y", "M" and "EX ECUTE" keys 147; function keys 148; and a light-emitting display unit 149. In this device a coordinate X0 = 1 32 mm for example can be entered by the key actuations in the order of: "X", "", "=", '1", "3", "2" and "EXECUTE" whereby a display is shown on the display unit 149 as illustrated and a number corresponding to 1 32 mm is entered into the X0 memory 40 through the sequence controller 23. Other coordinates can be entered in a similar manner. The EXECUTE key stores the data the entered and displayed data into the memory of the controller 23.
The function keys 148 recall the coordinate data registered by the EXECUTE key in order to avoid the trouble of repeating the coordinate entry. Also the M key selects a desired image from the image memory 8a, in combination with a numeral entry through numeral keys 146.
Fig. 1 7 shows a control flow chart for controlling the data entry by the microcomputer of the sequence controller 23 in response to the actuations of the function keys. The numbers corresponding to X and Y coordinates are stored in the memory of said controller 23 by the key entry and are registered by the EXECUTE key. Thereafter the data X0(1), Y0(1), X1(1) and Y1 (1) stored in the memory are set in the RAM by the function key F1. Other function keys are used in a similar manner.
The X, Y-coordinate input device shown in Fig. 10 enters the coordinates by contacting a coordinate designating area 1 52 on a digitizer 1 50 with a stilus pen 1 53 instead of numeral entry of the coordinates. It is therefore rendered possible to enter the desired positions by pointing the original document placed on said area 1 52 with said stilus pen 1 53. The designed area is graphically displayed in combination with characters on a cathode ray tube 154. A menu area 151 can be used for entering various commands. Said menu area 151 can be formed in a part of said digitizer 1 50 and can be distinguished from the coordinate area through the numerical identification by the sequence controller 23.Also the image addresses in the memory 8a can be designated by touching the numerals with said stilus pen.
As explained in the foregoing, the present invention, allowing synthesis of run-length encoded image signal, permits to reduce the capacity of the image memories, thereby reducing the cost of the apparatus. The present invention is not limited to the foregoing emodiment but is subject to variations within the scope of same basic principle.
Although the foregoing explanation is limited to the synthesis between run-length encoded image signals, the foregoing embodiment can easily perform image synthesis even when one of the image signals is not in the encoded form. In Fig. 1, the broken lines 18, 1 9 and 20 represent the flows of uncoded signals, and the synthesis of such signals is also included in the present invention.
Also in the apparatus shown in Fig. 1, there may be provided a character generator 1 55 for fitting characters into the rectangular area in the synthesized image shown in Fig. 1 2. It is also possible to fit characters outside said rectangular area. Fig. 18 is a block diagram for synthesizing a run-length encoded image signal with an output signal from the character generator, wherein the same components as those in Fig. 2 are represented by same numbers.The embodiment shown in Fig. 1 3 serves to synthesize a run-length encoded image signal stored in the main image memory 8a with an output signal from a character generator composed of a buffer memory 158 and a character memory 1 57. The circuit shown in Fig. 1 3 is in fact same as that shown in Fig. 2 except that the auxiliary image expander (Fig. 5) is replaced by said character generator.
Address lines to said buffer memory 1 58 (RAM) either select the signals from a coordinate counter 34 and from an X-coordinate counter 39 or an address bus line 1 77 of the sequence controller 23 through a data selector 1 59 controlled by a control line 1 60.
At first said control line 160 is controlled to store, in said buffer memory 158, a character format to be synthesized, which is supplied from the sequence controller 23 through a data bus line 61. Said storage can be achieved by entering alphanumeric characters either through the digitizer shown in Fig. 10 or through a typewriter or a word processor, and in this manner it is possible to enter a desired character arrangement for reproducing at an arbitrary position. The format is represented for example by the Askey code. Then the control line 160 is again controlled to connect the address lines of the buffer memory 1 58 to the Y- and X- coordinate counters 34, 39 for reading the already entered character codes at determined coordinates.The buffer memory 158, having a capacity corresponding to a page, can store plural characters corresponding to the coordinates determined by the input devices shown in Figs. 9 and 10 in the aforementioned manner. The output signal from said buffer memory controls an add-bus of the character memory 157, thereby generating output signals for example for alphabetic characters corresponding to determined character codes. In this manner characters are obtained at a determined position as shown by 1 58 in Fig. 18.
Said output signals are supplied to a runlength counter 161, run-length encoded to generate an auxiliary video signal 49, a realtime auxiliary image run-length signal 52 and an auxiliary image end-of-the-length signal 55 and synthesizing with the main image signal.
The function of the synthesizing circuit is same as that explained in relation to Fig. 2. In this manner it is possible to obtain a synthesized image as shown by 8c in Fig. 18.
Fig. 14 shows the details of the principal part in Fig. 13, wherein the character memory 1 57 is composed of a read-only memory (ROM) storing 64 characters each in 8 X 8 dot form. Address lines A0-A2 decode the lower 3 bits of the X-coordinate counter 39 to control the characters in the auxiliary scanning direction.Also address lines A3-A8 are utilized for selecting the characters. 8-bit parallel output signal supplied from the character memory 1 57 through output lines 1 76 are converted into a serial signal by a shift register 163, which performs data shifting in synchronization with the clock pulses 2 < pT and loads said parallel output signal through the lines 1 76 in response to a ripple output signals indicating the completion of said shift from an octanary counter 1 62. Said ripple output signal 1 73 is also utilized as an enable signal for the Y-coordinate counter 34, which is advanced in synchronization with the clock pulses 1 71 to select the succeeding character code stored in the buffer memory 1 58. The buffer memory 1 58 is composed of a random access memory (RAM) having a capacity of 4096 words of 6 bits, of which the address lines A0-A5 and A6-A11 are respectively utilized for selecting the Y-coordinate and Xcoordinate of the character. 1 72 indicates the horizontal synchronizing signal. As explained above, the character generator is composed of the X-coordinate counter 39, Y-coordinate counter 34, buffer memory 158, character memory 157, shift register 1 63 and octanary counter 1 62.
The output signal from the shift register 163 is received by a latch 164, and an exclusive-OR circuit 1 66 detects the inversion point between black and white runs. A runlength counter 165 counts the clock pulses 171 and generates the ripple output signal RCO upon arrival at a determined value, thereby generating the auxiliary image end-ofrun-length signal 55 EOR(2) through an OR gate 1 70. When the exclusive-OR gate 1 66 releases a high-level output signal in response to the inversion between black and white runs, the run-length counter 1 65 is cleared and simultaneously generates the signal EOR(2) through the OR gate 1 70. In this state the run length latched in the latch 168 generates the real-time auxiliary image run-length signal 52 RUN(2). Also the video signal supplied through a latch 1 64 is latched by a latch 1 67 to generate the auxiliary image video signal 49 (B/W(2)). An AND gate 169 is used for latching the signal EOR(2) in synchronization with the clock pulse 1 71. Also the synthesis start XY5 68 is used for clearing the run-length counter 1 65.
As explained in the foregoing, the synthesizing apparatus of the foregoing embodiment can also be applied to the synthesis of a run length encoded image signal with another image signal, for example an image signal from a character generator.
Reference is hereby directed to copending Patent Application No. which is divided from this present application.

Claims (16)

1. An image processing method comprising the steps of generating a run-length encoded first image signal, generating a second image signal, and processing said run-length encoded first image signal and said second image signal for synthesizing said first and second images.
2. An image processing apparatus comprising: first signal generating means for generating a run-length encoded first image signal; second signal generating means for generating a second image signal; and means for processing said run-length encoded first image signal and said second image signal for synthesizing said first and second images.
3. An image processing method or apparatus according to Claim 1 or 2, wherein said second image signal is a run-length encoded image signal.
4. An image processing method or apparatus according to Claim 1 or 2, wherein said second image signal is a character signal not in run-length encoded form.
5. An image data processing method comprising the steps of generating plural image signals including at least an encoded image signal, generating a signal for designating a synthesized image area, and selecting output data of one or the other of said image signals in response to said area designating signal for achieving partial synthesis of said images.
6. An image data processing apparatus comprising: plural image signal generating means for generating plural image signal including at least an encoded image signal; means for designating an area for synthesized image; and means for selecting the output data of one or the other of image signals from said signal generating means in response to a signal from said designating means in order to achieve partial synthesis of said images.
7. An image data processing method or apparatus according to Claim 5 or 6, wherein said encoded image signal is a run-length encoded signal, and the other image signal is a character code signal.
8. An image data processing method or apparatus according to Claim 5 or 6, wherein one of said plural image signal is a signal obtained by reading a document.
9. An image data processing apparatus comprising: a memory storing image data of plural pages, wherein said image data are in the form of run-length codes; means for selecting image data of a page from said memory; and means for releasing said selected image data after decoding.
10. An image data processing apparatus comprising: a memory storing plural image data; means for reading said image data from said memory and reproducing said image data; and means for detecting the capacity of image data of a page.
11. An image data processing apparatus comprising: a memory storing a run-length encoded image signal; means for designating an image extracting area; and means for processing the data of said encoded image signal in said memory in re- - sponse to a signal from said designating means in said memory in response to a signal from said designating means in order to extract a determined image.
1 2. An image reproducing apparatus comprising: means for reading a document image; encoding means for compressing image data from said reading means into run-length codes; a memory for storing said run-length encoded image data; and means for processing image data from said memory for reproducing image after synthesis with another image.
1 3. An image reproducing method comprising the steps of generating image data by reading a document image, generating other image data from a memory, synthesizing the image data from the document image with the image data from said memory, and reproducing an image by the output signal of said synthesis.
14. An image processing apparatus according to Claim 2, wherein said process means is adapted to decode the run-length encoded image signal and to synthesize the decoded data with other image data.
1 5. An image data processing apparatus according to Claim 5, wherein said selecting means comprises plural counter means for counting the run length of the image signal, and one of said counter means is reset corresponding to the image synthesizing area.
16. An image processing method or apparatus according to Claim 1, 2, 5 or 6, wherein said image signal is generated from the memory storing the image data, and the address of said memory is stored when the data readout from said memory reaches the image synthesizing area.
1 7. An image reproducing method comprising the steps of generating an image signal by reading a document; entering positional data from input means; storing image data related to said image signal into a memory; counting the address of said memory; controlling the address counting function in response to said positional data in order to change the image position; and printing the image data obtained by said address control.
GB08429177A 1981-04-20 1984-11-19 Image processing method and apparatus therefor Expired GB2149997B (en)

Applications Claiming Priority (10)

Application Number Priority Date Filing Date Title
JP56058576A JPS57174977A (en) 1981-04-20 1981-04-20 Picture synthesizer
JP56058575A JPS57173263A (en) 1981-04-20 1981-04-20 Picture synthesizer
JP56058574A JPS57173262A (en) 1981-04-20 1981-04-20 Picture synthesizer
JP56058579A JPH0657045B2 (en) 1981-04-20 1981-04-20 Image synthesizer
JP56058582A JPS57174983A (en) 1981-04-20 1981-04-20 Picture synthesizer
JP56058578A JPS57174979A (en) 1981-04-20 1981-04-20 Picture synthesizer
JP56058581A JPS57174982A (en) 1981-04-20 1981-04-20 Picture synthesizer
JP56058577A JPS57174978A (en) 1981-04-20 1981-04-20 Picture synthesizer
JP56058580A JPS57174981A (en) 1981-04-20 1981-04-20 Picture synthesizer
GB08211080A GB2101838B (en) 1981-04-20 1982-04-16 Image processing method and apparatus therefor

Publications (3)

Publication Number Publication Date
GB8429177D0 GB8429177D0 (en) 1984-12-27
GB2149997A true GB2149997A (en) 1985-06-19
GB2149997B GB2149997B (en) 1986-03-12

Family

ID=27579362

Family Applications (1)

Application Number Title Priority Date Filing Date
GB08429177A Expired GB2149997B (en) 1981-04-20 1984-11-19 Image processing method and apparatus therefor

Country Status (1)

Country Link
GB (1) GB2149997B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0297177A1 (en) * 1987-06-30 1989-01-04 Minolta Camera Kabushiki Kaisha Image duplicating apparatus
GB2222049A (en) * 1988-06-29 1990-02-21 Sony Corp Video printing apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1357615A (en) * 1970-02-20 1974-06-26 Harris Intertype Corp Method of and apparatus for composing pages of printed material

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1357615A (en) * 1970-02-20 1974-06-26 Harris Intertype Corp Method of and apparatus for composing pages of printed material

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0297177A1 (en) * 1987-06-30 1989-01-04 Minolta Camera Kabushiki Kaisha Image duplicating apparatus
GB2222049A (en) * 1988-06-29 1990-02-21 Sony Corp Video printing apparatus
US5047864A (en) * 1988-06-29 1991-09-10 Sony Corporation Colors video printer with monitor for displaying mixed video signals and character messages indicating printer operating conditions
GB2222049B (en) * 1988-06-29 1992-09-16 Sony Corp Printing apparatus

Also Published As

Publication number Publication date
GB8429177D0 (en) 1984-12-27
GB2149997B (en) 1986-03-12

Similar Documents

Publication Publication Date Title
US4750212A (en) Image processing method and apparatus therefor
US4441208A (en) Picture information processing and storing device
US4887163A (en) Image processing apparatus
US3521241A (en) Two-dimensional data compression
US5170445A (en) Document decompressing system
JPH0134500B2 (en)
JP2832052B2 (en) Image processing device
GB2149997A (en) Image processing method and apparatus therefore
JPH088647B2 (en) Run-length coding method and apparatus
US5280361A (en) Data processing apparatus
GB2148561A (en) Image processing system
US3582905A (en) Character generation by improved scan, storage, and decoding apparatus
GB2148560A (en) Image processing system
JP2839578B2 (en) Image data input processing device
JPH0311145B2 (en)
JPS6333350B2 (en)
JPH0657045B2 (en) Image synthesizer
JPH037178B2 (en)
EP0302432A2 (en) Document decompressing system
JP2002077637A (en) Apparatus and method of image coding
JPS58198968A (en) Image reproducing device
JPS6051370A (en) Picture information encoding processor
SU1481816A2 (en) Image readout device
SU1140148A1 (en) Graphic information conversion device
JP2710635B2 (en) Image reading device

Legal Events

Date Code Title Description
PE20 Patent expired after termination of 20 years

Effective date: 20020415