Method of and apparatus for producing cutout mask data

Abstract: Cutout mask data can be easily obtained while setting small unit areas in an original image and displaying them in order on a display unit. Unit areas (R₁-R a ) including vortexes (P₁-P₁₁) of an outline of a cutout mask are first designated. Unit area images (IR₁-IR₉) within the unit areas are simultaneously displayed on a display unit. An operator sequentially designates positions of the vertexes while watching the unit area images arrayed in order of the designation. Cutout mask data are formed on the basis of the positions of the vertexes.

Description: The present invention is related to a method of and apparatus for producing cutout mask data which are employed to extract or eliminate a cut-out area within an original image. A picture of commodities which is used as an original for producing a printed matter, such as a catalogue or the like, has a background other than the commodities themselves. The printed matter usually shows only the commodities without the background. The cutout mask is employed to remove the background area (or a cut-out area) from the original. The cutout mask is a film which is opaque in the cutout area and transparent in the rest part of the original. A reproduced image without the background is produced by photographical reproduction while laying the cutout mask over the original or a fully-reproduced image of the original. Another type of the cutout mask whose transparent portion and opaque portion are reversed is employed when the background is replaced with other picture image. In an image processing apparatus called color page make-up system, the cutout mask is treated as one of several images and is represented by image data (cutout mask data); the reproduced image without the background is represented by image data which are produced by processing the cutout mask data and an original image data depicting the original. The method of producing the cutout mask data in the image processing apparatus is described in the Japanese Patent Publication Gazettes 1985-13178 and 1985-5747 disclosed by the applicant of the present invention, for example. The cutout mask data is usually produced by displaying the original image on a displaying device, and manually designating an outline of the cutout area within the original image with a digitizer or the like. Further, image compression operation, which is preformed by skipping pixels at regular intervals in the original to collect compressed image data, skipping pixels with interpolation and the like, for example, may be applied in the production of the cutout mask data; this enables the displaying device to show the whole original image at a time when the total number of pixels in the original image is larger than that of the displaying device. However, on the compressed image, the outline of the cutout area is hard to precisely designate because a part of the pixels of the original image is omitted in the compressed image. In order to precisely designate the outline, a method in which a partial image of the original is displayed without the image compression - displayed at actual resolution - is often applied. In this method, a plurality of partial images which cover the outline of the cutout area is first designated by an operator while the compressed image of the whole original is displayed. One of the plurality of partial images is displayed at actual resolution on the displaying device, and the operator designated a part of the outline; similar processing is repeated for all of the plurality of partial images. In similar method, at every time the processing is finished for one partial image, the next partial image is specified on the compressed image, or the position of the next partial image is designated by a direction and a distance from the current position. A method of this kind and a corresponding apparatus is disclosed in Patent Abstracts of Japan, vol. 8, no. 18 (P-250), 26th January 1984 & JP-A-58 176 638 which forms the basis for the preamble of claims 1 and 11. According to those conventional methods, an operator sometimes loses a relation, between a part of the outline designated on the previous partial image and that designated on the current partial image. Further, because one partial image includes only a part of the cutout mask, it is sometimes difficult to find out the outline in it. Moreover, because the plurality of partial images are sequentially displayed, image data for respective partial images are inefficiently read out from a disc memory one by one to make a partial image; therefore, the process takes much time. The invention is defined in claims 1 and 11. Accordingly, an object of the present invention is to efficiently produce a cutout mask data depicting a required cutout mask. These and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings, in which: Fig. 1 is a block diagram showing the structure of an apparatus according to the present invention; Fig. 2A and Fig. 2B are flow charts showing the procedure of the preferred embodiment of the present invention; and Fig. 3A through 3F, 4A, 4B and 5 are explanatory diagrams showing examples of images employed in the preferred embodiment. Fig. 1 is a block diagram showing the structure of an image processing apparatus for producing cutout mask data according to the present invention. The apparatus comprises a CPU 1, a digitizer 2, a key board 3, a disc memory 4, an image compression unit 10, a RAM 11 and a mask memory 6, which are connected to each other through a bus 9. The image compression unit 10 compress (or contract) image data of an original at a prescibed compression rate in response to demand from CPU 1, and then transmit the compressed data to the image memory 5. The RAM 11 stores information about a unit area, and vector data, which will be described later. The image memory 5 and the mask memory 6 are respectively connected to an image display unit 8, such as a color CRT, through a display control unit 7, and store data for displaying the images of the original, the cutout mask and so on. Figs. 2A and 2B are flow charts showing the procedure of producing a cutout mask data. Fig.3A through 3F are explanatory diagrams showing examples of images at main steps of the procedure. At a step S1, an operator designates an original image (or a subject image) subjected to the processing of producing a cutout mask data by means of the key board 3; this is performed by selecting one of image data which stored in the disc memory 4 in advance. The selected image data is compressed in the image compression unit 10, and is stored in the image memory 5 thereafter. In this embodiment, the compression is achieved by skipping the selected image data. If the selected image data is what depicts a color image, respective color components for yellow (Y), magenta (M), cyan (C) and black (K) of the selected image data are stored in the image memory 5. At a step S2, the whole subject image is displayed as a compressed image (or a contracted image) on the image display unit 8 on the basis of the image data stored in the image memory 5. The display control unit 7 converts the image data with Y, M, C and K components into those with R, G and B components, to thereby display the subject image on the image display unit 8. The display control unit 7 also displays an image of a cutout mask with a prescribed color over the subject image on the image display unit 8 on the basis of image data stored in the mask memory 6. The image of the cutout mask may be displayed to be semitransparent. Fig. 3A illustrates a compressed image I 0 thus displayed. The compressed image I 0 includes a picture H 0 of a house having a window W. The area which is surrounded by the outline of the picture H 0 is to be that of a cutout mask. At a step S3, the operator moves a cursor on a picture plane of the image display unit 8 by means of the digitizer 2 and a stylus pen or a mouse (not shown). A position of a unit area is then designated by the operator. The unit area is employed at the next step S4 in designating the outline of the cutout mask. The unit area has a square shape of prescribed size whose center is located at the cursor, for example. The designated unit area is, for example, indicated by coloring the frame thereof so that the designated unit area is easily recognized in the compressed image I 0 . It is also effective to indiate the designated area by coloring or inversely coloring the unit area, or traslucently coloring the same. The information about the position and size of a unit area image which is an image within the unit area is registered in the RAM 11 at a step 5. By repeating the steps S3 through S6, a plurality of unit areas is established in the subject image. Fig 3B shows unit areas R 1 through R 9 thus sequentially established. As will be described later in detail, two adjacent vertexes of the outline of the cutout mask are connected to each other with a segment. If a subject area which is cause of a cutout mask - cutout area corresponds to picture H 0 in Fig. 3A - is outlined only by line segments, unit areas are established at the vertexes of the cutout area. After all of unit areas R 1 through R 9 are registered, respective unit area images IR 1 through IR 9 of the unit areas R 1 through R 9 are read out from an original image file within the disc memory 4 to be displayed on the image display unit 8 at actual resolution, as shown in Fig. 3C. The unit area images are arrayed in order of the designation at the steps S3 through S6. A different pattern of the array other than that of Fig. 3C can be applied, for example, the unit area images IR 5 through IR 8 in the second row from the top can be arrayed from the left to the right. At steps S8 and S9, the operator moves the cursor on the picture plane by means of the digitizer 2 and a stylus pen or a mouse, and sequentially specifies positions of vertexes of the outline within the unit area images IR 1 through IR 9 . A plurality of positions of the vertexes may be designated in each of the unit area images IR 1 through IR 9 . Because the unit area images IR 1 through IR 9 are displayed at actual resolution and because one pixel is of about 0.4 mm square, for example, if the image display unit 8 is of 14-inch type, the vertexes of the outline can be precisely designated even by an unskilled operator. Fig. 3D shows a part of the display where two vertexes P 1 and P 2 of the outline are designated. The positions of the designated vertexes P 1 and P 2 are marked by "X" with a prescribed color. Positional data of the specified vertexes are registered in the RAM 11 at a step S10. As for the first vertex of the outline, a step S11 is not executed but the processing returns from a step S12 to the step S8. When the second vertex P 2 of the outline is registered at the step S10, the CPU 1 computes (or interpolates) a segment between the vertexes P 1 and P 2 (or an outline segment) and displays the segment with a prescribed color on the picture plane. The outline segment L 12 thus displayed is shown by a broken line in Fig. 3D. The outline segment L 12 of Fig. 3D is drawn to be slightly shifted from an actual position which is located just on the outline of the cutout area H 0 for convenience of illustration. If one outline segment appears in more than one unit area image, the outline segment is displayed in all of those unit area images. Figs. 4A and 4B illustrate a case where two overlapping unit areas R a and R b are designated and three vertexes P a , P b and P c are sequeatially designated. Outline segments L ab and L bc are redundantly displayed in both of the unit area images IR a and IR b . In this case, the vertex P b can be designated in either of the unit area images IR a and IR b . Data representing the outline segment L 12 thus obtained is stored in a mask plane of the mask memory 6 in the form of a function representing the position of the outline segment L 12 . The mask memory 6 has another mask plane for storing data representing the positions of the vertexes P 1 and P 2 which are displayed by mark "X" and still another mask plane for storing image data representing the cutout mask. In every cycle of the steps S8 through S12, one outline segment is interpolated between a newly designated vertex and a preceding vertex, and displayed on the unit area images. After all of the vertexes which are necessary to form the outline of a closed loop are designated, the operator orders the end of the designation with a key board 3 at the step S12. Then an outline segment L 111 between the first vertex P 1 and the final vertex P 11 is interpolated, whereby a closed-loop outline L c (shown by a broken line in Fig. 3F) is completed. The inside area surrounded by the closed-loop outline L c is the cutout mask M. Cutout Mask data formed of coordinate data corresponding to the vertexes P 1 through P 11 are stored in the RAM 11, and display data corresponding to the cutout mask data are stored in the mask memory 6. The image of the cutout mask M is displayed together with the compressed image I 0 . The image at this stage is the same as that shown in Fig. 3F except the marks "X". The image of the cutout mask M is uniformly colored with a specific color specified by the operator. The operator checks the image on the picture plane and returns the processing from the steps S14 to S3 to modify the cutout mask if necessary. In modification of the cutout mask, the cutout mask before the modification is displayed together with respective unit area images shown in Fig. 3C through Fig. 3E. If the inside of the window W is to be removed from the cutout mask M by the modification, the closed-loop outline of the window W is obtained according to the above stated procedure of the steps S3 through S13, and the operator specfies that the inside of the window W is removed. Addition of the cutout mask area can be similarly performed. After the modification of the cutout mask is completed, the cutout mask data, which essentially consist of coordinate data of the vertexs of the outline, and which is registered in the RAM 11, are stored in the disc memory 4 at a step S15. The cutout mask data may be stored in the form of bit-map data, run-length data or the like. As described above, the unit area images IR 1 through IR 9 which are parts of the whole image area and which are needed in designating the vertexes P 1 through P 11 of the outline are arrayed in order on the image display unit 8; the operator sequentially designating the vertexes P 1 through P 11 while watching the unit area images IR 1 through IR 9 simultaneously. Therefore the operation of designating the vertexes is not suspended during change of the images on the picture plane of the image display unit 8, and is performed efficiently. Further, because the unit area images IR 1 through IR 9 can be small areas including the vicinity of the vertexes P 1 through P 11 the unit area images IR 1 through IR 9 can be displaced simultaneously at actual resolution. Therefore the operator can designate the vertexes P 1 through P 11 continuosly and precisely. The smallness of the unit area has another advantage of reducing the time required for reading out image data of the unit area images IR 1 through IR 9 from the disc memory 4 and then displaying the unit area images. As shown in Fig. 5, an image I 1 which is further compressed from the image I 0 of Fig .3A may be displayed together with the unit area images. The vertexes and outline segments may be displayed on the compressed image data I 1 as well as on the unit area images. This makes it easier for the operator to recognize the positions of the vertexes and the outline segments and increases the efficiency of the operation. Although linear interpolation is employed to connect the adjacent vertexes in the above embodiment, another type of interpolation on the basis of a prescribed function representing a specific shape of interpolated line, such as an arc, may be employed instead. Although the unit area images IR 1 through IR 9 are displayed at actual resolution, they may be expanded to be displayed when the number of unit areas is small. When a large number of unit areas are designated and therefore area of the unit area would have to be small if they were displayed simultaneously, the number of unit area images to be simultaneously displayed at actual resolution can be limited. In this case, the apparatus may have a paging function: displaying several unit areas in a single page, designating the vertexes in the displayed unit areas, changing the display to show the unit areas in the next page and designating the vertexes in the newly displayed unit areas; thus the operator can specify the vertexes continuously. The apparatus may have an expansion display function to display an expanded unit area image on the image display unit 8; this makes it easier for the operator to designate the vertexes because one pixel of a unit area image at actual resolution is represented with a few pixels in the expanded image. Therefore, the operator can designate the vertexes of a complicated outline more precisely. If all of the expanded unit area images cannot be displayed slimultaneously on the picture plane, the apparatus may have a smooth scroll display function which scrolls the displayed image on the picture plane by changing the first address of the displayed image which is read out from the image memory 5 to the image display unit 8 in response to order from the operator. The efficiency of the operation is maintained by employing the smooth scroll display function. Each of the compressed image and the unit area images may be four-color image synthesized from color separation images having Y, M, C and K components, or one of the color separation images. This is because the outline of the cutout mask is sometimes easier to recognize in one of the color separation images than in the four color image. The operator may select the color type of the displayed image by means of key board 3. Incidentally, the present invention may be also applied to monochrome images. According to the present invention, the unit area images including the vertexes are displayed on the image display unit 8 in order of designation and the vertexes are sequentially designated on those unit area images; therefore the operator can designate the vertexes sequentially without changing the displaying images, and the cutout mask data is produced efficiently. Since the interpolation of the adjacent vertexes of an outline is executed and the interpolated portions of the outline are displayed on each of the unit areas having the designated vertexes every time when one vertex is designated, the operator can easily recognize the specified part of the outline out of the overall outline and efficiently designate the rest of the vertexes of the outline. Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation. The scope of the present invention should be limited only by the terms of the appended claims.

Claims: A method of producing, in a computer system, cutout mask data representing a cutout mask which is employed for extracting or eliminating a cutout area from an original image stored in a digital image memory (4), said method comprising the computer processing steps of: (a) preparing an original image, (b) compressing said original image to obtain a compressed image (I 0 ), (c) displaying said compressed image on a display means (8), (d) enabling the user to designate positions of a plurality of unit areas (R 1 , R 2 , ...) each of which has a prescribed shape on said compressed image one after another, (e) finding a plurality of areas on said original image corresponding to said plurality of unit areas (R 1 , R 2 , ...) on said compressed image, (f) reading out unit area images (IR 1 , IR 2 , ...) of said plurality of areas from said original image without compressing said original image, characterized by (g) displaying some or all of said plurality of unit area images (IR 1 , IR 2 , ...) whose positions were sequentially designated at said step (d) simultaneously on said display means in an order of positioning of the unit areas corresponding 0 a sequence of a designation at said step (d), (h) enabling the user to designate a plurality of points (P 1 , P 2 , ...) on an outline of said cutout area one after another on said unit area images (IR 1 , IR 2 , ...) displayed on said display means (8), (i) processing said plurality of points (P 1 , P 2 , ...) for serially connecting them by segments (L 12 , ... L 111 ) interpolated between said plurality of points (P 1 , P 2 ,...) and forming a closed loop (L c ), and (j) obtaining, as the inside area surrounded by said closed loop (L c ), said cutout mask data defining said cutout area outlined by said closed loop. A method in accordance with claim 1, wherein said step (h) comprises the step of: (h-1) displaying said plurality of points (P 1 , P 2 , ...) designated one after the other with a prescribed mark (X) in said unit area images (IR 1 , IR 2 , ...) on said display means (8), previously designated points remaining displayed when a subsequent one is designated and displayed. A method in accordance with claim 2, wherein said connecting at said step (i) is executed every time when a point of said plurality of points (P 1 , P 2 , ...) except a foremost point is designated at said step (h), and said segments (L 12 , ... L 111 ) formed thereby are displayed in said unit area images (IR 1 , IR 2 , ...) on said display means. A method in accordance with claim 3, wherein said segments are displayed in each of said unit area images (IR 1 , IR 2 , ...) which include at least a part of said segments. A method in accordance with claim 4, wherein said segments (L 12 , ... L 111 ) are straight lines. A method in accordance with claim 5, wherein said original image is a color image having a plurality of color components, and said unit area images (IR 1 , IR 2 , ...) are obtained for at least one of said plurality of color components. A method in accordance with claim 6, wherein said compressed image (I 0 ) is displayed together with said unit area images (IR 1 , IR 2 , ...) on said display means (8). A method in accordance with claim 7, wherein said plurality of points (P 1 , P 2 , ...) and said segments (L 12 , ... L 111 ) are displayed in said compressed image (I 0 ) on said display means. A method in accordance with claim 8, wherein said unit area images (IR 1 , IR 2 , ...) are displayed at the same resolution as said original image. A method in accordance with claim 8, wherein said step (f) comprises the step of: (f-1) expanding said read out unit area images (IR 1 , IR 2 , ...) by a prescribed expansion factor. An apparatus for producing, in a computer system, cutout mask data representing a cutout mask which is employed for extracting or eliminating a cutout area from an original image stored in a digital image memory (4), said apparatus comprising: (a) means (10) for compressing said original image to obtain a compressed image (I 0 ) (b) display means (8) for displaying said image, (c) means for enabling the user to designate positions of a plurality of unit areas (R 1 , R 2 , ...) each of which has a prescribed shape on said compressed image (I 0 ), (d) means for finding a plurality of areas on said original image corresponding to said plurality of unit areas (R 1 , R 2 , ...) on said compressed image (I 0 ), (e) means for reading out unit area images (IR 1 , IR 2 , ...) of said plurality of areas from said original image without compressing said original image, characterized by (f) means for transmitting some or all of said plurality of unit area images whose positions were sequentially designated at step (c) to said display means (8) in an order corresponding to a sequence of designation at step (c), (g) means for enabling the user to designate a plurality of points (P 1 , P 2 , ...) on an outline of said cutout area on said unit area images (IR 1 , IR 2 , ...), (h) means for processing said plurality of points for serially connecting them by segments (L 12 , ... L 111 ) interpolated between said plurality of points (P 1 , P 2 , ...) and forming a closed loop (L c ), and (i) means for obtaining, as the inside area surrounded by said closed loop (L c ), said cutout mask data defining said cutout area outlined by said closed loop.

Inventors: OHSAWA IKUO, USUMOTO HIROAKI, OHSAWA, IKUO, USUMOTO, HIROAKI, OHSAWA, IKUO, DAINIPPON SCREEN MFG. CO., LTD., USUMOTO, HIROAKI, DAINIPPON SCREEN MFG. CO., LTD.
Applicants: DAINIPPON SCREEN MFG, DAINIPPON SCREEN MFG. CO., LTD.
Application year: 1989
Main classification: G06T11
IPC codes: G06T11, G03F1