Image processing apparatus

Abstract: In an image processing apparatus, when a hard copy of image data displayed on a display with reduced gradation and non-image data displayed on the display is simultaneously produce the image data are automatically printed as data having the original high gradation with the non-image data. When a hard copy of image data and non-image data displayed on a bit-map display having a low gradation is produced, the image data having high gradation is printed by a full-color printer by reading original-image data having the high gradation from a hard disk and synthesizing the read data with the non-image data in an image memory by a printer control unit according to image control information stored in an image control table.

Description: This invention relates to an image processing apparatus, and more particularly, to an image processing apparatus which includes a printer unit capable of providing, for example, a full-color output. Heretofore, when a hard copy of the picture surface of an engineering work station (hereinafter termed an EWS) is output from a printer, the display color of the printer has been limited by the number of display gradations (the number of planes) on a bit-map display (hereinafter termed a display device) of the EWS. A case will now be considered wherein the printer has a full-color (8 bits for each of R (red), G (green) and B (blue) signals) output function, and the number of display gradations of the display device is 8 bits (256 gradations). The EWS usually includes a multiwindow system, and various kinds of applications are simultaneously displayed in the form of a plurality of windows on the picture surface. In such an EWS, even if an application logically has a function of displaying a full-color image, it is impossible to display an image with the original number of gradations due to a limitation of the hardware of the EWS display device. Hence, the image is displayed as a window on the display device after performing depth reduction of the original image so that the number of gradations is equal to or less than 256 using a depth reduction method, such as a dither method or the like. If a hard copy of the picture surface is subsequently output from the printer, the portion of the window which must have originally been subjected to full-color display is output with being bit-compressed. If it is desired to print an image with an original number of gradations, that is, as a full-color image, the full-color image must be printed separately from the hard copy of the picture surface. Alternatively, the image must be output with the number of gradations of the EWS in the form of the hard copy of the picture surface together with applications other than the image displayed on the display device. In the above-described conventional approach, however, in order to obtain a hard copy of an image with an original number of gradations of the image while preserving both the window of the image displayed in a compressed form and windows of applications other than the full-color image, it is necessary to temporarily receive hard-copy data of the picture surface and data of the full-color image in buffer regions and explicitly synthesize these data. This is a complicated operation for the operator. It is an object of the present invention to provide an image processing apparatus and method which can receive an original image represented by fine gradations, synthesize the image with other images represented by coarse gradations, and output the synthesized image. According to a first aspect, the present invention provides an image processing apparatus for use with bit map display means for displaying a stored image, and print means for printing the stored image data, the apparatus comprising storage means for storing image data, characterised by: judging means for judging whether or not the colour-gradation of the stored image data of an image to be displayed on a portion of said display means is greater than the colour-gradation with which said display means is capable of displaying; display control means responsive to said judging means, for (i) compressing the colour-gradation of the stored image data and displaying the compressed image data if said judging means judges that the colour- gradation of the image data is greater than that with which said display means is capable of displaying; and (ii) displaying the stored image data if said judging means (2, S45) determines that the colour-gradation of the stored image data is less than that with which said display means is capable of displaying; and print control means for controlling displayed image data for printing so as (i) to replace compressed image data which is displayed with corresponding uncompressed image data which is stored in said storage means; (ii) to synthesise the replaced image data with uncompressed image data which is displayed; and (iii) to simultaneously print the synthesised data. According to a second aspect, the present invention provides an image processing method using a bit map display for displaying image data, storage means for storing image data and print means for printing image data, characterised by the steps of: judging whether or not the colour-gradation of the stored image data of an image to be displayed on a portion of said display means is greater than the colour-gradation with which said display means is capable of displaying; compressing the colour-gradation of the stored image data and displaying the compressed image data if said judging step judges that the colour-gradation of the image data is greater than that with which said display means is capable of displaying; displaying the stored image data if said judging step judges that the colour gradation of the stored image data is less than that with which said display means is capable of displaying; and controlling the displayed image data for printing so as (i) to replace compressed image data which is displayed with corresponding uncompressed image data which is stored in said storage means; (ii) to synthesise the replaced image data with uncompressed image data which is displayed; and (iii) to simultaneously print the synthesised data. Embodiments of the present invention will now be described with reference to the accompanying drawings in which: FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to the preferred embodiment of the present invention; FIG. 2 is a diagram showing the relationship among respective processes of image control; FIG. 3 is a flowchart showing an outline of image control processes; FIG. 4 is a flowchart showing image display request processing; FIG. 5 is a flowchart showing print request processing; FIG. 6 is a diagram showing the structure of an image control table; FIG. 7 is a diagram showing an example of display of the picture surface of image windows corresponding to information set in the image control table shown in FIG. 6; and FIG. 8 is a diagram showing an image-file format. FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to the preferred embodiment of the present invention. In FIG. 1, a main storage unit (memory) 1 stores user programs, control programs and window programs for processing shown in FIGS. 2 - 5, and other data. A central processing unit ( hereinafter termed a CPU) 2 executes processes stored in the storage unit 1, and processes data of the main storage unit 1 or other units. A hard disk device 3, serving as an external storage unit, stores processing programs and other data (image data and data other than the image data). A bit-map display 4 displays the image data and the data other than the image data. A display control unit 5 includes a bit-map memory, and displays the contents of the bit-map memory on the bit-map display 4. A printer control unit 6 controls printing of the image data and the other data by a full-color printer 8. An image memory 7 holds images to be printed by the full-color printer 8. FIG. 2 shows the relationship among processes to be executed by the image processing apparatus of the present embodiment. As shown in FIG. 2, the CPU 2 executes a client process 21 to start a control program and output requests of image display and printing, a process 22 to perform image display control, and a window process 23 for displaying multiple windows on the bit-map display (hereinafter termed the display device) 4. When outputting an image to the full-color printer (hereinafter termed the printer) 8, data are transferred to the image memory 7 for storing images to be printed, a request of printing is then issued to the printer control unit 6, and the stored image data are output. When displaying an image on the display device 4, a request of display is issued in the window process 23 to perform display. For the window process used in the present embodiment, a window system realized in the form of processes, such as the X window system developed by the Massachusetts Institute of Technology, is considered. However, a window system incorporated in an operating system may also be used. The operation of image control processes in the present embodiment will now be explained with reference to flowcharts shown in FIGS. 3 - 5. Referring to FIG. 3, when the image control process 22 has been started by the CPU 2, first, in step S31, an image control table 40,shown in FIG. 6, formed in the main storage unit 1, is initialized. Each set of entries of the image control table 40 comprises an entry number 41, a window identifier 42, coordinates 43 of a start point of display on the display device 4, the size 44 of a window, the file name 45 of an original image, and the number 46 of gradations. Subsequently, in step S32, a request issued from the client process 21 is received. In step S33, processing is performed in accordance with the kind of the received request. In step S34, the CPU 2 determines whether processing of the control process 22 is to be continued as in a state of waiting a requested event, or the control process 22 is to be terminated. In the case of continuing processing, the process returns again to step S32, where a requested event is awaited. In the case of terminating the control process, processing is terminated. Although, in the present embodiment, a request of display and a request of printing are provided as the kinds of requests, any other requests may be provided. Next, a case will be considered wherein the request issued in the client process 21 is a request of image display for the display device 4. It is assumed that the request of display assigns the file name of image data and a start point of display. In such a case, the detail of request processing to be executed in step S33 is shown in FIG. 4. First, in step S41, the CPU 2 confirms that the requested event is a request of display, and the process proceeds to step S42, where original-image data are read from the hard disk device 3 according to the file name of image data contained in the request of display. It is assumed that the original-image data are stored in the hard disk device 3, for example, in the form of a format shown in FIG. 8. In step S43, the depth (= n, the number of gradations of the image being the n-th power of 2) of image bits read from the data file is checked. In step S44, the number of display bits is checked. The maximum number of display bits equals the number (D max ) of bits corresponding to the maximum number of colors which can be displayed in the window system. In general, however, a plurality of images are displayed, or other applications are running on the same picture surface. Hence, color resources (a color map) having D max bits are not allocated only to display of one image. Accordingly, if the number of bits to be actually displayed is repesented by d, the relationship d ≦ D max holds. The maximum number D max can be obtained by asking the window process 23 shown in FIG. 2. The number d of bits to be actually displayed may be obtained by asking the control process 22 shown in FIG. 2. A well-known method may be used for a control mechanism of the control process 22 needed for controlling the number d of bits. In step S45, the number of display bits is compared with the number of bits of the original-image data. If the number of bits of the image data is equal to or greater than the number of display bits, the image data are compressed in step S46. For example, if it is assumed that the original-image data comprise 8 bits for R, G and B signals, respectively, and the number of gradations of the bit-map display is 256 (8 bits), the image is compressed into 64 gradations (6 bits), 128 gradations (7 bits), or the like. A color dither method, a Peano mapping method and the like are known as depth reduction methods. In the present embodiment, depth reduction is performed using a well-known method, and an explanation thereof will be omitted. In step S47, a request of display using compressed image data is issued to the window process 23 to perform display on the display device 4. In the present embodiment, identifiers are provided to all windows according to the image control table 40 shown in FIG. 6 to perform control. Hence, when window diplay is performed, the window process 23 answers the corresponding window identifier to the control-program. In step S48, the above-described window identifier, the file name of the image, and the number of gradations of the original image are registered in the image control table 40 shown in FIG. 6, and the process returns to step S33. FIG. 7 shows an example of the picture surface of the display device 4 which displays corresponding three image windows when three kinds of window information are set in the image control table 40, as shown in FIG. 6, according to the above-described processes. In FIG. 7, image windows 52 - 54 corresponding to entry numbers 1 - 3 of the event request step 41 shown in FIG. 6 are displayed on a picture frame 51 of the bit-map display, respectively. The image windows 52 - 54 have start points (x1, y1), (x2, y2) and (x3, y3) of image display on the picture frame 51 of the bit-map display, and sizes (w1, h1), (w2, h2) and (w3, h3), respectively. The values of entry numbers 41 represent hierarchy among windows, that is, a window having a larger entry number has higher hierarchy. Accordingly, when the image windows 52 and 53 overlap, part of the image window 52 having a smaller value is masked. If a display state of an image window is changed, an event is generated from the window process 23 to the control process 22. Hence, the value of the corresponding entry number 41 in the image control table 40 is rewritten. The rewriting operation is performed by the control process. In FIG. 7, a normal window 55 is displayed in addition to the image windows. Any numbers of image windows and normal windows may be present provided that the limit value for the window system is not exceeded. Next, a case will be considered wherein the request issued in the client process 21 is a request of printing for the printer 8. In such a case, the detail of request processing to be executed in step S33 is shown in FIG. 5. First, in step S51, the CPU 2 confirms that the requested event is a request of printing, and the process proceeds to step S52, where the picture frame of the display device 4 is dumped using a well-known hard copy method. Next, in step S53, window information is requested to the window process 23, and the image control table 40 is updated according to the obtained information. In step S54, image data of the file name 45 of the original image are read from the hard disk device 3 and written in an area defined by the coordinates 43 of the start point of display and the window size 44 corresponding to the window identifier 42 within the image control table 40 corresponding to dumped data of the image, and are directly synthesized with the dumped data of the image as noncompressed image data in a predetermined area of the main storage unit 1. At that time, the dumped data of the image are expanded and converted so as to comprise 8 bits for respective R, G and B signals. In step S55, the synthesized image data are transferred to the image memory 7. In step S56, a request of printing is issued to the printer control unit 6 to perform printing by the printer 8. As described above, according to the present embodiment, by providing processing for controlling a data file of an original image displayed on a bit-map display with being bit-compressed, the display position and size of an image window, the number of gradations of the original image, and the like, it is possible to simultaneously and automatically obtain a hard copy of the original image with number of gradations of the original image while simultaneously displaying the image window together with windows displaying applications other than the full-color image. Although, in the present embodiment, original-image data are assumed to comprise 8 bits for respective R, G and B signals, any other number of bits and any other color system (a CMY (cyan, magenta and yelllow) system or the like) may be adopted, and the original image may be a monochromatic image having gradations, such as a gray image. Although, in the present embodiment, an explanation has been provided of a case wherein the image control program is constituted by processes, the image control program may, for example, be built in a window system or an operating system. As explained above, according to the present invention, it is possible to receive an original image represented by fine gradations and synthesize the image with other images represented by coarse gradations. Hence, the present invention has the effect of releasing the operator from a complicated operation.

Claims: An image processing apparatus for use with bit map display means (4) for displaying a stored image, and print means (8) for printing the stored image data, the apparatus comprising storage means (1, 3, 7) for storing image data, characterised by: judging means (2, S45) for judging whether or not the colour-gradation of the stored image data of an image to be displayed on a portion of said display means is greater than the colour-gradation with which said display means is capable of displaying; display control means (5) responsive to said judging means (2, S45), for (i) compressing the colour-gradation of the stored image data and displaying the compressed image data if said judging means judges that the colour-gradation of the image data is greater than that with which said display means is capable of displaying; and (ii) displaying the stored image data if said judging means (2, S45) determines that the colour-gradation of the stored image data is less than that with which said display means is capable of displaying; and print control means (6) for controlling displayed image data for printing so as (i) to replace compressed image data which is displayed with corresponding uncompressed image data which is stored in said storage means; (ii) to synthesise the replaced image data with uncompressed image data which is displayed; and (iii) to simultaneously print the synthesised data. An image processing apparatus according to claim 1, wherein the colour-gradation with which said display means (4) is capable of displaying is determined by the colour-gradation of a currently displayed image. An image processing apparatus according to claim 1, comprising administration means (40) for administrating control information for controlling the display of said image data together with uncompressed image data displayed on said display means (4). An image processing apparatus according to claim 3, wherein the control information administrated by said administration means includes a position of display of said image data on said display means (4) and the size of the display. An image processing method using a bit map display (4) for displaying image data, storage means (1, 3, 7) for storing image data and print means (8) for printing image data, characterised by the steps of: judging whether or not the colour-gradation of the stored image data of an image to be displayed on a portion of said display means is greater than the colour-gradation with which said display means is capable of displaying; compressing the colour-gradation of the stored image data and displaying the compressed image data if said judging step judges that the colour-gradation of the image data is greater than that with which said display means is capable of displaying; displaying the stored image data if said judging step judges that the colour gradation of the stored image data is less than that with which said display means is capable of displaying; and controlling the displayed image data for printing so as (i) to replace compressed image data which is displayed with corresponding uncompressed image data which is stored in said storage means; (ii) to synthesise the replaced image data with uncompressed image data which is displayed; and (iii) to simultaneously print the synthesised data. An image processing method according to claim 5, wherein the colour-gradation with which said display means (4) is capable of displaying is determined by the colour-gradation of a currently displayed image. An image processing method according to claim 5, comprising the step of administrating control information for controlling the display of said image data together with uncompressed image data displayed on said display means (4). An image processing method according to claim 7, wherein the control information includes a position of display of said image data on said display means (4) and the size of the display.

Inventors: KAWAI TOMOAKI, OKAZAKI HIROSHI, YAMAMOTO HIROYUKI, KAWAI, TOMOAKI, OKAZAKI, HIROSHI, YAMAMOTO, HIROYUKI, Kawai, Tomoaki, c/o Canon Kabushiki Kaisha, Okazaki, Hiroshi, c/o Canon Kabushiki Kaisha, Yamamoto, Hiroyuki, c/o Canon Kabushiki Kaisha
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1992
Main classification: G06F3
IPC codes: G06F3, G06K15