Data processing method and apparatus therefor

Abstract: Image data is hierarchically coded by a coder, and the coded data is stored in a database. A decoder hierarchically decodes the coded data stored in the database and the image data corresponding to each hierarchy is generated. The decoder generates the image data of a plurality of levels of resolutions from a low resolution to high resolution from the coded data stored in the database. The image data of the high resolution is original image data. The edit operation such as enlargement, reduction, transfer, and rotation by an operator is executed by using the image data of the low resolution obtained from the decoder. The content of the edit processing by the operator is stored in a memory. When the edit operation ends, CPU executes the edit processing to the original image data obtained from the decoder based on the content of the edit processing stored in the memory. The final editing is thus performed on the original image data.

Description: BACKGROUND OF THE INVENTION The present invention relates to a data processing method and apparatus which edits image data thereof. A conventional data editing apparatus edits image data which is stored in a database. When the image data is edited using such data editing apparatus, the following method is used. First, the image data needed for editing a single or a plurality of pages is called from the database. The data can be designated by a file name or displayed images. Then, the image data read out of the database is shown on a display and an edit operation is performed. For example, when two images are synthesized and the synthesized image is edited, an editing image for performing an edit operation to each original image and synthesized image, and an entire image showing the entire synthesized image are simultaneously displayed. The edit processing such as enlargement, reduction, rotation, transfer, copy, and layout is performed during the image editing. However, in the prior art, display and edit operation are executed by using an original (a subject) image data as it is. Accordingly, as the size of the subject image becomes larger, it takes more time to process the data. Furthermore, it takes more time to process the data when a plurality of images are displayed at the same time. Thus, in the conventional data editing apparatus, enormous amount of time is required for data processing during edit operation, thus causing a problem. Furthermore, when a desired image to be edited is searched or transmitted from the data of the plurality of pages which is stored in the image database, all image data needs to be displayed or transmitted in order to grasp the entire image, thus resulting in time-consuming processing in search and transmission. In the light of the above problems, it is a concern of the present invention to provide a data processing method and apparatus capable of processing an image at high speed by using the image data of low resolution when -the image data is processed and displayed during the edit operation. European Patent Application No. EP-A-0,392,753 discloses a method of an apparatus for editing of progressively encoded images in which an operator initially views a display of a low-resolution version of an image to be edited. In accordance with a first aspect of the present invention, there is provided a data processing apparatus as set out in claim 1. In accordance with a second aspect of the present invention, there is provided a data processing method as set out in claim 12. In this application, "edit operation" is used as a general term for an image data processing such as enlargement, reduction, rotation, transfer, copy and a display for image data search and image data processing. In the above arrangement, image data having at least two levels of resolutions, for example, image data having a high resolution and image data having a low resolution, are stored in storage means. In editing means, since the image data having a low resolution is used, processing of the edit operation is performed at a high speed. The content of edit processing of the image data in this editing means is stored in storage means. Processing means executes the edit processing on the image data having a high resolution based on the content of the edit processing stored in the storage means. Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention. Fig. 1 is a block diagram illustrating a general construction of the data processing apparatus according to the present embodiment; Fig. 2 is a block diagram illustrating an example of the construction of the coder of the present embodiment; Fig. 3 is a block diagram illustrating an example of the construction of the decoder of the present embodiment; Fig. 4 shows an example of the edit processing of the present embodiment; Fig. 5 is a flowchart showing the procedure for reading an image of the data processing apparatus of the present embodiment; Fig. 6 is a flowchart showing the procedure for processing the image editing according to the data processing apparatus of the present embodiment; Fig. 7 is a flowchart showing the procedure for processing the image editing according to the data processing apparatus of the present embodiment; Fig. 8 shows an example of the screen during the edit operation in the data processing apparatus of the present embodiment; and Fig. 9 shows another example of the screen at the edit operation in the data processing apparatus of the present embodiment. DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will now be described in detail in accordance with the accompanying drawings. Fig. 1 is a block diagram illustrating a general construction of the data processing apparatus according to the present embodiment. In Fig. 1, numeral 1 is a controller (CPU) which performs an operational control over the data processing apparatus. Numeral 2 is a key-board which inputs characters, symbols, and various instructions for image editing. Numeral 2a is a mouse which designates a desired position on the display screen on a display 3. The display 3 displays an image to be edited, characters, and the like. Numeral 4 is a reader which reads an original image and inputs the image data. Numeral 5 is a database which stores information concerning the image data for the plurality of pages. Numerals 6, 7, 8 are frame memories which can respectively store the image data for at least one screen. In the present data processing, the image data outputted from a decoder 10 is stored in the frame memories 6 and 7 and the image data to be coded by a coder 9 is stored in the frame memory 8. The coder 9 codes the image data hierarchically. The decoder 10 decodes the image data which is hierarchically coded by the coder 9. The hierarchical coder and decoder are described later. Numeral 11 is a bus which connects the above-described units and enables the receive/transmit of the data between the units. Numeral 26 is a memory having an operational area for the CPU 1. The memory 26 is provided with the area for storing the image data where the edit processing is performed by the CPU 1 (an image data storage area 26b), the area for storing the content of the edit operation (a procedure storage area 26a), and the area for storing the procedure which operates the present apparatus. Furthermore, the memory 26 is comprised of RAM and ROM. Fig. 2 is a block diagram illustrating an example of the construction of the coder 9 which executes a hierarchical coding. Numerals 12, 14, 16 are frame memories which store the image data. Numeral 13 and 15 are reduction circuits and numeral 17, 18, 19 are coders. The subject image data outputted from either the reader 4 or the frame memory 8 is stored in the frame memory 12. The subject image data stored in the frame memory 12 is reduced to an image of 1/2 size in the vertical and lateral directions in a reduction circuit 13 and stored in the frame memory 14. As a reduction method, for example, a sub-sampling to a 1/n (n = 2 in this embodiment) in the vertical and lateral directions can be performed. Another reduction method is such that a filtering is performed by a low-pass filter, high-pass filter, or recursive filter, and sub-sampling can be performed after threshold processing is performed on a value obtained from the filtering. However, the methods are not limited to the above examples. The 1/2-size image data stored in the frame memory 14 is further reduced to the image of 1/2 size in the vertical and lateral directions in the reduction circuits 15 and stored in the frame memory 16. Accordingly, in the frame memory 16, the image which is a 1/4 size of the image stored in the frame memory 12 is stored. The coder 17 performs the entropy coding to the image data stored in the frame memory 16 and the coded data at a first stage is outputted via a signal line 101. In the coder 18, the image stored in the frame memory 14 is entropy-coded referring to the image stored in the frame memory 16 and the coded data of a second stage is outputted via a signal line 102. The coder 18 codes the data needed to obtained the image data which is reduced to 1/2 by making up the image data which is reduced to 1/4. In the coder 19, the entropy coding is performed on the image stored in the frame memory 12 referring to the image stored in the frame memory 14, and the coded data of a third stage is outputted via a signal line 103. That is, the data needed for obtaining the subject image data is coded by making up the image data which is reduced to 1/2. The hierarchically (resolution based) coded image data are stored in the database 5 in the order from the data having a lower resolution. In this embodiment, the entropy coding is used as a coding method, however, another coding method can be also used. Furthermore, not only the hierarchically coded image data can be accumulated in the database 5, but also the data can be transmitted to another system via a network. Accordingly, when the hierarchical coding is executed, the data amount of the coded data is reduced in comparison with the case where the image data of each resolution are respectively coded, resulting in effective use of the memory. Next, the method for hierarchical decoding for the hierarchically coded data is described. Fig. 3 is an example of the block diagram of the decoder 10 which performs a hierarchical decoding. Numeral 20, 21, 22 are decoders and numeral 23, 24, 25 are frame memories. Among the coded data (a signal which is hierarchically coded) which is coded and stored in the database 5, the coded data of the first stage is inputted to a decoder 20 by a signal line 201. The result which is decoded in the decoder 20 is stored in the frame memory 23 as the image data of the first stage and outputted from a signal line 301. The image data of the first stage is an image which is reduced to 1/4, and has a low resolution. When the reduced image to perform the edit processing is generated, the decoding processing ends at this stage where the image data of the first stage obtained from the signal line 301 is stored either in the frame memory 6 or 7. When an operator searches the database 5 for the subject image, the image data of the first stage is also used. When the subject image is generated by the decoder 10, the following processing is further performed. In the coded data (the signal which is hierarchically coded) which is read out of the database 5, the coded data of the second stage is inputted to the decoder 21 by the signal line 202. In the decoder 21, the coded data of the second stage is decoded referring to the image data of the first stage stored in the frame memory 23. The result of the decoding is stored in the frame memory 24 as the image data of the second stage and outputted from a signal line 302. The image data of the second stage is an image which is reduced to 1/2, and image data having an intermediate resolution. Furthermore, the coded data of a third stage (a high resolution) which is read out of the database 5 is inputted to the decoder 22 by the signal line 203. In the decoder 22, the coded data of the third stage is decoded referring to the image data of the second stage stored in the frame memory 24. The result is stored in the frame memory 25 as the image data of the third stage and outputted from a signal line 303. The image data stored in the frame memory 25 expresses the subject image before the coding. In the present embodiment, an operator performs the edit operation processing while looking at the display presenting the image data having a low resolution (that is, a reduced image data) which is read out of the frame memory 23. The procedure of the edit operation processing is stored in the procedure storage area 26a of the memory 26. After this processing ends, the CPU 1 executes an actual edit processing for the image data (that is, the subject image data) which is read out of the frame memory 25 in accordance with the procedure of the edit operation processing stored in the memory 26. As a reduced image data which is used for the edit processing, the hierarchical image of the first stage is used in the embodiment, however, the present invention does not impose the limitation upon this. Furthermore, the hierarchy of the image data has three stages. However, the processing is possible regardless of the number of stages. The procedure of the edit processing according to the data processing apparatus of the present embodiment having the above arrangement is described. As examples of the edit processing, the following processings are described: (1) An original image is read by the reader 4 and the image data is stored in the database 5; and (2) The image data for a plurality of pages (two pages in this embodiment) are read, desired portions are cut out from each page and synthesized together, and stored in the database. Fig. 4 shows the edit processing. The edit processing is to obtain a synthesized image 43 from subject images 41 and 42 which are read by the reader 4. Fig. 5 is a flowchart showing the procedure for reading the image of the present data processing apparatus. Figs. 6 and 7 are flowcharts showing the procedure for the processing of the image editing according to the data processing apparatus. Fig. 8 shows a display screen during the edit operation in the present data processing apparatus. First, the input processing of the image data is described referring to Fig. 5. At step S11, the subject image data is inputted from the reader 4 and stored in the image data storage area 26b. At step S12, a hierarchical coding is executed on the subject image data stored in the image data storage area 26b by the coder 9. At step S13, by the above procedure, in the data coded hierarchically, the coded data are sequentially stored in the database 5 in order from the coded data having the low resolution, and a name of the data and the information indicative of a resolution. Names of the data can be inputted by a user through the key-board 2 and the resolution is automatically added by the CPU 1. In the edit operation, the operator searches for the images (the subject images 41 and 42) for two pages to be synthesized from the plurality of the images stored in the database 5, and the synthesizing operation is performed while monitoring the display 3. The procedure for processing in the edit operation is described referring to Figs. 6 and 7. At steps S21 - S26 (Fig. 6), the search for images which are subjected to the editing is performed based on the input from the key-board 2. At step S21, the coded data of the first stage is read out of the database 5. At step S22, decoding to the first stage is executed by the decoder 10, and the generated image data having a low resolution is stored in the frame memory 6. At step S23, the image data having the low resolution which is stored in the frame memory 6 at step S22 is displayed on the display 3. At step S24, the user judges if the displayed image is a desired image for editing. If so, this image is selected and the process proceeds to step S25. While if not, this image is not selected and the process returns to step S21 where the above processing is repeated to the next image data. At step S25, the image data having the low resolution which is selected as an original image of the edit processing is stored in the image data storage area 26b of the memory 26. At step S26, if the search of the subject image in the edit operation has ended, the process proceeds to step S27 (Fig. 7) to start the edit operation. On the other hand, if the search has not ended, since the edit processing cannot be started, the process returns to step S21 where the above processing is repeated to the next image data. When the edit operation starts, an editing screen is shown on the display 3 at step S27. An example of the editing screen is shown in Fig. 8. In Fig. 8, numeral 51 indicates a display screen of the display 3. Numeral 52 is an original image display according to the image data of the low resolution of the original image 41, and numeral 53 is an original image display according to the image data of the low resolution of the original image 42. Numeral 54 is an editing image display 54 to perform the edit operation. Numeral 55 is an entire image display where the entire image of the editing image displayed on the editing image display 54, and which location in the entire image display 55 are shown. Referring to the entire image display 55, when the image for editing is enlarged in the edit operation, to which portion of the entire image the portion displayed on the editing image display 54 corresponds can be easily confirmed. Numeral 56 is a cursor which indicates a desired position on the display screen 51 and moved by the operation of a mouse 2a or cursor key on the key-board 2. At step S28, the CPU 1 performs the edit processing in accordance with the instruction from the key-board 2. In this case, the displayed original images 52 and 53 are referred, the cursor 56 is moved by the mouse 2a, each desired image is cut out and synthesized on the editing image display 54, and the processing such as enlargement, reduction, rotation, transfer, copy, and layout is performed. These are performed by well-known technique. At step S29, the processing content which is executed at step S28 is stored in the procedure storage area 26a. Furthermore, the image which is the result of editing is always displayed on the editing image display 54. Then, at step S30, whether or not the edit operation has ended is confirmed. If the operation has ended, the process proceeds to step S31. While if the operation has not ended, the process returns to step S28 where the above processing is repeated. At step S31, the coded data until the third stage of the image data used in the edit processing is read out from the database 5. The coded data is decoded by the decoder 10 at step S32 and the original image data is reproduced. The two original images 41 and 42 obtained from steps S31 and S32 are stored in the frame memories 6 and 7 respectively. The process proceeds to step S34 where the synthesized editing image is formed from the image data stored in the frame memories 6 and 7 based on the processing content of the edit operation stored in the procedure storage area 26a. At step S35, the image data is stored in the frame memory 8. At step S36, the image data stored in the frame memory 8 is hierarchically coded by the coder 9 and stored in the database 5 at step S37. As described above, the data processing apparatus of the present embodiment performs hierarchical coding on the image data of a single screen and stored in the database 5 so as to reproduce the image of the single screen at the plurality of resolutions. An image can be reproduced at the plurality of resolutions by hierarchically decoding the coded data stored in the database. Thus, a high-speed edit processing is enabled by using the image data of the low resolution when reference screens (original image displays 52, 53, and an entire image display 55), an editing image display 54, and an edit operation are processed. Furthermore, a high-speed image search can be performed by using the image of the low resolution. The original image can be reproduced by sequentially decoding the coded data of the other stage if necessary, thus resulting in improvement in efficiency in the edit processing. For the data used for the above image display, data of any resolution can be used, if processing speed, resolution of the display unit, or man-machine interface are considered. Furthermore, it can be arranged so as to select a resolution level of the data by the key-board 2. Furthermore, the method such that the data of low resolution is displayed at first and the data of high resolution is gradually displayed by using process idle time of the CPU 1 is possible. The edit processing from step S31 to step S35 is executed after the edit operation, however, this processing can be executed by using the free time of the CPU 1. In the above embodiment, as shown in Fig. 8, a plurality of display areas or windows are provided on the single screen, however, this does not impose the limitation upon the present invention, for a plurality of display screens can be provided and the images can be displayed on each display screen respectively. For example, Fig. 9 is another example of the editing screen of the image data and the original image is displayed on another display unit (not shown). Numeral 60 indicates a display screen shown on the display 3, numeral 61 is an image display to perform the edit operation, and numeral 62 is an entire image display showing the entire image for editing. In the entire image display 62, an area corresponding to the enlarged image displayed on the image display 61 is indicated by enclosing by a dotted line 62a. Thus, the image displayed on the image display 61 can be shown in the entire image display. When the image for editing is enlarged, the image display 61 cannot show the entire editing image. In this case, the position of the image displayed on the image display 61 in the entire image display 62 can be clearly recognized by the dotted line 62a. There are various methods to indicate the enlarged portion corresponding to the portion of the entire image. For example, it can be arranged so that: (1) color within the area enclosed by the dotted line 62a is different from that of the outside; or (2) background color or background pattern is different between the enclosed area and the outside area. Accordingly, the position relation can be easily recognized. In the edit operation, in order to simplify the operation, the portion to be enlarged can be designated on the entire image display 62 (e.g. as the dotted line 62a), and the selected portion is enlarged and displayed on the image display 61 for editing. Furthermore, in the above embodiment, the key-board is used as an input apparatus, however, this does not impose the limitation upon the invention, for it can be replaced by a pointing device or tablet. Still further, in the present embodiment, the processing is performed by using hierarchical coding of the image data and the coded data is stored in the database 5. However, this does not impose the limitation upon the invention. For example, the original image data and image data of the low resolution can be stored in the database 5 without coding. In this case, the coder 9 and decoder 10 are not necessary. Still further, the image data having different resolutions can be coded by a single coder respectively and stored in the database 5 without the hierarchical coding. Still further, in the above embodiment, the content of the edit processing which is executed on the image data of the low resolution image is stored in the procedure storage area 26a and the CPU 1 performs the edit processing on the image data of the high resolution in accordance with the content. However, this does not impose the limitation upon the invention. For example, the content of the edit processing which is executed by analyzing the image data of the entire image display 55 which is reflected by the editing result is obtained and the edit processing can be performed on the image data of the high resolution by using this content. As described above, according to the data editing method and apparatus of the present invention, high-speed image processing is enabled by using the image data of the low resolution in the image data processing and display in the edit operation. The present invention can be applied to a system constituted by a plurality of devices, or to an apparatus comprising a single device. Furthermore, it goes without saying that the invention is applicable also to a case where the object of the invention is attained by supplying a program to a system or apparatus.

Claims: A data processing apparatus for editing image data comprising: storage means (5, 6, 26) for storing at least image data having a low level of resolution and image data having a high level of resolution; display means (1, 3) for displaying a first image using the image data having low resolution; means (1) for generating an object image (54, 61) by magnifying an image extracted from the first image; control means (1) for causing said display means to display the object image (54, 61) together with the first image (55, 62); indicating means (S28) for indicating a desired edit process using the object image displayed by said display means, said control means being adapted to cause said display means to display the result of performing the indicated edit process on the object image and the first image; memory means (26a, S29) for storing information indicating the edit process indicated by said indicating means; and processing means (S31-S35) for editing the image data having high resolution in accordance with the information stored in said memory means. Apparatus according to claim 1, wherein the information stored in said memory means indicates the procedure of the edit process which was indicated by said indicating means. Apparatus according to claim 1 or claim 2, wherein said storage means stores original image data as the image data having high resolution and stores image data obtained by reducing the original image data as the image data having low resolution. Apparatus according to claim 1, wherein said storage means stores the image data as coded data of at least two levels of resolution, wherein the image data having low resolution is obtained by decoding the coded data corresponding to the lower resolution which is stored in said storage means, and wherein the image data having high resolution is obtained by decoding the coded data corresponding to the higher resolution which is stored in said storage means. Apparatus according to claim 1, wherein said storage means stores the image data by sequentially and hierarchically coding in order from the low resolution to the high resolution, wherein the image data having low resolution is obtained by decoding the coded data stored in said storage means, and wherein the image data having high resolution is obtained by decoding the coded data stored in said storage means. Apparatus according to any one of the preceding claims, wherein said processing means executes the edit processing by using the image data having high resolution stored in said storage means, based on the information stored in said memory means, during idle time of execution of the low resolution edit process or after completion of execution of the low resolution edit process. Apparatus according to any one of the preceding claims, wherein said display means is adapted to display a plurality of images by using the image data having low resolution. Apparatus according to any one of the preceding claims, further comprising search means (S21-525) for searching for the image data which is to be displayed by said display means as the first image, by using the image data having low resolution. Apparatus according to anyone of the preceding claims, wherein the object image is formed by extracting a portion of image from the first image and magnifying the extracted portion of image. Apparatus according to claim 9, further comprising portion indicating means (1, 62a) for indicating the portion of the first image which is to be extracted. Apparatus according to any one of the preceding claims, further comprising generation means for generating images corresponding to the first image and the object image by using the image data having the high level of resolution during process idle time at intervals of the execution of said indicating means, and changing means for causing said display means to display the images generated by said generation means instead of the first image and the object image which have previously been displayed. A data processing method for editing image data comprising: a storage step (S22, S32) of storing at least image data having a low level of resolution and image data having a high level of resolution; a first display step (527) of displaying a first image using the image data having low resolution; an obtaining step (S27) of obtaining an object image (54, 61) by magnifying an image extracted from the first image; a second display step (S27) of displaying the object image (54, 61) together with the first image (55, 62); an indicating step (528) of indicating a desired edit process using the object image displayed in said second display step, a third display step (S28) of displaying a result of performing the indicated edit process on the object image and the first image; a memory step (S29) of storing information indicating the edit process indicated in said indicating step; and processing step (S34, S35) of editing the image data having high resolution in accordance with the preformation stored in said memory step. A method according to claim 12, wherein the information stored in said memory step indicates an edit process procedure as indicated in said indicating step. A method according to claim 12 or claim 13, wherein said storage step stores original image data as the image data a having high resolution and stores image data obtained by reducing the original image data as the image having low resolution. A method according to claim 13, wherein said storage step stores the image data as coded data of at least two levels of resolution, wherein the image data having low resolution is obtained by decoding the coded data corresponding to the lower resolution which is stored in said storage step, and wherein the image data having high resolution is obtained by decoding the coded data corresponding to the higher resolution which is stored in said storage step. A method according to claim 14, wherein said storage step stores the image data by sequentially and hierarchically coding in order from the low resolution to the high resolution, wherein the image data having low resolution is obtained by decoding the coded data stored in said storage step, and wherein the image data having high resolution is obtained by decoding the coded data stored in said storage step.

Inventors: ISHIZAKI AKIRA, SAKASHITA YUKIHIKO, ISHIZAKI, AKIRA, SAKASHITA, YUKIHIKO, ISHIZAKI, AKIRA, C/O CANON KABUSHIKI KAISHA, Sakashita, Yukihiko, c/o Canon Kabushiki Kaisha
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1993
Main classification: G06T11
IPC codes: H04N1, G06T11, G06T1, G06T9