Image processing apparatus and image communication apparatus

Abstract: An apparatus having the G4 method and the JPEG method allows for the selection of standard resolution (200dpi x 200 dpi) or precision resolution (400dpi x 400dpi) by using a resolution selection key of operation unit 26 in order to improve the operativity and extend the breadth of selection of image quality. For each selection of standard resolution or precision resolution, the resolution and code information for designating quantization table for use with JPEG are stored in RAM 16, with its memory area being backed up by a battery.

Description: The present invention relates to an image processing apparatus and an image communication apparatus, and more specifically to an image processing apparatus and an image communication apparatus having a plurality of compression methods in which image information is compressed by a designated compression method. The compression methods of image information include, in addition to an MMR method for use with G4 facsimile apparatus, a method defined by JPEG (hereinafter referred to as JPEG method), and this JPEG method has widely spread in recent years. The JPEG method involves converting color image data by a transformation into frequency space, and quantizing and encoding the coefficients obtained by conversion. Both the JPEG method and the MMR method allow for the designation of resolution. Since the total number of pixels generally decreases with lower resolution, the total quantity of compressed data also decreases, while at the same time image quality is degraded with lower density of pixels. Conversely, with higher resolution, the quantity of image data after compression increases, with the image quality being improved. However, the JPEG method involves a quantization table, in addition to the resolution, as the factor for determining the image quality. The employment of quantization table stressing high frequency components allows for the reproduction of fine variations in image with enhanced ability of reproducing high frequency components, resulting in improved image quality. Of course, the number of coefficients of high frequency components increases, and proportionally, the total quantity of image data after compression also increases. The use of a quantization table with high frequency components stressed has the same effect as if data were compressed at high resolutions. With the spread the JPEG method, a color facsimile apparatus has been devised in which transmission for color image information with the JPEG method is enabled by providing an encode/decode circuit of the JPEG method on a G4 facsimile apparatus. In one configuration, the apparatus allows for the selection of resolution with the MMR method by the use of a resolution selection key, but has a fixed quantization table when operating with the JPEG method. It should be noted that the resolution selection key is configured to be adapted to the MMR method, i.e., a transmission format of image data in G4 facsimile, but only allows for theselection from a plurality of fixed resolutions, such as 200dpi x 200dpi, 300dpi x 300dpi, and 400dpi x 400dpi (dpi: dots per inch, one inch = 2,54 cm). In the conventional configurations, no image quality adjusting ability by the selection of a quantization table when using the JPEG method has been utilized. It is proposed in Wallace G K: "The ISO/CCITT Standard for Continuous-Tone Image Compression" Communications Technology for the 1990's and Beyond, Dallas, Nov. 27-30, 1989, vol. 1, 27 November 1989, pages 564-568, XP000091157 Institute of Electrical and Electronics Engineers to provide a communications system for transmitting compressed image data in which data is encoded in a manner defined by a quantization matrix and Huffman tables. An encoder is provided with a default matrix and table and may additionally encode data using custom matrices or tables. An object of the present invention is to provide an improved image processing apparatus. According to the present invention there is disclosed an apparatus for use in image processing and communication comprising image encoding means operable to encode image data and having means for selection of a plurality of kinds of encoding conditions and memory means for storing a plurality of pieces of information regarding said plurality of kinds of encoding conditions, characterised in that said memory means stores a plurality of sets of encoding conditions, each of the sets comprising a plurality of pieces of information respectively corresponding to each of said plurality of kinds of encoding conditions, and wherein the apparatus further comprises designating means for designating one of the sets to be used by said encoding means in encoding the image data. A corresponding method is set out in claim 9. Other objects and features of the present invention will be apparent from the ensuing description of embodiments and the accompanying drawings. Fig. 1 is a schematic configurational block diagram of this embodiment. Fig. 2 is a view illustrating an operation panel face of an operation unit 26 in this embodiment. Fig. 3 is a structural diagram of a quantization table stored in a memory 24. Fig. 4 is a structural diagram of a resolution selection key management table. Fig. 5 is a flowchart of a register method for resolution selection key management table. Fig. 6 is a flowchart of the operation of image transmission. Fig. 7 is a view illustrating an operation panel face of an operation unit 26 in another embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The preferred embodiments of the invention will be now described with reference to the drawings. Fig. 1 is a schematic configurational block diagram illustrating an embodiment of a color facsimile apparatus to which the present invention is applied. 10 is a control circuit for controlling the whole, comprised of a CPU 12, a ROM 14 for storing programs for the CPU 12 and other constants, and a RAM 16 for use as storage area of a variety of variables. A part of the RAM 16, which is always backed up by a battery, is used to store a resolution selection key management table as will be described later. Such resolution selection key management table may be stored in an EPROM. 18 is an image reader for reading a color original for the output of a color image signal composed of R, G, and B, for example. 20 is an MMR encoding circuit for encoding monochrome data converted from the color image signal read by the image reader 18, and 22 is a color encoding circuit for color encoding the image read by the image reader 18 with reference to a quantization table 24 stored in a memory (ROM) 24, by JPEG method, i.e., after converting the color image signal into signals of brightness Y and chrominance U, V. The structure of the quantization table stored in the memory 24 will be described later. The present invention is not limited to the JPEG method, but is also applicable to any of compression methods which reduce the redundancy by quantization. 26 is an operation unit on which the user can input various commands to the control circuit 10, and 28 is a communication control circuit, connecting to a communication line, for effecting calling connection and disconnection, and image transmission. 30 is an MMR decoding circuit for decoding MMR encoded image information as received, and 32 is a color decoding circuit for decoding JPEG encoded image information as received. With the JPEG method, the quantization table used for encoding is transmitted along with encoded image information, which is then decoded in the receiver side using the quantization table received. The quantization table received from the partner is stored in a memory (RAM) 34. 36 is a printer for printing image decoded by the decoding circuits 30, 32, whether color print or monochrome print. The control circuit 10, MMR encoding circuit 20, color encoding circuit 22, operation unit 26, communication control circuit 28, MMR decoding circuit 30 and color decoding circuit 32 are interconnected with each other via a bus 38 or connected to necessary partners. Fig. 2 illustrates an example of an operation panel face for the operation unit 26. 40 is a G4/color selection key for selecting either G4 transmission or color transmission, wherein a light emitting diode (LED) 40a which lights on at the selection of G4 transmission and an LED 40b which lights on at the selection of color transmission are alternately turned on to select the transmission mode, every time such key is depressed. 42 is a resolution selection key for selecting either one of two resolutions, i.e., standard (200dpi x 200dpi) and precision (400dpi x 400dpi), this key being associated with an LED 42a which lights on at the selection of standard resolution and an LED 42b which lights on at the selection of precise resolution. 44 is a function key useful in registering a resolution selection key management table, and 46 is a ten key keypad for use in inputting dialled numbers when calling or in registration of the resolution selection key management table. 48 is a start key for instructing the start of communication, 50 is a stop key for instructing the stop or interruption of communication, and 52 is a liquid crystal display for displaying input keys or various messages. Fig. 3 illustrates the structure of a quantization table information stored in the memory 24 as shown in Fig. 1. In this embodiment, quantization tables #1 to #8 consisting of eight levels with respect to high frequency components are stored in the memory 24. Table #1 has less weighted high frequency components but the highest compression ratio, and table #8 has much weighted high frequency components. Each table consists of a quantization table for Y (brightness) and a quantization table for U, V (chrominance) in color space. Fig. 4 illustrates the format of a resolution selection key management table stored in the memory 16. The resolution selection key management table has preregistered therein data indicating which of the quantization tables #1 to #8 as shown in Fig. 4 is to be employed as selected by the resolution selection key 42 and within the receiving capacity of the apparatus of destination. The resolution selection key management table is comprised of eight bytes. Bytes #0, #2, #4, #6 register a code for designating the resolution (herein, "0" for 200dpi x 200dpi and "1" for 400dpi x 400dpi), and bytes #1, #3, #5, #7 register a code for designating the quantization table to be selected. Bytes #0 to #3 register a code for the selection of standard resolution with the resolution selection key 42, and bytes #4 to #7 register a code for the selection of precise resolution with the resolution selection key 42. The way of using the resolution selection key management table will be described below. Byte #0 has a registration of a resolution first inquired of the receiver when the standard resolution is selected by the resolution selection key 42. The embodiment as shown in Fig. 4 is set to ask the receiver side to have 400dpi x 400dpi (code "1") from the first time so as to make the most effective use of high resolution of G4 facsimile. Byte #1 has a registration of any of the table #1 to #8 indicating the designation number of quantization table corresponding to the resolution set at byte #0 (Fig. 3). In an example of Fig. 4, information specifying a quantization table #1 of Fig. 3 is registered. Byte #2 has a registration of a resolution (i.e., 200dpi x 200dpi (code "0")) which can be always sent with G4 for the selection of standard resolution by the resolution selection key 42, and byte #3 has a registration of the designation number of quantization table corresponding to the resolution set at byte #2 (Fig. 3). Byte #3 of Fig. 4 has a registration of code "2" designating the quantization table #2 of Fig. 3. Byte #4 has a registration of a resolution to be first inquired of the receiver when the precise resolution is selected by the resolution selection key 42. The embodiment as shown in Fig. 4 is set to ask the receiver side to have 400dpi x 400dpi (code "1") from the first time so as to make the most effective use of high resolution of G4 facsimile. Byte #5 has a registration of the designation number of quantization table corresponding to the resolution set at byte #4 (Fig. 3). In the example of Fig. 4, the quantization table #5 of Fig. 3 is specified. Byte #6 has a registration of a resolution (i.e., 200dpi x 200dpi (code "0")) which can be always sent with G4 when the standard resolution is selected by the resolution selection key 42, and byte #7 has a registration of the designation number of quantization table corresponding to the resolution set at byte #6 (Fig. 3). In the example of Fig. 4, the quantization table #6 of Fig. 3 is specified. An exemplary procedure for registering desired codes to the bytes #0 to #7 of the resolution selection key management table as shown in Fig. 4 will be described below. Fig. 5 shows an operation flowchart for the control unit 10. A program shown by this operation flowchart is stored in the ROM 14. If the procedure starts, first, a code "0" indicating 200dpi x 200dpi is automatically registered in bytes #2, #6 of Fig. 4. Herein, it is necessary to set a resolution receivable by all the G4 facsimile. Such an initial setting is shown at step S1 of Fig. 5. The procedure waits for a key input (S2), and if it is not a function key 44 (S3), dial inputting is performed (S4). That is, the user inputs a telephone number by the use of ten key keypayd 46. If the key input is determined to be a function key 44 (S3), "F_= " is displayed on a liquid crystal display 52, and the procedure waits for a key input (S5). Herein, if the input key is "1" (S6), a register process for "Fl" or byte #0 is entered (S7). In the register process at S7, "F1=_" is displayed on the liquid crystal display 52, and the procedure waits for a key input, an input numeric value of one digit being displayed on the liquid crystal display 52 and registered in byte #0. After registration, the procedure returns to S2. If the key input at S5 is equal to "2", "3", "4", "5" or "6" (S10, S12, S14, S16), register process for byte #1, #3, #4, #5 or #7 is entered (S9, S11, S13, S15, S17), and an input value is registered in byte #1, #3, #4, #5 or #7. Of course, if a numeric value out of the input range in input, an error is displayed, and the register is rejected. It should be noted that the contents of table of Fig. 3 and the correspondence relation between the numeric value input into bytes #0, #2, #4, #6 and the resolution are described in a user manual for the apparatus or on the apparatus itself. In this way, necessary codes are registered in the resolution selection key management table as shown in Fig. 4. However, it is necessary to specify a resolution equal to or greater than that specified in byte #0 in at least byte #4 of the table of Fig. 4 to allow for the actual selection between standard resolution and precise resolution, and when the designated resolutions of both are equal, the quantization table designated in byte #5 must have more weighted high frequency components than that designated in byte #1. The same applies to bytes #2, #3 and bytes #6, #7, but since the resolutions designated in bytes #2, #6 are set to be equal by the initial setting (S1) of Fig. 5, the quantization table designated in byte #7 must have more weighted high frequency components than that designated in byte #3. Referring now to a flowchart of Fig. 6, the operation from the calling to the determination of encoding method, resolution and quantization table in the apparatus of this embodiment will be described below. Calling is made in accordance with the dial input, and the line is connected (S21). First, the paper size, resolution and encoding method within the ability of the receiver are confirmed (S22). This is included in, for example, a response RDCLP (Response Document Capability List Positive) in the document layer for the G4 facsimile protocol, but is not limitative to such G4 facsimile protocol, and may be other protocols. Herein, if G4 is selected by G4/color selection key 40 (S23), and the standard resolution is selected by resolution selection key 42 (S24), the flow transfers to S25, where an original is read at 200dpi x 200dpi and encoded by MMR encoding circuit 20 (S25) for the transmission. Or image data obtained by reading the original is processed into data of 200dpi x 200dpi. On the other hand, if G4 is selected by G4/color selection key 40 (S23), and precise resolution is selected by resolution selection key 42 (S24), and unless the receiver has sufficient receiving capacity at the precise resolution (400dpi x 400dpi) (S26), the flow transfers to S25, where an original is read at 200dpi x 200dpi and encoded by MMR encoding circuit 20 for the transmission (S25), as previously described. Also, if G4 is selected by G4/color selection key 40 (S23), precise resolution is selected by resolution selection key 42 (S24), and the receiver has sufficient receiving capacity at the precise resolution (400dpi x 400dpi) (S26), the flow transfers to S27, where an original is read at 400dpi x 400dpi and encoded by MMR encoding circuit 20 for the transmission (S27). On the other hand, if colour is selected by G4/color selection key 40 (S23), and unless the apparatus of destination has sufficient color receiving capacity (S28), the flow transfers to S24, where G4 transmission is designated, and an original is read at 200dpi x 200dpi or 400dpi x 400dpi depending on the designated resolution (S24) and the receiving capacity of apparatus of destination (S26), and encoded by MMR encoding circuit 20 for the transmission (S25, S27), as previously described. Also, if colour is selected by G4/color selection key 40 (S23), and the apparatus of destination has sufficient color receiving capacity (S28), the flow transfers to S29, where the resolution designated by resolution selection key 42 is investigated. If it is a standard resolution (S29), a comparison is made between the resolution registered in byte #0 for the resolution selection key management table (Fig. 4) and the resolution of the apparatus of destination. Then, if the apparatus of destination has sufficient receiving capacity (S30), as original is read at a resolution (400dpi x 400dpi) registered in byte #0 for the resolution selection key management table, and image data obtained by reading the original is encoded by color encoding circuit 22, in accordance with the JPEG method, using a quantization table with relatively high compression ratio registered in byte #1, and then transmitted. At S30, if the apparatus of destination is determined to have insufficient receiving capacity with respect to a resolution read from the resolution selection key table in accordance with the designation of standard resolution, and registered in byte #0 (S29, S30), an original is read at the resolution (200dpi x 200dpi) registered in byte #2 for the resolution selection key management table, and encoded by color encoding circuit 22 using a quantization table registered in byte #3 for the transmission (S32). Also, if precise resolution is selected by resolution selection key 42 (S29), a compariosn is made between the resolution (400dpi x 400dpi in Fig. 4) registered in byte #4 for the resolution selection key management table (Fig. 4) and the resolution of the apparatus of destination. Then, if the apparatus of destination has sufficient receiving capacity (S33), an original is read at a resolution registered in byte #4 for the resolution selection key management table, and encoded by color encoding circuit 22, in accordance with the JPEG method, using a quantization table registered in byte #5 and capable of reproducing image with relatively high image quality for the transmission (S34). Also, if the apparatus of destination has insufficient receiving capacity with the resolution registered in byte #4 and read in accordance with the designation of precise resolution (S29, S33), an original is read at a resolution (200dpi x 200dpi) registered in byte #6 for the resolution selection key management table, and encoded by color encoding circuit 22, using a quantization table registered in byte #7 for the transmission (S35). The embodiment having the MMR method and the JPEG method for the encoding has been described, but it will be appreciated that this embodiment may be applicable to image transmission apparatus utilizing other encoding methods. As above described, this embodiment makes it possible to change not only the resolution but also the quantization table for use with the JPEG method in color encoding by operating a switch 42 as shown in Fig. 2. Also, it is possible to change only the quantization table in color encoding, without changing the resolution. For this purpose, the switch 42 in the operation unit as shown in Fig. 2 may be displayed as "standard/high picture quality" as shown in Fig. 7. As will be easily understood from the above description, according to this embodiment, the image quality can be adjusted by the selection of quantization table with the resolution fixed. Since the quantization table can be selected substantially freely though the resolution can be only selected discretely, the selection range for the image can be extended. Also, since resolution selecting means is assignable with the resolution as well as the quantization table used, image information can be transmitted at a desired image quality with either of two encoding methods selected. The key operation in image transmission is simplified to provide improved operativity. According to this embodiment, it is possible to make encoding at a desired image quality under a plurality of encoding conditions such as, for example, resolution and quantization table, with simple selecting operation by designating means. Also, because the compatibility with the receiving capacity of the receiver is determined in predetermined priority, and the encoding is made under the encoding condition in higher priority as matched, image information can be encoded at as high an image quality as possible, resulting in the operation for image transmission being greatly simplified.

Claims: Apparatus for use in image processing and communication comprising image encoding means (22) operable to encode image data and having means (42) for selection of a plurality of kinds of encoding conditions and memory means (16) for storing a plurality of pieces of information regarding said plurality of kinds of encoding conditions, characterised in that said memory means stores a plurality of sets of encoding conditions, each of the sets comprising a plurality of pieces of information respectively corresponding to each of said plurality of kinds of encoding conditions, and wherein the apparatus further comprises designating means (42) for designating one of the sets to be used by said encoding means in encoding the image data. An apparatus according to claim 1, wherein said encoding means includes -converting means operable to transform the image data into frequency space, and quantization means (22) for quantizing the transformed image data. An apparatus according to claim 2, wherein said plurality of kinds of encoding conditions are a resolution of the image data and a quantization parameter determining the effect of the quantization process applied to the image data by the quantizing means. An apparatus according to any preceding claim, further comprising discrimination means (12) for making a comparison between the encoding condition stored in said memory means and the receiving capacity of a receiver to which encoded data is to be transmitted and wherein the designating means is operable to select pieces of information defining the encoding conditions in dependence upon the result of said comparison according to a predetermined priority. An apparatus according to any preceding claim, comprising means (44,46) for changing at least part of the information stored in said memory means. An apparatus according to any preceding claim, wherein said image data is color image data. An apparatus according to any preceding claim, wherein one of said plurality of kinds of encoding conditions is a quantization parameter for quantizing a high frequency component of said image data. An apparatus according to any preceding claim, further comprising: transmitting means (28) for transmitting the image data encoded by said encoding means via a communication line. A method of operating an apparatus for image processing and communication comprising encoding image data using encoding conditions selected from a plurality of kinds of encoding conditions and storing a plurality of pieces of information regarding said plurality of kinds of encoding conditions, characterised by storing a plurality of sets of encoding conditions, each of the sets comprising a plurality of pieces of information respectively corresponding to each of said plurality of kinds of encoding conditions, and designating one of the sets to be used by said encoding step in encoding the image data.

Inventors: MURAYAMA MASAHIRO, MURAYAMA, MASAHIRO
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1993
Main classification: H04N1
IPC codes: H04N1