METHOD OF TINT GENERATION AND APPARATUS THEREFOR

Abstract: Image data read from a negative bearing contour lines of an original image are converted into binary image data in real time, to be further converted into first run-length data in real time. Colors and/or gradation are designated for respective regions of the image. The code data indicating the colors and/or gradation are supplied to the first run-length data, whereby second run-length data are generated. A photosensitive material is exposed on the basis of the second run-length data, thereby carrying out the desired tint generation in the respective regions of the image.

Description: The present invention relates to a method effecting the designation of tints to regions of an image, input in the form of contour line drawing, and apparatus therefor for producing color separation negatives or positives bearing uniform sized halftone dots (i.e., screen tint) in predetermined regions which correspond to those of an original image. When producing such negatives or positives from an original image e.g. a map or a hand-drawn illustration, desired halftone-dot percentage is designated for respective regions thereof. In the case of color printing, such a designation of the halftone-dot percentage is performed for respective color separations of yellow, magenta, cyan and black (hereinafter referred to as Y, M, C and K, respectively), and the preparation of printing plates is performed by employing the four color separation films thus produced and another film representing contour lines of the respective closed regions. The film representing contour lines is obtained by photographically copying a comprehensive, in which necessary correction is made so as to represent contour lines thereon. The processing for producing screen tints in the respective regions an image, has conventionally been performed by hand, and therefore, extreme complicatedness and skillfulness are required therefore, hence it is time-consuming. In this regard, some techniques for automating such processing have been proposed. US-A-4 503 457 discloses one of such automatic techniques. However, US-A- 4 503 547 requires an operator to paint out manually respective closed regions of an original, and especially in case that the original includes complex regions to be painted the operator is compelled to complicated manual operations as in the conventional technique. The tint generation can be carried out nowadays by a so-called layout scanner system. An example of such a layout scanner system is discosed in US-A- 4 553 172, wherein the screen tint is effectively produced on a reproduced image. In such a layout scanner system, however, it is necessary to provide a memory means having large capability, since all pixel data have to be stored therein in order to make desired processings, such as image layout or rotation, retouching, tinting, gradation correction, tone change and so on. GB-A-2 148 655 discloses a facsimile system of standard type with a pick-up and recording drum recording halftone Y, C, M and K separations, which system although operating interactively with an operator, does not use run-length coding, and uses the picked-up colors, rather than allocating them. No pinhole removal is disclosed. From Systems-Computers-Controls vol. 13, no. 1, Jan-Feb 1982, pp 82-89 a pattern coloring terminal is known which uses run-length coding and which allows the allocation of colors to regions. The system further allows the input of an contour line drawing using a facsimile scanner and carries out processing such as line thickening. Pinhole removal is not disclosed. Radio Mentor Electronic, vol. 40, no. 3, 1974, pp 105-108, generally discloses an apparatus and therefore method by which noise, like pinholes, in an input image are removed. It is an object to release an operator from complicated and troublesome operations for producing a resultant image with desired screen tints in predetermined regions thereof and, at the same time, to remove unwanted pinholes which are included in the original image, thereby producing a resultant image having desired screen tints, without any pinholes thereon. The invention is defined in claims 1, 3 and 5. The present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings. Fig. 1 is an overall block diagram schematically showing an embodiment of the present invention; Fig. 2 is a diagram illustrating an example of an original image to be processed; Fig. 3 is a block diagram showing the structure of an input image processing circuit; Fig. 4 is a timing chart showing the operation of the input image processing circuit; Fig. 5(a) and Fig. 5(b) are explanatory diagrams of line thickening processing; Fig. 6 is a block diagram showing the structure of a line thickening circuit; Fig. 7 is a timing chart showing the operation of the line thickening circuit; Figs. 8A and 8B are block diagrams showing the structure of an automatic pinhole removing circuit; Fig. 9 is a timing chart showing operations of the automatic pinhole removing circuit; Fig. 10 is an explanatory diagram of run-length coding processing; Fig. 11(a) and Fig. 11(b) are explanatory diagrams of rectangular and square pixels; Figs. 12 and 13 are explanatory diagrams of data-skipping processing; Fig. 14 is a block diagrams showing the structure of a pixel skipping clock generator; Fig. 15 is an explanatory diagram of data-skipping processing and run-length coding processing; Fig. 16 is a block diagram showing the structure of an image controller; Fig. 17 is a flow chart showing the operation of the image controller; Fig. 18 is a block diagram showing the structure of an output image processing circuit; Fig. 19 is an explanatory diagram illustrating a relation between input pixel data and recording data; Figs. 20A and 20B are block diagrams the structure of line memories 302a and 302b, respectively; and Fig. 21 is a timing chart showing a reading operation of the line memories 302a and 302b accompanied with pixel enlargement processing A. Entire Structure of Embodiment Fig. 1 is an overall block diagram of an embodiment of the present invention. Referring to Fig. 1, a negative film 1 bearing contour lines of images is photographically obtained from a comprehensive, which is mounted on the peripheral surface of an original drum 2, whereas a photosensitive material 3 is mounted on that of a recording drum 4. These drums 2 and 4 are mounted on a rotary shaft 5, to be rotated in the direction ϑ by a motor 6. A pick-up head 7 for scanning the negative film 1 is provided in a position opposite to the original drum 2, whereas a recording head 8 is provided in a position opposite to the recording drum 4. The pick-up head 7 and the recording head 8 are respectively engaged with feed screws 10a and 10b which are rotated by motors 9a and 9b respectively, to be moved in the direction W a and W b upon rotation of the feed screws 10a and 10b. The motors 6, 9a and 9b are so driven that the pick-up head 7 scans the negative film 1 along sequence of scanning lines and the recording head 8 records on the film 3 along the sequence of scanning lines. An input unit and an output unit of a process scanner 11 are composed of aforementioned components. Image data 13 of the negative film 1, such as a map as shown in Fig. 2, scanned by the pick-up head 7 are inputted to an input image processing circuit 100. The image data 13 are converted to binary image data in the input image processing circuit 100, and are coded into run-length data RL1, on which detailed discussion is given later, then the run-length data RL1 are inputted to an image controller 200. The input image processing circuit 100 outputs control signals 14 to the motors 6, 9a and 9b respectively through a driving control circuit 12. Further, the input image processing circuit 100 is designed to fetch encoded signals from rotary encoders (not shown) respectively connected to the motors 6, 9a and 9b and data N representing the number of feed lines in the subscanning direction through the driving control circuit 12. The image controller 200 for receiving the coded run-length data RL1 includes a central processing unit (CPU) and a frame memory. The image controller 200 temporarily stores the run-length data RL1 in the frame memory, which are in turn read therefrom to display the image thus obtained on a CRT 15. An operator operates a digitizer 16 provided with a menu sheet 17 and tablet 18 while monitoring the image displayed on the CRT 15, to perform color designation for respective closed regions. Such color designation is made by using coded data through the digitizer 16. In Fig. 2, the closed regions correspond to respective administrative sections (i.e. states) R1, R2, R3, ... surrounded by contour lines (i.e. boundaries). The region of the sea shown in Fig. 2 can be also treated as one of the closed regions by regarding outer peripheral lines C as one of the contour lines. In Fig. 2, symbol X denotes the main scanning direction and symbol Y denotes the subscanning direction, respectively, of the scanner 11. Referring back to Fig. 1, run-length data RL2, to which the code data of the color designation in respect of the closed regions are affixed are inputted to an output image processing circuit 300, which in turn obtains halftone-dot percentages corresponding to the designated colors. A dot generator 20 generates outputs V in response to outputs 19 from the output image processing circuit 300, so that the photosensitive material 3 is exposed by the recording head 8 to produce Y, M, C and K separations with desired screen tints. B. Structure and Operation of Input Image Processing Circuit 100 Fig. 3 is a block diagram showing the structure of the input image processing circuit 100 in detail. Referring to Fig. 3 and 4, the input image data 13 inputted from the pick-up head 7 along scanning sequence are inputted to a binary coding circuit 101 and are compared therein with predetermined threshold value V TH , thereby being converted into binary signals 102 substantially in real time. In Fig. 4(a) and Fig. 4(b), the through put delay of the signals caused during the processing is neglected in order to facilitate understanding of the present invention. The binary signals 102 are inputted to a line thickening circuit 103, to be subjected to line thickening processing. This processing is performed in order to connect undetected linework gaps e.g. between lines C1 and C2 shown in Fig. 5(a), so as to form a closed contour line. These lines C1 and C2 are originally to be connected, but such gaps would occur in preparation of comprehensive or in scanning of the negative film. If such gaps remain, an inner region R in and an outer region R out of the contour lines C1 and C2 are not indentified as different regions, whereby the regions R in and R out cannot be individually designated by different colors. Therefore, the contour lines C1 and C2 are thickened to be connected with each other, thereby to obtain a closed contour line C3 as shown in Fig. 5(b). End portions of the contour lines can be smoothed by such line thickening processing. Fig. 6 illustrates the structure of a line thickening circuit 103, which is designed to perform the line thickening processing in the main scanning direction. In the line thickening circuit 103, D-flip-flops 110a to 110n (hereinafter referred to as D-FFs) are arranged in series so that respective outputs 111a to 111n thereof are respectively inputted to those subsequent thereto, as well as to AND circuits 112a to 112n. Other input terminals of the AND circuits 112a to 112n receive gate signals 113a to 113n which are outputted from a control circuit 160. Outputs from the AND circuits 112a to 112n are inputted to a single OR circuit 114, which generates an output signal 115. Thus, when the binary signal 102 is inputted to the D-FF 110a while only the first three gate signals 113a to 113c are "1" and the remaining gate signals 113d to 113n are "0" for example, AND circuits 112a to 112c contribute to the output signal 115. Accordingly, in respect of a scanning line L1 shown in Fig. 5(a), the binary signals 102 are processed as shown in Fig. 7(b) for example, relative to clock signals CK. The outputs 111a to 111c of the D-FFs 110a to 110c are respectively delayed by one clock as shown in Fig. 7(c) to (e), which are inputted to the OR circuit 114 through the AND circuits 112a to 112c. Thus, the output of the OR circuit 114 is obtained as shown in Fig. 7(f), whereby the separated contour lines C1 and C2 shown in Fig. 5(a) are connected with each other to obtain the closed contour line C3 shown in Fig. 5(b). Namely, in this example, each contour line is thickened by two pixels along the main scanning direction, so that contour lines separated by a distance within two pixels can be connected with each other. In such a structure, the number n (n: integer) of the D-FFs 110a to 110n can be arbitrarily selected. However, the line thickening processing is not performed when only a single gate one is made "1". In desired, such line thickening processing can be also performed in the subscanning direction. In such case, the binary signals 102 of some scanning lines may be temporarily stored in a memory (not shown), to be read therefrom out to obtain OR of the binary signals 102 of some pixels adjacent along the subscanning direction. However, such line thickening processing along the subscanning direction causes delay in the processing of this circuit to some extent, and hence only the line thickening processing in the main scanning direction is performed in this embodiment. Fig. 4(c) shows an example of signal 115 obtained by the line thickening processing. The signals 115 thus obtained through the line thickening processing are inputted in an automatic pinhole removing circuit 116 as shown in Fig. 3. The automatic pinhole removing circuit 116 is adapted to remove pinholes caused by unwanted dot-shaped defects existing on the negative film 1 and/or caused by noise in image reading from the pick-up head 7. Figs. 8A and 8B are block diagrams showing the automatic pinhole removing circuit 116, and Fig. 9 is a timing chart showing an operation thereof. As shown in Fig. 8A, the first half portion 116a of the automatic pinhole removing circuit 116 includes, in its initial stage, D-FFs 117a to 117m connected in series. Outputs 118a to 118m thereof are supplied to an AND circuit 121 through OR circuits 119a to 119m, respectively. To the other input terminals of the OR circuits 119a to 119m are inputted pinhole size designating signals 120a to 120m from the control circuit 160 shown in Fig. 3. Thus, for example, when only the first five signals 120a to 120e of the pinhole size designating signals 120a to 120m are "0" and the remaining signals are "1", the OR circuits other than the OR circuits 119a to 119e continuously output "1". Therefore, an output 122 of the AND circuit 121 becomes "1" only when all of the respective outputs 118a to 118e from the D-FFs 117a to 117e become "1". Thus, the output 122 becomes "1" only when the input signals 115 are continuously inputted "1" to the D-FF 117a over five pixels, whereas the output 122 becomes "0", when the input signal 115 is not inputted "1" thereto continuously over five pixels. Fig. 9(a) to 9(h) illustrate such operations. A signal A1 which continues to be "1" by four pixels is removed in the signal 122 (Fig. 9(h)) by delay operations of the D-FFs 117a to 117e and the AND operation. In another signal A2 which continues to be "1" by nine pixels, five pixels remain in the signal 122 by the AND operation. In this example, therefore, pinholes having lengths smaller then four pixels in the main scanning direction are effectively removed. In other words, such operation is "line narrowing operation" by four pixels. The second half part 116b of the automatic pinhole removing circuit 116 shown in Fig. 8B is designed to return the line thus narrowed. Therefore, D-FFs 124a to 124m are connected in series to perform line thickening through AND circuits 125a to 125m and an OR circuit 127 similarly to the line thickening circuit 103 of Fig. 6. Among gate signals 126a to 126m for designating the degrees of line thickening, only those corresponding in number to signals to be "0" of pinhole size designating signals 120a to 120m are "1". This is to carry out line thickening by the number of removed pixels in the line narrowing operation. Therefore, when five signals of the signals 120a to 120e are "0" similarly to the aforementioned example, only five signals 126a to 126e among the signals 126a to 126m are to be "1". Thus, either the signals 126a or 126m or 120a to 120m may be inverted through inverters (not shown) to obtain the others. Similarly to the line thickening circuit 103, the number of the signals to be made "1" or "0" is arbitrarily determined to designate the maximum size of the pinhole to be removed. Fig. 9(h) to Fig. 9(n) illustrate such operations, and it is obvious that a signal 128 (Fig. 9(n)) finally outputted from the automatic pinhole removing circuit 116 corresponds to the signal 115, wherein the signal A1 is removed therefrom. Fig. 4(d) shows an example of signal after the pinhole removal. The signals 128 thus subjected to pinhole removal are supplied to a run-length coding circuit 129 shown in Fig. 3. With respect to such a closed contour as shown in Fig. 10 for example, pixel data obtained along a scanning line L2 are converted into the following run-length data RL1 = (F1,G): (0, n₁), (1, n₂), (0, n₃), (1, n₄), (0, n₅) where F1 represents flags for designating black or white, such that F1="0" means white and F1 = "1" means black; and G represents run-length data (n₁, n₂, ...) indicating pixels to be continued on the scanning line. According to this embodiment, the run-length coding is performed while skipping pixels in the main scanning direction. The reason for this is as follows: In scanning of the negative film 1 by the scanner 11, the sampling pitch in the main scanning direction is narrowed in order to increase resolution. On the other hand, the sampling pitch in the subscanning direction cannot be much narrowed for preventing the scanning speed from being reduced, since scanning in the subscanning direction is achieved by the screw 10a. Thus, referring to Fig. 11(a), the sampling pitches in the main scanning and subscanning directions become different to each other, so that each picked-up pixel forms a rectangular pixel P1 extending in the subscanning direction, which is depicted by shaded lines. On the other hand, the image controller 200 of Fig. 1 is designed to process each pixel as a square one. Thus, it is necessary to convert the picked-up rectangular pixel P1 into a square pixel. Therefore, as shown in Fig. 11(b), a square pixel P2 (shown by shaded lines) having respective sides which are in length of the subscanning pitch ΔY is produced on the basis of the rectangular pixel P1, to perform run-length coding. Such a complete square pixel as shown in Fig. 11(b) is not necessarily obtained in relation with the clock cycle. Accordingly, a pixel approximately in the square shape is also referred to as a "square pixel" hereinafter. A series of rectangular pixels in the main scanning direction are skippingly fetched to decrease the number of pixels in the main scanning direction. The pixels thus fetched are used in obtaining square pixels P2. When, for example, the pixel pitch ΔX in the main scanning direction is 1/2 of ΔY, pixels affixed by a symbol x shown in Fig. 12(a) are ignored ("black pixels" are shown by shaded lines). Then, the pixels fetched which are affixed by circles, are employed to obtain a series of square pixels P2 as shown in Fig. 12(b). For such processing, the data representing scanning line number N (line/inch) (line/2.54 cm) in the subscanning direction transmitted from the driving control circuit 12 of Fig. 1 to the input image processing circuit 100 of Fig. 3 are fetched by a line register 151 shown in Fig. 3. The scanning line number N is supplied to a skip data memory 152. The skip data memory 152 includes a clock counter (not shown) for counting the clocks CK and a memory block (not shown) accessed by outputs from the counter. The memory block stores data for designating the pixels to be skipped in the series of the rectangular pixels P1 of one scanning line, in a look-up table system. Hereinafter, such data is referred to as "Skip Data". When the subscanning pitch ΔY = 1/N (inch) corresponding to the scanning line number N is integral times of the main scanning pitch ΔX, a single "1" and "0"s of M-1 are repeatedly represented in the skip data as shown in Table 1, assuming that M represents the aforementioned integer. In Table 1, "0" indicates the pixels to be skipped or ignored and "1" indicates the pixels to be fetched. When, on the other hand, the subscanning pitch ΔY is not integral times of the main scanning pixel pitch ΔX, the following processing is performed: identifying the pixels, in a series of the rectangular pixels P1, which correspond to boundaries b₀, b₁, ... of squares S Q each having a side of ΔY in the main scanning direction, as shown in Fig. 13, and fetching only such pixels to which circles are affixed, thereby remaining pixels in a series of the rectangular pixels P1 being skipped, hence ignored. When boundaries between the adjacent squares S Q correspond to those between the adjacent rectangular pixels as in the case of b₀ and b₅ in Fig. 13 for example, a rectangular pixel having larger coordinate value of adjacent rectangular pixels may be selected to be fetched. Such processing as mentioned above is expressed as follows: (J -1)·ΔX < I·ΔY ≦ J·ΔX (1) where I = 0, 1, 2, 3, ..., which represent the order of the series of the square pixels S Q , and J = 0, 1, 2, 3, ..., which represent the order of the series of the rectangular pixels P1. Assuming that α represents the value of ΔY/ΔX, the expression (1) can be transformed as follows: (J - 1) < I·α ≦ J (2) The rectangular pixels to be fetched for use in obtaining the series of the square pixels S Q are determined from the expression (1) or (2). The skip data obtained by the expression (2) with respect to the values α are listed in Table 2. It can be easily confirmed that Table 1 is obtained from the expression (1) or (2) when α = M (integer). When α is a rational number, a finite sequence of numbers is repeated in the skip data. The following description is made in the case of α = 3.5. In such case, skip data R for one scanning line formed by repeating "1001000" are read from the skip data memory 152 of in Fig. 3, to be supplied to the skip clock generator 153. As shown in Fig. 14, the skip clock generator 153 gates the sampling clocks CK by the skip data R, to generate skip clocks CK₁ responsive to the skip data R (Figs. 15(a) to (c)). It is to be noted that the cycle of the clocks CK in Fig. 14 is shown in different width from that in Fig. 7, for the convenience of illustration. Difference between the skip data R and the skip clocks CK1 is that the former are simply data trains while the latter are time series signals synchronous with the sampling clocks CK. The skip clocks CK1 are supplied to the run-length coding circuit 129 shown in Fig. 3, which fetches the input data 128 (D₀, D₁, ...) on the basis of the skip clocks CK1. The data thus obtained are regarded as data for respective square pixels, to be subjected to run-length coding process. Therefore, when, for example, the sampled data shown in Fig. 15(e) are in the form shown at Fig. 15(f), run-length data RL1 are obtained as follows: For another example shown in Fig. 12, the following run-length data RL1 are obtained, as shown in Fig. 12(c). RL1 = (1, 1), (0, 1), (1, 2), (0, 2), (1, 1), ... The run-length data RL1 thus obtained are supplied to a toggle memory 135 of Fig. 3. The toggle memory 135 functions as a buffer memory, and has two line memories 135a and 135b switched by switching circuits 134 and 136. These line memories 135a and 135b alternately repeat writing/reading in each scanning line, to transfer the run-length data RL1 to the image controller 200 of Fig. 1. C. Structure and Operation of Image Controller 200 Referring to Fig. 16, the image controller 200 includes a frame memory 201 for storing the run-length data RL1 from the input image processing circuit 100, a CPU 202 and a memory 203 for storing several data and a program. The CRT 15 and the digitizer 16 are connected to the aforementioned components. The run-length data RL1 are transferred from the input image processing circuit 100 and are stored in the frame memory 201. Referring to Fig. 17, the run-length data RL1 are read from the frame memory 201 (step 1), which are subjected to a pinhole removal processing (step 2). Although the pinhole removal processing has already been performed in the automatic pinhole removing circuit 116 in the input image processing circuit 100, such processing has been merely performed with respect to pinholes being short in length along the main scanning direction. Consequently, there still remain pinholes being relatively large, which are removed at the step 2. That is, a small region consisting of "black" pixels less than a predetermined number, e.g. fifty pixels, such as a region PH shown in Fig. 2, is discriminated as a pinhole to be removed. In this regard, the discrimination in respect of the region PH is made on the basis of the pixels continuing in the main scanning and/or subscanning directions. According to this embodiment, thus, pinhole removal processing is performed twice in respect of the length of a series of pixels in the main scanning direction and the extent of pixels respectively, so that pinhole removal is effectively improved by such double processing. The contour image after pinhole removal is displayed on the CRT 15 (step 3). Then, it is decided whether color designation of the respective closed regions is completed (step 4), and if not, color designation of the regions is performed while the operator is visually recognizing the image displayed on the CRT 15 (step 5). In this regard, when color designation is performed on the region R1 of Fig. 2, for example, an arbitrary point within the region R1 is designated by the tablet 18. Then, coded data representing a desired color and a desired tone to be given to the region R1, are designated by the operator through ten keys provided on the menu sheet 17. In such color designation, color codes "0" to "255" are arranged to correspond to combinations of halftone-dot percentage with respect to yellow (color Y), magenta (color M), cyan (color C) and black (color K) as shown in Table 3, for example. Such color code as shown in Table 3 may fixedly be settled for use in the color designation. However, halftone-dot percentages corresponding to respective color codes can be corrected or changed, in this embodiment, either during the color designation processing or before it. Such correction is performed through the menu sheet 17 and the tablet 18, for example. Synchronously with the color designation, the run-length data RL1 are converted into run-length data RL2 corresponding to the designated colors (step 5). With such color designation, the region R1 displayed on the CRT 15 is filled with the designated color (step 3). A small white circle in this closed region R1 denotes a point designated by the tablet 18. In order to perform this, the memory 203 shown in Fig. 16 stores such data as shown Table 3. Both color designation and data conversion from RL1 to RL2 are repeatedly performed in respect of remaining regions R2, R3,... After that, line narrowing processing is performed to erase the contour lines of the respective regions (step 6), which the line narrowing is made on the basis of a reverse principle of the aforementioned line thickening processing. In respect of the run-length data RL2 = (F2, G) thus obtained, the color designating flags F2 are to be converted from the black-and-white designating flags F1 of the run-length data RL1. Namely, the flags F1 initially having designation data of F1, = "0" (white) or F1 = "1" (black) are converted into 256 kinds of color designating flags F2 indicated by color codes. For example, when the region R1 of Fig. 2 is designated by the color code number "3", the run-length data RL1 of this region R1 is converted into RL2 = (3, G). Although the run-length value G would also be changed due to the processing of erasing contour lines, here is nevertheless expressed by the same symbol G for the convenience of explanation. According to this embodiment, 256 colors represented by the code data of "0" to "255" can be expressed, whereby the color designating flags F2 are of any values of "0" to "255". The run-length data RL2 obtained are transferred to the output image processing circuit 300 (step 7), whereby processing in the image controller 200 is completed. The run-length data RL2 may be stored in an external memory or the like. D. Structure and Operation of Output Image Processing Circuit 300 Fig. 18 is a block diagram showing the structure of the output image processing circuit 300. Referring to Fig. 18, the run-length data RL2 transferred from the image controller 200 are inputted to a toggle memory 302. This toggle memory 302 includes two line memories 302a and 302b alternately switchable by switchable circuits 301 and 303, wherein line memories 302a and 302b are alternately used for writing and reading of run-length data RL2 for each scanning line. Writing of the run-length data RL2 into the line memories 302a and 302b is performed, as in a usual manner, in accordance with the sampling clocks CK. On the other hand, reading processing therefrom is carried out in a different manner from a usual one. Before explaining the reading processing, description is made on the premise thereof, i.e., relationship between recording data Q for tint generation to be supplied to the dot generator 20 and the input data initially inputted to the input image processing circuit 100. Referring to Fig. 19, the image data initially inputted to the input image controller 100 are in the form of bit series D₀, D₁, ... of rectangular pixels P1 (Fig. 19(b)). As described hereinabove, these pixels are skippingly fetched in response to the skip clocks CK₁ (Fig. 19(c)), thereby a series of the square pixels P2 (Fig. 20(d)) as "skipped image data" are obtained. Although the series of the square pixels P2 is expanded on time scale, the size of the pixels itself can be ignored, since the processing is performed on the basis of the run-lengthcoded data in the image controller 200. Accordingly, what is important for the processing is the number of pixels to be of an identical color along the scanning direction. Therefore, when, for example, three pixels D₀, D₃ and D₇ in Fig. 19(d) are designated as an identical color, the run-length value G is to be G = 3. On the other hand, the dot generator 20 is actuated by the sampling clocks CK (Fig. 19(a)), and hence the image to be recorded is disadvantageously compressed in the main scanning direction, as shown in Fig. 19(e) when the aforementioned run-length data G = 3 is employed as it is for use in the recording data Q. Therefore, the pixels must be expanded in the main scanning direction before being outputted to the dot generator 20. Thus, the line memories 302a and 302b shown in Fig. 18 are designed to perform data reading while carrying out such pixel-expansion processing. Description is now made on the reading processing with reference to the case where reading operation from the line memory 302a is performed Fig. 20A is a block diagram showing the structure of the line memory 302a relating to the reading processing. The other line memory 302b is in the same structure. The line memory 302a includes a run-length counter 304, a memory read address counter 305 and a memory block 306. The run-length counter 304 is formed by a presettable down counter. The memory block 306 is divided into a first storage area 306f for storing the color designating flags F2 of the run-length data RL2 and a second area 306g for storing the run-length values G. The clocks CK₂ generated by an enlargement clock generator 309 are supplied to the run-length counter 304. The clocks CK₂ are generated in the same manner as the skip clocks CK₁ generated in the input image processing circuit 100. Namely, the feed line number N registered in the feed line number register 151 is supplied to the image controller 200 through a transfer line 140, which is transferred from the image controller 200 to an enlargement data memory 308 through a transfer line 210. The enlargement data memory 308 and the enlargement clock generator 309 are substantially identical in structure with the skip data memory 15 and the skip clock generator 152 shown in Fig. 3, respectively. The data trains listed in Tables 1 and 2 are previously stored in the data memory 308, and one of which is selected in response to the feed line number N. Accordingly, a data train H (= R) shown in Fig. 21(b) is given from the data memory 308 to the clock generator 309 when α - 3.5, so that the clock generator 309 generates the clocks CK₂ shown in Fig. 21(c). In such structure, the run-length counter 304 of Fig. 20A is loaded with the run-length value G(0) stored in the initial address "0" of the second storage area 306g. The value F(0) of the color designating flag F2 stored in the address "0" is outputted to a color map memory 307 from the first storage area 306f through a toggle switch 303 (Fig. 21(e) to (g)). The run-length counter 304 commences to count by "-1" from the loaded run-length value G(0) in response to clocks CK₂. During such counting, the address output of the address counter 305 remains "0", and hence the color designating flag F(0) is continuously outputted to the color map memory 307. When such down counting so progresses that the count value of the run-length counter 304 becomes "0", the run-length counter 304 outputs a borrow signal BW to the address counter 305 (Fig. 21(d) and (g)). It is to be noted that Fig. 21 illustrates the case of G(0) = 2. Then, the address counter 305 counts by "+1", to supply a new address output "1" to the memory block 306. In response to this, the vaule F(1) is outputted as the color designating flag F2 from the first storage area 306f of the memory block 306. The value G(1) is also outputted as run-length value G output from the second storage area 306g , which is loaded in the run-length counter 304. Then, counting is commenced again therein similarly as mentioned above. Such operation is repeated until all the data of one scanning line stored in the memory block 306 are completed. Upon completion of the reading, read/write operations of the line memories 302a and 302b are inverted. Thus, the color map memory 307 is supplied with the color designating flags expanded on time scale as shown in Fig. 21(g). The color map memory 307 is supplied with color map data CD shown in Table 3 representing relationship between the color designating flags F2, i.e., the color codes (code data) and halftone-dot percentages of desired tint with respect to the color separations Y, M, C and K, from the image controller 200. The color map data CD are stored in the color map memory 307 in a look-up table system. Thus, when, for example, F2 = "2" is inputted thereto when recording the Y separation, recording data Q representing "halftone-dot percentage: 50" is outputted from the color map memory 307 according to Table 3. In this regard, the output duratin of the recording data Q corresponds to the run-langth value G. Therefore, in the case of G = 3 illustrated in Fig. 19, the identical recording data Q is continuously outputted for a time t shown in Fig. 19 (d) since the skip clock CK₁ is identical to the clock CK₂. Thus, when the recording data Q is supplied to the dot generator 20, the recording output V of halftone-dot percentages corresponding to the designated color code is given to the recording head 8 for such time in the form of halftone dot output. Thus, such an image as shown in Fig. 19(g) is recorded on the recording film 3 in the form of a series of rectangular pixels, whereby a halftone separation with desired tint is produced. Although the aforementioned processing is given in respect of Y separation, similar processings are repeatedly carried out in respect of the M, C and K separations. When recording these separations M, C and K, respective halftone-dot percentages corresponding to respective separations are switchably outputted from the memory 307, which the respective halftone percentages are stroed therein as color map data CD shown in Table 3. Such outputs of respective halftone-dot percentages are carried out by switching access areas to the memory 307 according to a desired color separation, on the basis of a control signal 220 supplied from the image controller 200 to a control circuit 310. When recording the respective color separations, the run-length data RL2 of the respective color separations are repeatedly outputted from the line memories 302a and 302b while changing the access area to the color map memory 307. The skip clocks and enlargement clocks have been employed in the aforementioned embodiment since the pixels to be processed in the processing circuit 100 and 300 are different in size along the main and subscanning directions. However, when the pixels are identical in size, these special clocks are not required, and accordingly such skip processing as shown in Figs. 12 and 13 may be omitted. Although the above embodiment has been described in a case of effecting tint generation in respective closed regions with different colors, the present invention is also applicable to monochromatic recording with gradation. Further, the present invention is applicable to a case wherein color recording with different screen tints is made, to which a desired gradation is given. From the description hereinabove, it is apparent that the present invention leads to practically advantageous effects as follows: Since the data to be processed are extremely compressed after run-length coding in comparison with the pixel data obtained by scanning of the negative film 1 bearing contour lines thereon, no large memory capacity is required for the memory. Contraction or expansion of the image along the subscanning direction can also be corrected by repeatedly reading the same data or skippingly reading the image data, since the image data on the entire image to be processed are stored as run-length coding data. Further, since externally designated colors and/or gradation of tints to be effected in respectivce regions are supplied as code data to first run-length data RL1 to generate the run-length data RL2, the output image processing circuit 300 outputs the recording data on the basis of the run-length values. Thus, tint generation can be readily and correctly effected in desired regions of an image.

Claims: A method effecting the designation of tints to regions of an image, input in the form of a contour line drawing, comprising the steps of: (1) preparing an original image bearing contour lines thereon which define respective regions of said image; (2) scanning said image for obtaining pixel data thereof, the method being characterized by comprising the steps of (2-1) scanning said image in a main scanning direction at a first pixel pitch; and (2-2) repeatedly performing the step (2-1) while scanning said image in a sub-scanning direction at a second pixel pitch, wherein said second pixel pitch is larger than said first pixel pitch; (3) converting said pixel data into binary data with reference to a predetermined threshold level, thereby discriminating pixels of contour lines from the others; (4) thickening the contour lines, thereby connecting undetected line gaps to form closed regions; (5) further converting said binary data into first run-length data, comprising the step of: (5-1) removing unwanted pinholes from said image, comprising the steps of (5-1-1) skipping pixels in said main scanning direction at a skipping rate corresponding to a ratio of said first pixel pitch and said second pixel pitch, to obtain square pixels whose sizes in said main scanning direction and said sub-scanning direction are substantially equal to each other, and (5-1-2) determining pixel clusters each consisting of pixels each of which has a predetermined logical level, the number of which is less than a designated number of pixels, to thereby find said unwanted pinholes to be removed; (6) designating desired colors to the respective regions of the image while monitoring said image; (7) giving code data to said first run-length data in response to the designation of colors, in respect of the respective regions, said code data representing colors designated, thereby obtaining second run-length data; (8) obtaining recording data, which represent halftone-dot percentages corresponding to respective color separations, on the basis of said code data included in said second run-length data; and (9) controlling the recording on a photosensitive material by said recording data, whereby desired tints are recorded in the respective regions of the image, said recording being so controlled that pixels of said tints have the same sizes in said main scanning direction and said sub-scanning direction. A method according to claim 1, further comprising the steps: (4'), between the step (4) and (5), of finding regions in which pixels have said predetermined logical level and in which less than a predetermined number of pixels having said predetermined logical level continue in said main scanning direction; and (4'') of removing said regions found in the step (4'). An apparatus effecting the designation of tints to regions of an image, input in the form of a contour line drawing, comprising: means for obtaining pixel data of the image (1), said image bearing contour lines of respective regions thereof; characterized by first converting means (101) for converting said pixel data into binary data with reference to a predetermined threshold level, thereby discriminating pixels of contour lines from the others; said means for obtaining pixel data comprising means (7, 90) for scanning said image in a main-scanning direction at a first pixel pitch and means (6, 7) for scanning said image in a sub-scanning direction with a second pixel pitch which is larger than said first pixel pitch; line thickening means (103) for thickening pixels of the contour lines, thereby connecting undetected line gaps to form closed regions; second converting means (129) for converting the binary data thus thickened in respect of the contour lines, into first run-length data, comprising: means (151, 152, 153) for skipping pixels in said main scanning direction at a skipping rate corresponding to a ratio of said first pixel pitch and said second pixel pitch, to obtain square pixels whose sizes in said main scanning direction and said sub-scanning direction are substantially equal to each other, and means for determining pixel clusters each consisting of pixels each of which has a predetermined logical level, the number of which is less than a designated number of pixels, to thereby find unwanted pinholes to be removed; means for removing said unwanted pinholes; color designating means for designating colors to the respective regions of the image, designation of colors being given in the form of code data; third converting means (200) for converting said first run-length data into second run-length data in which said code data of color designation in respect of the respective regions of the image are included; means (300) for obtaining halftone-dot percentages corresponding to respective color separations, on the basis of said code data, comprising means for controlling said recording so that pixels of said tints have the same sizes in said main-scanning direction and said sub-scanning direction; and recording means (8, 20) receiving the halftone percentages and recording the desired tints in the respective regions of the image. An apparatus according to claim 3, wherein said removing means comprise: means for finding regions in which pixels have said predetermined logical level and in which less than a predetermined number of pixels having said predetermined logical level continue in said main scanning direction. An apparatus effecting the designation of tints to regions of an image, input in the form of a contour line drawing, comprising: original mounting means (2) for mounting an original image (1) thereon, said image bearing contour lines of respective regions thereof; photosensitive material mounting means (4) for mounting a photosensitive material thereon; first driving means (9c, 9b) connected to said original mounting means and photosensitive mounting means respectively, for driving the same respectively in a main scanning direction; pick-up means (7) provided opposite to said original mounting means for picking up pixels (P1) of said original image; recording means (8) provided opposite to said photosensitive material mounting means for recording desired tints on said photosensitive material; second driving means (6) connected to said pick-up means and recording means respectively for driving the same respectively in sub-scanning direction; driving control means (12) connected to said first and second driving means respectively for controlling driving thereof; characterized by said pick-up means (7) being operable to pick-up said pixels of said original image in a main scanning direction (X) and a sub-scanning direction (Y) at first and second pixel pitches, respectively, wherein said second pixel pitch is larger than said first pixel pitch; first image data processing means (100) connected to said pick-up means and said driving control means respectively for processing pixel data of the image obtained by said pick-up means, said pixel data being thereby converted into first binary run-length data, said first image data processing means (100) comprising: means (153) for generating a clock signal (CK): means (152, 153) for skipping said clock signal at a skipping rate corresponding to the ratio of said first pixel pitch and said second pixel pitch, to obtain a skipped clock signal (CK1); and means operable in synchronism with said skipped clock signal to convert said pixel data of the image obtained by said pick-up means into said first binary run-length data defined as an array of square pixels (P2) whose sizes in said main scanning direction and said sub-scanning direction are substantially equal to each other; and means for removing pixel clusters each consisting of pixels each of which has a predetermined logical level, the number of which is less than a designated number of pixels, to thereby remove unwanted pinholes; second image data processing means (200) connected to said first processing means for processing said first binary run-length data, said first binary run-length data being thereby converted into second binary run-length data having code data of colors designated to respective regions of said image; third image data processing means (300) connected to said second image processing means for processing said second run-length data, thereby obtaining halftone-dot percentages corresponding to respective color separations, said third image data processing means comprising: means (309) for modifying said clock signal (CK) to obtain a modified clock signal (CK2) corresponding to said skipped clock signal (CK1), and means (302) operable in synchronism with said modified clock signal to convert said second run-length data into said halftone-dot percentages; and dot generating means connected to said third processing means and recording means respectively for generating desired halftone dots in respective regions of said image on the basis of said halftone-dot pecentages. An apparatus according to claim 5, wherein said removing means comprises: means for finding regions in which pixels have said predetermined logical level and in which less than a predetermined number of pixels having said predetermined logical level continue in said main scanning direction.

Inventors: SARUMARU, MASAHIKO, YAMAMOTO, YOSHIHISA DAINIPPON SCREEN MFG.CO.LTD.
Applicants: DAINIPPON SCREEN MFG. CO., LTD.
Application year: 1987
Main classification: H04N1
IPC codes: H04N1, G03F5, G03F3