Image decoding apparatus with object area decoding means and shape decoding means

Abstract: An image decoding apparatus which receives an encoded signal and decodes the encoded signal to output a two-dimensional shape signal representing an area where pixels constituting an object exist, comprising: significant area decoding means for decoding the encoded signal to obtain a rectangular area which includes the area where the pixels constituting the object exist and outputting the obtained rectangular area as a significant area; shape decoding means for decoding the encoded signal to output a decoded block shape signal corresponding to respective blocks each comprising a plurality of pixels; and reverse blocking means for integrating the decoded block shape signals corresponding to the respective blocks to constitute the two-dimensional shape signal and outputting the two-dimensional shape signal as a decoded shape signal; wherein said shape decoding means extracts the minimum rectangular area containing the significant area from the block for each block, and outputs the decoded shape signal corresponding to the inside of the extracted minimum rectangular area.

Description: Field of Technology This invention relates to an image encoding apparatus. Prior Art The image encoding technology has a long history. There has been established excellent standard proposals such as ITU-T H.261, ITU-T H263, ISO MPEG1/2 and so on. Roughly speaking, the image encoding method has two approaches: an encoding method using the orthogonal transform and a prediction encoding method encoding the error of predicted values with the use of the prediction function. Although the encoding method using the orthogonal transform needs complicated calculation, when encoded signals of small bit numbers are obtained, it is possible to keep better picture quality than the prediction encoding method. The ordinary encoding method using orthogonal transform such as JPEG, MPEG and the like utilizes the DCT(Discrete Cosine Transform). Though it is known that DCT enables encoding by a small number of bits, it has own problems in that it needs high-precision multiplication, resulting in complicated calculation, and in that the reversible encoding is impossible. Accordingly, DCT calculation can not be used in the fields' in which the reversibility is required. As opposed to this, the prediction encoding method needs simple calculations and can do the reversible encoding. MMR(Modified Modified Read) used in facsimiles is famous as an image coding method having reversibility. MMR is used according to CCITT Rec.T6 "Facsimile Coding Schemes and Coding Control Functions for Group 4 Facsimile Apparatus". In this method, the difference value in the horizontal direction between the change points of pixel values on the immediately previous already-coded scanning line and the change points of pixel value on the not-yet-coded scanning line is variable-length encoded. MMMR(Modified MMR) which is a further improved MMR is used as the evaluation model for MPEG4 (ISO/IEC/JTC/SC29/WG11 N1277, July 1996). Incidentally, if image signals are separated into the objects and then the objects are processed as arbitrary shapes, image can be operated and synthesized, object by object, which leads to the effective signal-transmission. For applications which restrict bit number, by using such information, it is possible to selectively assign priority to important objects to transmit and record the same. However, the prior art technology has not taken into account the encoding of objects having arbitrary shapes. And the standardization of coding for image signals having arbitrary shapes has been proceeding in the ISO MPEG4. In MPEG4, the evaluation model called VM3.0 (printed in ISO/IEC/JTC1/SC29/WG11 N1277) is created, which is now a unique image encoding method that can encode image signals having arbitrary shapes. An image signal having arbitrary shapes ordinarily consists of the shape information indicating the shape of an object and the pixel value information (color information) representing pixel values within an object. Concerning the shape information, the two-valued shape information indicating whether each pixel is significant(on the inside of the shape) or insignificant(on the outside of the shape), or the transparency information indicating the ratio(how much the object occludes the background) of respective pixels which is used in synthesizing with other images. When the transparency has only two levels, 0% and 100%, the shape information is identical to the transparency information and thereby the arbitrary-shape-having image signal is represented by the two of the two-valued shape information and the pixel value information. Fig.53 is a drawing for explaining these information. The transparency information is an information representing how much ratio of each pixel is used for synthesis when a fish shown in figure 53(a) is synthesized with the other image. In figure 53(b), there is shown the value of transparency information in the horizontal scanning line indicated by a dotted line in the figure. The outside of the fish is perfectly transparent. Here, the transparency 0 is defined as being perfectly transparent for simplification. Hence, on the outside of the fish the transparency information has a value of 0, while on the inside of the fish it has a value of non-0. Fig.53(c) shows the transparency which is made two-valued as having two of 0 and non-0. In figure 53(c), the pixels having the non-0 transparency require encoding of the pixel value information, while the pixels having the 0 transparency do not need the pixel value information, so that the two-valued transparency information is very important to the pixel value information encoding. On the other hand, the component of the transparency information which can not be represented by two-valued information, as shown in figure 53(d), is multi-valued information which is called gray scale. The shape information represented by multi-valued information as described above can be treated by the waveform encoding similar as that for the pixel value information. While performing the image encoding, the intra-frame encoding based on the spacial correlation or the temporal correlation is separately used, both of the two are employed. In the inter-frame encoding, the motion in the close frames is detected, and the motion compensation is carried out for the detected motion. The motion vector is generally used for the motion compensation. In the above-mentioned VM3.0, the intra-frame encoding and the inter-frame encoding are adaptively switched each other block by block, and the motion compensation similar as in MPEG1/2 is carried out, whereby the efficiency of encoding is improved. As described above, when performing encoding to the image consisting of the shape information and the pixel value information, if the motion compensation encoding of a shape information is carried out using the motion vector of the pixel value information for the shape information to be used for the image synthesis, the efficiency of encoding is further improved than when the shape information is directly encoded. This is reported by ISO/IEC/JTC1/SC29/WG11 N1260 March 1996. Further, when the motion detection and motion compensation are executed, it is considered that it is efficient that the shape information is separated into the two-valued shape information component and the multi-valued information component, and the multi-valued information component as well as the pixel value information are subjected to the same waveform encoding together, which has been actually practiced. In the above-described prior art image encoding and the image decoding accompanying to this, there exist the following problems. Though MMR encoding is a representative one of the reversible(loss-less) encoding as described above, because of the reversibility, it is impossible to largely improve the compression rate by allowing the visually less-important picture-quality degradation. In addition, MMR is an intra-frame encoding method, and does not take into account the improvement of the compression rate by utilizing the inter-frame correlation. In MMR and MMMR which a modified version of MMR, only the difference between the change point of the current scanning line and the change point of the immediately previous scanning line is utilized, and the redundancy by the correlation as a straight line in the vertical direction is not sufficiently removed. Accordingly, the encoding efficiency is good when the change of the pixel value happens along the scanning line, but the encoding efficiency is bad when the change of the pixel value does not happen along the scanning line. MMR and MMMR also includes the horizontal encoding mode which does not utilize the correlation in the vertical direction at all in order to encode the pixels which can not be encoded as the difference of the change point of the immediately previous scanning line. This horizontal encoding mode has a room for further improving the efficiency with the use of the correlation in the vertical direction. Further, in the prior art MMR and MMMR, the hierarchical image reproduction by decoding part of bit stream is impossible. The other methods in which the hierarchical image reproduction is possible have no good encoding efficiency and have demerit of increasing the encoding bit number. Accordingly, there exists no encoding method which enables the effective hierarchical image reproduction. Further, when encoding the image consisting of shape information and image information by the motion compensation, the shape information is motion-compensated using the same motion vector as that for the image information in the prior art. However, similarly as that, if a sphere rotates, the figure drawn on the sphere moves, though the shape of the sphere does not change, the motion vector of the image information is not identical to that of the shape information. Therefore, in such a case no good encoding is carried out, which is a problem in the prior art encoding method. Furthermore, while in VM3.0, there is a method which tries to improve the encoding efficiency by adaptively switching the intra-frame encoding and the inter-frame encoding block by block as described, the judgment against intra-frame/inter-frame encoding is based on the pixel value information similarly as in the adaptive switching in MPEG1/2, so that it is difficult to appropriately and efficiently encode the shape information which is largely different from the pixel value information in its nature. DE-A-4136636 describes a DCT coding technique in which a video object is included in a rectangular area. In the light of the above-described respects, this invention is proposed and an object of this invention is to provide an image which can appropriately decode the above-mentioned encoded signal encoded effectively. Disclosure of Invention Thus, the present invention concerns an image decoding apparatus as defined in the appended claim. Brief description of the drawings Fig.22 is a block diagram showing the structure of an image encoding apparatus according to a first embodiment not forming part of this invention. Fig.23 is a block diagram showing the structure of an image encoding apparatus according to a 2nd embodiment not forming part of this invention. Fig.24 is a block diagram showing the structure of an image encoding apparatus according to a 3rd embodiment not forming part of this invention. Fig.25 is a block diagram showing the structure of an image decoding apparatus according to a 4th embodiment not forming part of this invention. Fig.26 is a block diagram showing the structure of an image encoding apparatus according to a 5th embodiment not forming part of this invention. Fig.27 is a block diagram showing the structure of an image encoding apparatus according to a 6th embodiment not forming part of this invention. Fig.28 is a block diagram showing how the number of motion vectors is selected in an image encoding apparatus according to a 23rd embodiment not forming part of this invention. Fig.29 is a block diagram showing the structure of an image encoding apparatus according to a 7th embodiment not forming part of this invention. Fig.44 is a block diagram showing the structure of an image encoding apparatus according to a 8th embodiment not forming part of this invention. Fig.45 is a drawing for explaining the operating principle of an image encoding apparatus according to a 8th embodiment not forming part of this invention. Fig.46 is a block diagram showing the structure of an image decoding apparatus according to a 9th embodiment of this invention. Fig.50 is a drawing showing a floppy disk as an example of recording media for a image encoding program and a image decoding program according to a 10th embodiment of this invention. Embodiment 1 An image encoding apparatus according to a first embodiment not forming part of this invention receives image signals consisting of at least one of either the shape information or the transparency information, and the pixel information, as input image signals, and encodes the image signals according to the mode suitable for respective image signals. Fig.22 is a block structure showing the structure of the image encoding apparatus according to the first embodiment. In the figure, 101 indicates the input image signal which consists of at least one of either the shape information or the transparency information, and the pixel information. 102 indicates the blocking unit which blocks the input image signal 101 and outputs the blocked shape signal 103, the blocked transparency signal 105 and the blocked pixel value signal 107. 110 indicates the shape encoding mode judgment unit, and 114 indicates the transparency encoding mode judgment unit, and 116 indicates the pixel value encoding mode judgment unit, which judges the respective encoding modes suitable for the shape signal 103, the transparency signal 105 and the pixel value signal 107, and outputs the shape encoding mode 111, the transparency encoding mode 115 and the pixel value encoding mode 119. 112 indicates the shape encoder, 116 indicates the transparency encoder and 120 indicates the pixel value encoder, all of which encode respective signals according to each judgment unit, and output the shape encoded signal 113, the transparency encoded signal 117 and the pixel value encoded signal 121, respectively. 122 indicates the mode encoder which collectively encodes all of the encoding modes 111, 115 and 119, and outputs the encoded mode signal 123. The operation of the above-constructed image encoding apparatus according to the first embodiment is explained. Initially, the input image signal 101 consisting of the shape information, the transparency information and the pixel value information is input to the image encoding apparatus according to the first embodiment. Here, the transparency information and the shape information are explained referring to Fig.53 used in the Prior Art section. The transparency information represents the ratio of each pixel to be synthesized when the image shown in Fig.53(a) is combined with another image, and basically is multi-valued information such as what is shown in Fig.53(d). The shape information is two-valued information such as what is shown in Fig.53(c), which is two-valued transparency information with 0 and non-0 indicating that the object "exists/non-exists". Note that when the transparency information has only two of the perfect transparency and the perfect opacity, the information can be represented only by the shape signal as described above and thereby the transparency information is not required. Accordingly, in this case, only the shape information and the pixel value information are encoded or decoded. The blocking unit 102 blocks the input image signal 101 by integrating a plurality of pixels based on the corresponding relation between the pixels of the shape information·transparency information and the pixel value information, and outputs the blocked shape signal 103, the blocked transparency signal 105 and the blocked pixel value signal 107. The shape signal 103 is output to the shape encoding mode judgment unit 110 and the shape encoder 112, and the transparency signal 105 is output to the transparency encoding mode judgment unit 114 and the transparency encoder 116, and the pixel value signal 107 is output to the pixel value encoding mode judgment unit 118 and the pixel value encoder 120. The shape encoding mode judgment unit 110, the transparency encoding mode judgment unit 114 and the pixel value encoding mode judgment unit 118 judge suitable encoding modes for the input shape signal 103 respectively, the transparency signal 105 and the pixel value signal 107 respectively, and output the shape encoding mode 111, the transparency encoding mode 115 and the pixel value encoding mode 119. Each encoding mode is output to each encoding mode unit, and to the mode encoding unit 122. The shape encoder 112, the transparency encoder 116 and the pixel value encoder 120 output the respective input signals according to each of the input encoding modes, and output the shape encoded signal 113, the encoded transparency signal 117 and the encoded pixel value signal 121. On the other hand, the mode encoder 122 collectively encodes all of the input encoding modes, and outputs the encoded mode signal 123. The shape encoded signal 113, the encoded transparency signal 117, the encoded pixel value signal 121 and the encoded mode signal 123 are the encoded outputs of the image encoding apparatus according to the 18th embodiment. As described above, the encoded outputs of the image encoding apparatus according to the first embodiment has the blocking unit 101 which blocks the input image signal and separates the input image signal into the shape signal, the transparency signal and the pixel value signal and outputs these signals, and the encoding mode judgment units 110, 114 and 118 which judge the respective encoding modes suitable for each signal, and the encoder 112, 116 and 120 which encode each signal according to each encoding mode, and the mode encoder 122 which collectively encodes all of the encoding modes, and thereby it is possible that the encoding is performed according to the mode suitable for each separated signal and all of the information related to the selected mode is collectively encoded. Since the shape information, the transparency information and the pixel value information often have mutual correlation, the same encoding mode is likely to be selected. Therefore, by performing the variable-length encoding wherein the codes given the same mode are to have the short code length, which results in the possible reduction of the bit number of the encoded signal. Embodiment 2 An image encoding apparatus according to a 2nd embodiment not forming part of this invention receives image signals consisting of at least one of either the shape information or the transparency information, and the pixel information, as input image signals, and encodes the image signals according to the respective modes suitable for each image signal. Fig.23 is a block structure showing the structure of the image encoding apparatus according to the 2nd embodiment. In the figure, the shape encoding mode judgment unit 110 judges the encoding mode suitable for the shape signal 103, and outputs the result of the judgment as the encoding mode to the shape encoder 112 and the mode encoder 122, and also to the transparency encoding mode judgment 130 and the pixel value encoding mode judgment unit 132. Thereafter, the transparency encoding mode judgment 130 carries out judgment, referring to the input shape encoding mode 111, and outputs the result of the judgment as the encoding mode to the transparency encoder 116 and the mode encoder 122, and also to the pixel value encoding mode judgment unit 132. The pixel value encoding mode judgment unit 132 carries out judgment, referring to the input shape encoding mode 111 and the transparency encoding mode 115. The operation of the image encoding apparatus according to the 2nd embodiment is similar to that of the first embodiment except the judgments of the respective mode judgment units, and similarly, outputs the shape encoded signal 111, the encoded transparency signal 117, the encoded pixel value signal 121 and the encoded mode signal 123. As described above, the image encoding apparatus according to the 2nd embodiment has the transparency encoding mode judgment unit 130 which judges the encoding mode of the transparency signal with reference to the shape encoding mode, and the pixel value encoding mode judgment unit 132 which judges the encoding mode of the pixel value signal with reference to both the shape encoding mode and the transparency encoding mode, and thereby the selected modes are likely to be the same. Accordingly, in the mode encoder 122 in which a shorter code is given in the case that the modes are the same, the efficiency of the variable-length encoding can improve more than in the first embodiment and can reduce the bit number of the encoded mode signal, which is the obtained result. Embodiment 3 An image encoding apparatus according to a 3rd embodiment improves the encoding efficiency of the encoded mode signal, similarly to that of the 2nd embodiment. Fig.24 is a block structure showing the structure of the image encoding apparatus according to the 3rd embodiment. In the figure, the pixel value encoding mode judgment unit 118 judges the encoding mode suitable for the pixel value signal 107, and outputs the result of the judgment as the encoding mode to the pixel value encoder 120 and the mode encoder 122, and also to the transparency encoding mode judgment 136 and the shape encoding mode judgment unit 138. Thereafter, the transparency encoding mode judgment 136 carries out judgment, referring to the input pixel value encoding mode 119, and outputs the result of the judgment as the encoding mode to the transparency encoder 116 and the mode encoder 122, and also to the shape encoding mode judgment unit 138. The shape encoding mode judgment unit 138 carries out judgment, referring to the input pixel value encoding mode 119 and the transparency encoding mode 115. The operation of the image encoding apparatus according to the 3rd embodiment is similar to that of the 1st embodiment except the judgments of the respective mode judgment units, and similarly, outputs the shape encoded signal 113, the encoded transparency signal 117, the encoded pixel value signal 121 and the encoded mode signal 123. As described above, the image encoding apparatus according to the 3rd embodiment has the transparency encoding mode judgment unit 136 which judges the encoding mode of the transparency signal with reference to the pixel value encoding mode, and the shape encoding mode judgment unit 138 which judges the encoding mode of the shape signal with reference to both the pixel value encoding mode and the transparency encoding mode, and thereby the selected modes are likely to be the same. Accordingly, in the mode encoder 122 in which shorter codes are given in the case that the modes are the same, the efficiency of the variable-length encoding can improve more than in the first embodiment and can reduce the bit number of the encoded mode signal, which is the obtained result. Embodiment 4 An image decoding apparatus according to a 4th embodiment not forming part of this invention appropriately encodes the encoded signal encoded by the image encoding apparatus according to the first embodiment. Fig.25 is a block structure showing the structure of the image decoding apparatus according to the 4th embodiment. In the figure, input signals 113, 117, 119 and 123 are the shape encoded signal 113, the encoded transparency signal 117, the encoded pixel value signal 119 and the encoded mode signal 123, respectively, all of which are output by the image encoding apparatus according to the first embodiment. 150 indicates the mode decoder which decodes the encoded mode signal 123, and outputs the shape encoding mode 151, the transparency encoding mode 153, and the pixel value encoding mode 155. 156 indicates the shape decoder, 158 indicates the transparency decoder and 160 indicates the pixel value decoder, which encode the shape encoded signal 113, the encoded transparency signal 117 and the encoded pixel value signal 119, respectively, according to the encoding modes input from the mode decoder 150, and output the decoded shape signal 157, the decoded transparency signal 159 and the decoded pixel value signal 161, respectively. 162 indicates the reverse blocking unit which receives and integrates the decoded shape signal 157, the decoded transparency signal 159 and the decoded pixel value signal 161, and outputs the decoded image signal 163. The operation of the above-constructed image decoding apparatus according to the 4th embodiment is described. The image decoding apparatus according to the 4th embodiment receives the shape encoded signal 113, the encoded transparency signal 117, the encoded pixel value signal 119 and the encoded mode signal 123, to be output into the shape decoder 156, the transparency decoder 158, the pixel value decoder 160 and the mode decoder 150, respectively. The mode decoder 150 decodes the encoded mode signal 123, and outputs the shape encoding mode 151, the transparency encoding mode 153, and the pixel value encoding mode 155 into the shape decoder 156, the transparency decoder 158 and the pixel value decoder 160, respectively. The shape decoder 156, the transparency decoder 158 and the pixel value decoder 160 decode the input encoded signals according to the input encoding mode respectively, and output the decoded shape signal 157, the decoded transparency signal 159 and the decoded pixel value signal 161 into the reverse blocking unit 162. The reverse blocking unit 162 integrates the input decoded signals and outputs the decoded image signal 163. As described above, the image decoding apparatus according to the 4th embodiment has the mode decoder 150, the shape decoder 156, the transparency decoder 158, the pixel value decoder 160 and the reverse blocking unit 162, and thereby appropriately decodes the encoded signal obtained by the image encoding apparatus according to the first embodiment, and performs the integration, and can obtain the decoded image signal 163. Note that, in the image decoding apparatus according to the 4th embodiment, although the encoded signal obtained by the image encoding apparatus according to the 18th embodiment, the encoded signals obtained by the image encoding apparatuses according to the 2nd and 3rd embodiments can be also appropriately decoded. Embodiment 5 An image encoding apparatus according to a 5th embodiment not forming part of this invention performs encoding of an input signal, switching the intra-/inter-frame encodings adaptable to the input signal. Fig.26 is a block structure showing the structure of the image encoding apparatus according to the 5th embodiment. In the figure, 178 indicates an intra-/inter-frame encoding judgment unit of the pixel encoding which judges the intra- or inter- for the encoding mode of the pixel value signal, and outputs the encoding mode 119 of the pixel value signal. 138 indicates the shape encoding mode judgment unit which corresponds to the shape encoding mode judgment unit in the 20th embodiment indicated by 138 in Fig.24. 170 and 176 indicate the switches which are switched according to the output of the judgment unit 178 and decide the encoding mode of the shape signal. 172 indicates the intra-/inter-frame encoding judgment unit which judges the intra- or inter- for the encoding mode of the shape signal, and outputs the encoding mode 173 of the shape signal. The other numerals are similar to those in Fig.22, and the description is similar to that of the first embodiment. A description is given of the above-constructed image encoding apparatus according to the 5th embodiment. Initially, the input image signal 101 is input to the image encoding apparatus according to the 5th embodiment, and then the blocking unit 102, similarly to the 18th embodiment, performs the blocking and the signal separation, and outputs the pixel value signal and the shape signal. When the separated pixel value signal 107 is input to the intra-/inter-frame encoding judgment unit of the pixel value encoding, the judgment unit 178 judges whether the encoding is performed by the intra-frame encoding or inter-frame encoding, and outputs the result of the judgment as the pixel value encoding mode indicating "intra" or "inter" to the pixel value encoder 120, the mode encoder 122 and the shape encoding mode judgment 138. In the shape encoding mode judgment unit 138, the switch 170 and 176 are switched according to the pixel value encoding mode 119. The switching is performed in such a manner that the judgment unit 178 does not receive the input when the pixel value encoding mode indicates "intra", while the judgment unit 178 receives the input when the pixel value encoding mode indicates "inter". Accordingly, when the pixel value encoding mode 119 indicates the intra-frame encoding, the shape judgment mode 111 indicating the intra-frame encoding is output from the judgment unit 138. On the other hand, when the pixel value encoding mode 119 indicates the inter-frame encoding, the intra-/inter-frame encoding judgment unit 172 judges whether the encoding of the particular shape signal is performed by the intra-frame encoding or the inter-frame encoding for the shape signal 105, and outputs the result of the judgment as the shape encoding mode 111. In either of the cases, the shape encoding mode 111 is output to the shape encoder 112 and the mode encoder 122. And, the operations of the pixel value encoder 120, the shape encoder 112 and the mode encoder 122 are similar to those of the first embodiment, all of which output respective encoded signals. As will be apparent from the above-described operation, in the image encoding apparatus according to the 5th embodiment, when the pixel value signal is intra-frame encoded, the shape signal is always intra-frame encoded. In general, since when the pixel values do not have agreement, the shapes do not have agreement, either, and therefore when the pixel value signal should be intra-frame encoded; that is, the pixel value signal has a small temporal correlation, even if the number of the encoding mode for encoding, the shape signal is restricted similarly to the 22nd embodiment, the encoding efficiency in encoding the shape signal is scarcely degraded. Also, there is the case that the pixel values to be synthesized will change though the shape signal in the synthesis is constant such as like a fixed picture(synthesized picture) and the like, and in this case, even if the inter-frame encoding is selected according to the pixel value signal, the inter-frame encoding for the shape signal is not always appropriate. In the image encoding apparatus according to the 22nd embodiment, when the inter-frame encoding is selected for the pixel value signal, which of the intra-/inter-frame encodings to be selected is judged and thereby it is also possible to select the intra-frame encoding for the shape signal, and therefore it is possible to prevent the encoding efficiency from seriously degrading due to the inappropriate inter-frame encoding for encoding the shape signal. Also, when at least either the shape signal or the pixel value signal is inter-frame encoded, a lot of additional information is required for the motion compensation and so on to be carried out in the inter-frame encoding. In the image encoding apparatus according to the 5th embodiment, there is no case that only the shape signal is inter-frame encoded, so that when the intra-frame encoding is selected for the pixel value signal, the bit number can be saved. Generally, the above-mentioned additional information has the smaller bit number than when the pixel value signal is intra-frame encoded, but if compared to the bit number required for intra-frame encoding the shape signal, the bit number is of an amount that can not be ignored and this has a big effect. As described above, the image encoding apparatus according to the 5th embodiment has the intra-/inter-frame encoding judgment unit 178 for the pixel value signal and the shape encoding mode judgment unit 138 containing the intra-/inter-frame encoding judgment unit 172 for the shape signal, and thereby the intra-frame encodes the encoding mode of the shape signal when the encoding mode of the pixel value signal is the intra-frame encoding, while judges and selects the encoding mode for the shape signal when the encoding mode of the pixel value signal is the inter-frame encoding, which causes the correlation between the encoding mode 119 for the pixel value signal and the encoding mode 111 for the shape signal to be higher and thereby realizes the reduction of the bit number of the encoded mode signal, and makes it possible that the bit number of the additional information for the motion compensation is reduced as a result of the prevention of the choice for carrying out inter-frame encoding. Embodiment 6 An image encoding apparatus according to a 6th embodiment not forming part of this invention performs the encoding of the input signal, switching the number of the motion vectors in encoding adapting to the input signal. Fig.27 is a block structure showing the structure of the image encoding apparatus according to the 6th embodiment. In the figure, 188 indicates the motion vector number judgment unit for encoding the pixel value, which judges what number of motion vectors should be and outputs the encoding mode 119 for the pixel value signal. 138 indicates the shape encoding mode judgment unit which corresponds to the shape encoding mode judgment unit according to the 20th embodiment indicated by 138 in Fig.24. 180 and 186 are switches which switch according to the output of the judgment unit 188 and determine the encoding mode for the shape signal. 182 indicates the motion vector number judgment unit for encoding the shape, which judges what number of motion vectors should be and outputs the encoding mode 183 for the shape signal according to the result of the judgment. The other encodings are similar to those in Fig.22, and the description is similar to that for the first embodiment. The description is given of the image encoding apparatus according to the 6th embodiment as constructed above. Initially, the image encoding apparatus according to the 6th embodiment receives the input image signal 101, and the blocking unit 102, similar to the first embodiment, performs the blocking and separation of the signal and outputs the pixel value signal and the shape signal. The motion vector number judgment unit 188 for encoding the pixel value receives the separated pixel value signal 107, and then judges the signal to be encoded for what number of the motion vectors for the pixel value signal 107 is, and then outputs the result of the judgment as the pixel value encoding mode 119 to the pixel value encoder 120, the mode encoder 122 and the shape encoding mode judgment 138. Fig.28 is a drawing for explaining the number of the motion vectors. Since the motion is complicated in the vicinity of the contour of an object, it is very difficult to sufficiently reduce the motion compensation error by employing one motion vector (MV) per block. In this case, it is known that it is desirable to divide the block, and then give the divided blocks to the motion vectors, and this changing of the number of the motion vectors adaptively according to the nature of the image improves the encoding efficiency. Accordingly, the image encoding apparatus according to the 6th embodiment adaptively switches the motion compensation with the use of one motion vector(MV1) per block as shown in the figure and the motion compensation with the use of a total of 4 pieces of motion vectors (MV1,MV2,MV3,MV4) which are given respectively to one of the divided blocks which the particular block is divided into. Therefore, the judgment unit 188 judge whether the number of the motion vectors is 1 piece or 4 pieces, and outputs "1" or "4" as the encoding mode for encoding the pixel value. In the shape encoding mode unit 138, the switches 180 and 186 are switched according to the pixel value encoding mode. The switching is performed so that the judgment unit 182 can't receive the input when the pixel value encoding mode indicates "1", while the judgment unit 182 can receive the input when the pixel value encoding mode indicates "4". Accordingly, when the pixel value encoding mode 119 is "1", the minimum number "1" of the motion vectors as the shape judgment mode 111 is output. On the other hand, when the pixel value encoding mode 119 indicates "4", the motion vector number judgment unit 182 judges whether the number of the motion vectors should be 1 piece or 4 pieces for the shape signal 105, and outputs the result of the judgment as the shape encoding mode 111. In either of the cases, the shape encoding mode 111 is output to the shape encoder 112 and the mode encoder 122. And, the operations of the pixel value encoder 120, the shape encoder 112 and the mode encoder 122 are similar to those of the first embodiment, and the respective encoded signals are output. As a result of the above-described operation, in the image encoding apparatus according to the 6th embodiment, when the pixel value signal is encoded using the minimum number of the motion vectors, the shape signal is always encoded using the minimum number of the motion vectors. As the number of the motion vectors is increased, the information required for encoding the motion vectors adversely becomes larger. In this case, by the reduction of the number of the motion vectors for encoding the shape signal, an increase of the load is prevented. As described above, the image encoding apparatus according to the 23rd embodiment has the motion vector number judgment unit 188 for encoding the pixel value and shape encoding mode judgment unit 138 containing the motion vector number judgment unit 182 for encoding the shape. Thereby when the encoding mode for the pixel value signal uses the minimum number of motion vectors the encoding mode for the shape signal uses the minimum number. And when the encoding mode for the pixel value signal uses a lot of motion vectors the encoding mode for the shape signal is judged and then selected. This causes the correlation between the encoding mode 119 for the pixel value signal and the encoding mode 111 for the shape signal and makes it possible that the bit number of the encoded mode signal is reduced, and which causes the prevention of the selection when the number of the motion vectors is increased and thereby makes it possible that the bit number is prevented from increasing due to the increase in the additional information. Embodiment 7 An image encoding apparatus according to a 7th embodiment not forming part of this invention performs encoding of the input signal, switching the changing and non-changing of the quantizing step adapting to the input signal. Fig.27 is a block structure showing the structure of the image encoding apparatus according to the 7th embodiment. In the figure, 198 indicates the quantizing step change/non-change judgment unit for encoding the pixel value which judges whether the quantizing step is performed or not for the encoding mode for the pixel value signal, and outputs the encoding mode 119 for the pixel value signal. 138 indicates the shape encoding mode judgment unit which corresponds to the shape encoding mode judgment unit according to the 3rd embodiment indicated by 138 in Fig.24. 190 and 196 indicate the switches which are switched according to the output of the judgment 198 and determine the encoding mode for the shape signal. 192 indicates the quantizing step change/non-change judgment unit for encoding the shape which judges whether or not the quantizing step is performed for the encoding mode for the shape signal, and outputs the encoding mode 113 for the shape signal depending on the result of the judgment. The other encodings are similar to those in Fig.22, and the description is similar to that for the first embodiment. The description is given of the image encoding apparatus according to the 7th embodiment as constructed above. Initially, the image encoding apparatus according to the 24th embodiment receives the input image signal 101, and the blocking unit 102, similar to the first embodiment, performs the blocking and separation of the signal and outputs the pixel value signal and the shape signal. The quantizing step change/non-change judgment unit 198 receives the separated pixel value signal 107, and then judges whether or not the quantizing step is performed for the pixel value signal 107, and then outputs the result of the judgment as the pixel value encoding mode 119 to the pixel value encoder 120, the mode encoder 122 and the shape encoding mode judgment 138. In the shape encoding mode unit 138, the switches 190 and 196 are switched according to the pixel value encoding mode. The switching is performed so that the judgment unit 192 can't receive the input when the pixel value encoding mode indicates "non-change", while the judgment unit 192 can receive the input when the pixel value encoding mode indicates "change". Accordingly, when the pixel value encoding mode 119 indicates that the quantizing step is not changed, the shape judgment mode 111 indicating "non-change" is output. On the other hand, when the pixel value encoding mode 119 indicates that the quantizing step is changed, the judgment unit 192 judges whether or not the quantizing step is performed for the shape signal 105, and outputs the result of the judgment as the shape encoding mode 111. In either of the cases, the shape encoding mode 111 is output to the shape encoder 112 and the mode encoder 122. And, the operations of the pixel value encoder 120, the shape encoder 112 and the mode encoder 122 are similar to those of the first embodiment, and the respective encoded signals are output. Since the value of the quantizing step is directly related to the compression rate, namely the transmission rate of encoded signals, generally, in order that the transmission rate or recording rate of the encoded signal into which the image is encoded should be constant, the quantizing step is coarsely controlled if the transmission rate is equal to or larger than the given value, while the quantizing step is finely controlled if the transmission rate is less than the given value. And, since the value of the quantizing step also directly influences the picture quality of the encoded signal, when the image is one in which there exist step-like changes of the pixel values, as the degradation of the picture quality in the amplitude direction is difficult to be visually detected, it is possible to make the compression rate higher by making the quantizing step larger. In this case, the changing of the quantizing step is usually performed according to the change of the pixel value. When control of the changing of the quantizing step as described above is performed, the information indicating "the quantizing step has been changed" is added to each block and encoded along with the image data. However, it is often that the change of the quantizing step should be performed in such a manner that the pixel value signal and the shape signal are simultaneously changed, so that when the quantizing step for the pixel value signal is not changed, even if the change of the quantizing step for the shape signal is prevented, the degradation of the picture quality caused by the restriction is small, meanwhile the additional information indicating the change of the quantizing step is reduced to a large extent. As described above, the image encoding apparatus according to the 7th embodiment has the quantizing step change/non-change judgment unit 198 for encoding the pixel value, and the shape encoding mode judgment unit 138 containing the quantizing step change/non-change judgment unit 192 for encoding the shape, and thereby when the encoding mode for the pixel value signal is "quantizing step non-change", the encoding mode for the shape signal is "quantizing step non-change", while when the encoding mode for the pixel value signal is "quantizing step change", the encoding mode for the shape signal is judged and selected, which causes the correlation between the encoding mode 119 for the pixel value signal and the encoding mode 111 for the shape signal, and makes it possible for the bit number of the encoded mode signal to be reduced, and which causes the prevention of the selection of the changing the quantizing step and thereby makes it possible that the increase in the additional information due to the change of the quantizing step is prevented and the bit number is reduced. Note that, although the structures of the image encoding apparatuses according to the 5th to 7th embodiments are based on the 3rd embodiment shown in Fig.24, it is also possible for them to be based on the 2nd embodiment shown in Fig.23, and also, the correlation of the encoding modes becomes higher and the additional information is prevented from increasing, which realizes the reduction of the bit number. Also, it is possible to base it on the first embodiment shown in Fig.20, and the bit number is reduced, realizing the encodings suitable for the respective signals. Also, the encoded signals obtained by the image encoding apparatuses according to the 5th to 7th embodiments can be appropriately decoded by the image decoding apparatus according to the 3rd embodiment. Also, although in the first to 4th embodiments the input image signal consists of the transparency information and the shape information in addition to the pixel value information and is separated into the pixel value signal, the transparency signal and the shape signal, in the 5th to 7th embodiments the input image signal is separated into the pixel value signal and the shape signal. Concerning this, when also in the 5th to 7th embodiments the transparency information and the shape information have agreement, it is possible to use only the shape information, while when there is not agreement, if the transparency information is made the shape signal, or the transparency information which is a multi-valued signal is processed along with the pixel value information in the blocking unit, the shape signal and the pixel value signals are obtained. Embodiment 8 An image encoding apparatus according to an 8th embodiment not forming part of this invention encodes shape signals representing the shapes of objects, and extracts a significant area from an image signal and performs efficient encoding. Fig.44 is a block diagram showing the structure of the image encoding apparatus according to the 8th embodiment. In the figure, 401 indicates the two-dimensional shape signal as the input signal. 402 indicates a significant area extractor which extracts a significant area from the input shape signal 401 and outputs a significant area signal 403. 404 indicates the blocking unit which blocks the input shape signal 401 and outputs a blocked shape signal 405. 408 indicates the switch which performs switching according to the significant area signal 403. 412 indicates a block size changer which changes the block size according to the significant area signal 403 and outputs the changed blocked shape signal 413. 418 and 414 indicate encoders which encode the significant area signal 403 and the blocked shape signal 413, and outputs the encoded signals 419 and 415, respectively. The operation of the image encoding apparatus according to the 8th embodiment as constructed above, is described. The input signal 401, the two-dimensional shape signal, is input to the image encoding apparatus according to the 8th embodiment, and is then input to the significant area extractor 402 and the blocking unit 404. The significant area extractor 402 detects the range of the significant area, and outputs the significant area signal 403 to the switch 408, the block size changer 412 and the encoder 418. Fig.45 is a drawing for explaining the operating principle of the encoding performed by the image encoding apparatus according to the 8th embodiment. The part indicated by slant lines means the interior pixel of the object, namely the pixel in which the significant signal exists, and a minimum rectangle containing the slant-lined part, namely the rectangle indicated by the bold line in the figure, corresponds to the range of the significant area. The blocking unit 405 blocks the input shape signal and outputs the blocked shape signal to the switch 408. Here, the switch 408 will be ON-state when the blocked shape signal 405 corresponds to the range of the significant area indicated by the significant area signal 403. That is, if it is outside of the significant area, the blocked shape signal is not subjected to the encoding process. When the switch is ON, the blocked shape signal 405 is input to the block size changer 412, and the size is changed to the minimum block containing the significant area according to the significant area signal 403 input to the block size changer 412, and the changed shape signal 413 is output to the encoder 414 and is encoded and is regarded as the encoded signal 415 of the shape signal. On the other hand, the significant area signal indicating the significant area range is also encoded in the encoder 418, and the encoded signal 419 is output. As described above, the image encoding apparatus according to the 8th embodiment has the significant area detector 102 and the block size changer 412, and thereby detects the significant area range, and changes the block size of the shape signal in order to encode the shape signal only within the interior range of the significant area, whereby the outside of the significant area is no longer encoded and the encode efficiency of the shape signal is improved. Embodiment 9 An image decoding apparatus according to a 9th embodiment of this invention decodes the encoded signal output by the image encoding apparatus according to the 8th embodiment, and obtains a two-dimensional shape signal. Fig.46 is a block diagram showing the structure of the image encoding apparatus according to the 9th embodiment. In the figure, 419 and 415 indicate the encoded signal output by the image encoding apparatus according to the 8th embodiment. 420 indicates the decoder for the significant area signal which decodes the input signal and outputs a decoded significant area signal 421. 422 indicates the decoder for the shape signal which decodes the input signal and outputs a minimum blocked shape decoded signal 423. 430 indicates a block size changer which changes the block size according to the decoded significant area signal 423 and outputs the decoded blocked shape signal 431. 426 indicates the switch which performs switching according to the significant area signal 421. 432 indicates the reverse blocking unit which integrates the blocked shape signal 427 and outputs the decoded shape signal 433. The operation of the image decoding apparatus according to the 9th embodiment as constructed above, is described. The encoded signals 419 and 415 are input to the decoders 420 and 422, respectively, and are decoded. The decoder 420 outputs the decoded significant area signal 421 to the block size changer 430 and the switch 426. On the other hand, the decoder 422 outputs the minimum blocked shape signal 423 which is the minimum block containing the significant area range, to the block size changer 430. The block size changer 430 changes the block size to the given size based on the input decoded significant area signal, and outputs the changed blocked shape signal 431 to the switch 426. The switch 426 will become ON only when input is a signal containing the significant area range indicated by the significant area signal 421, or otherwise outputs the value which indicates the outside of the significant area range. The reverse blocking unit 432 integrates the input blocked shape signal and the signal indicating the outside of the significant area range, and outputs the two-dimensional shape signal as the decoded signal 433. As described above, the image decoding apparatus according to the 9th embodiment has the decoders 420 and 422, and the block size changer 430, the switch 426 and the reverse blocking unit 432, and thereby encodes the significant area range, and based on it, decodes the shape signal, whereby the encoded signal encoded in the 8th embodiment can be appropriately decoded. Embodiment 10 An image encoding program recording medium and an image decoding program recording medium realize the image encoding apparatuses and the image decoding apparatuses according to the 1st to 9th embodiments. Fig.50 shows a floppy disk which is an example of a recording medium which records the program. An image encoding program which is recorded in the floppy disk shown in Fig.50, is executed on a personal computer or a work station or the like, and thereby realizes the image encoding apparatus according to the 2nd embodiment. Similarly, an image decoding program which is recorded on the floppy disk shown in Fig.50, is executed on a personal computer or a work station or the like, and thereby realizes the image decoding apparatus according to the 3rd embodiment. This case is, in the same embodiment, one in which the selection is performed by the switch after the change pixel encoding process as described using Fig.6. As described above, the program recording media according to the 10th embodiment record the image encoding program or the image decoding program, and thereby on a computer system such as an ordinary personal computer and the like, the image encoding apparatus or the image decoding apparatus according to this invention can be realized. Note that, in the 10th embodiment, although the image encoding apparatus according to the 2nd embodiment and the image decoding apparatus according to the 3rd embodiment are recorded, the apparatuses according to the other embodiments can be similarly realized. Further, in the 40th embodiment, although the floppy disk is presented as a recording medium, an IC card, a CD-ROM, an optical disc and a cassette tape or the like can be similarly employed, if it is a medium which can record the programs.

Claims: An image decoding apparatus which receives a blocked shape coded signal which is a coded signal of a blocked shape signal that is obtained by dividing a two-dimensional shape signal indicating a shape of an object into block areas each comprising a predetermined number of pixels, said apparatus comprising: a shape signal decoding unit (422, 430) operable to decode the blocked shape coded signal; and a reverse blocking unit (432) operable to integrate the blocked shape signal outputted from the shape signal decoding unit over plural block areas so as to restore the two-dimensional shape signal, and output the restored two-dimensional shape signal; said image decoding apparatus being characterized by further including: a significant area signal decoding unit (420) operable to decode a significant area coded signal to output the significant area signal, said significant area coded signal being a coded signal of a significant area signal that indicates a minimum rectangle area enclosing the object as a significant area; and said shape signal decoding unit decodes the blocked shape coded signal using the significant area signal to output the blocked shape signal, and said shape signal decoding unit further performs, as a decoding process for the blocked shape coded signal, a decoding process of decoding only the blocked shape coded signal corresponding to the part of each block area, which overlaps the minimum rectangle area indicated as a significant area, and outputting the blocked shape signal corresponding to each block area.

Inventors: KADONO SHINYA, KADONO, SHINYA
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1997
Main classification: H04N7
IPC codes: H04N7, G06T9