Method of judging depth relationship between subjects for converting two-dimensional images into three-dimensional images

Abstract: The present invention relates to a method of judging the back-and-forth positional relationship between subjects. Amounts of horizontal movement of the subjects which are detected for detecting areas set in an image area constituting a 2D image are compared after being assigned plus or minus signs depending on the direction of the movement, thereby to classify all the detecting areas into two types of detecting areas in such a manner that the detecting areas where a relatively large amount of horizontal movement is detected are taken as first detecting areas, while the detecting areas where a relatively small amount of horizontal movement is detected are taken as second detecting areas. A target area is set in a peripheral portion in the image area, to judge which of the total number of first detecting areas existing in the target area and the total number of second detecting areas existing in the target area is larger. It is judged that the subjects in all the detecting areas whose total number existing in the target area is judged to be larger are positioned behind the subjects in all the detecting areas whose total number existing in the target area is judged to be smaller.

Description: The present invention relates to a method of judging the back-and-forth positional relationship between subjects and a method of converting two-dimensional (2D) images outputted from a VTR (Video Tape Recorder), a video camera or the like and transmitted by a CATV (Cable Television) and TV broadcasting into three-dimensional (3D) images. Description of the Prior Art Almost all types of 3D image software used for a 3D image display system which has been recently in the news are particularly produced for displaying 3D images. The image software for displaying 3D images is generally produced by picking up a right eye image and a left eye image using two cameras. The left and right images recorded on the 3D image software are displayed on a display almost simultaneously. The left eye image and the right eye image which are reflected almost simultaneously are respectively incident on the left eye and the right eye of a viewer, whereby the viewer recognizes 3D images. However, a lot of types of image software produced by 2D images exist in the world, while the number of types of 3D image software is very small, whereby 3D image software must be newly produced so as to display the 3D images, which takes much time and labor and increases the cost. Therefore, a method of converting 2D images into 3D images has been already proposed. Examples of the method of converting 2D images into 3D images include the following. Specifically, in the case of a 2D image on which an object moving from the left to the right, for example, is reflected, the original 2D image is taken as a left eye image, and an image corresponding to a field which is several fields preceding the left eye image is taken as a right eye image. Consequently, parallax occurs between the left eye image and the right eye image. Therefore, both the images are displayed on a screen almost simultaneously so that the moving object is so recognized that it is raised forward against a background. In the 2D images, there are a case where a subject (mountains) in the backward position is in an immobile state and a subject (a bird) in the forward position moves, as shown in Fig. 27, and a case where a subject (an automobile) in the forward position is in an immobile state and a subject (a house) in the backward position moves, as shown in Fig. 28. In the case as shown in Fig. 30, the direction of the movement of the subject (the bird) in the forward position (from the left to the right in this example) is detected, and the original 2D image is taken as a left eye image and an image corresponding to a field which is several fields preceding a field corresponding to the left eye image is taken as a right eye image, thereby to make it possible to raise the subject (the bird) in the forward position forward against the subject (the mountains) in the backward position. On the other hand, in the case where the subject (the house) in the backward position is moving as shown in Fig. 31, the subject (the house) in the backward position may be raised forward against the subject (the automobile) in the forward position if the direction of the movement of the subject (the house) in the backward position (from the left to the right in this example) is detected, and the original 2D image is taken as a left eye image and an image corresponding to a field which is several fields preceding a field corresponding to the left eye image is taken as a right eye image in the same manner as described above. These objects are achieved by a method of determining background/foreground relationship of objects in an image as defined in claims 1 and 2, respectively; the dependent claims are related to further developments of the invention. IEEE Transactions on image processing, vol. 3, no. 5, Septemer 1994, New York, US, pp. 625-638, WANG AND ADELSON "Representing Moving Images With Layers" discloses a method for detecting the background-foreground relationship of objects in an image based on the distribution of motion within different image segments and by describing the optical flow in an image by a set of planar patches in velocity space. WO-88/04804 describes a method to convert two dimensional motion pictures for free-dimensional systems. In this method a separation of a single two-dimensional image into divers elements is accomplished by a computer assisted by human operated system. Three dimensional information is assigned to various elements by combining human decisions and computer analysis resulting in images of three dimensional format. An object of the present invention is to provide a method of judging the back-and-forth positional relationship between subjects, in which the back-and-forth positional relationship among a plurality of subjects can be judged. Another object of the present invention is to provide a method of converting 2D images into 3D images, in which a subject in the forward position is raised forward against a subject in the backward position even in a case where the subject in the forward position is in an immobile state and the subject in the backward position is moving. The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. Fig. 1 is a block diagram showing the construction of a 2D/3D image converter; Fig. 2 is a typical diagram showing motion vector detecting areas A1 to H5; Fig. 3 is a typical diagram showing a plurality of small areas e set in the motion vector detecting area shown in Fig. 2; Fig. 4 is a typical diagram showing a plurality of sampling points S and one representative point R which are set in the small area e shown in Fig. 3; Figs. 5a and 5b are flow charts showing processing related to subject/background judging processing out of processing performed for each field by a CPU; Fig. 6 is a graph showing a histogram for classifying motion vector detecting areas into H blocks and L blocks; Fig. 7 is a typical diagram showing a first target area; Fig. 8 is a typical diagram showing a second target area; Fig. 9 is a timing chart showing the relationship between a field number of a 2D image signal and processing for calculating a target value of a delay; Fig. 10 is a flow chart showing the entire flow of processing for judging the back-and-forth positional relationship between subjects by a CPU; Figs. 11a and 11b are flow charts showing the flow of the judging processing and the processing for calculating a target value of a delay which are performed in the steps S13, S14 and S15 shown in Fig. 5a; Fig. 12 is a typical diagram showing one example of 2D images; Figs. 13a to 13c are diagrams for explaining processing for judging the back-and-forth positional relationship between subjects with respect to the 2D images shown in Fig. 12; Fig. 14 is a typical diagram showing one example of 2D images; Figs. 15a to 15c are diagrams for explaining processing for judging the back-and-forth positional relationship between subjects with respect to the 2D images shown in Fig. 14; Fig. 16 is a typical diagram showing one example of 2D images; Figs. 17a to 17c are diagrams for explaining processing for judging the back-and-forth positional relationship between subjects with respect to the 2D images shown in Fig. 16; Fig. 18 is a typical diagram showing one example of 2D images; Figs. 19a to 19c are diagrams for explaining processing for judging the back-and-forth positional relationship between subjects with respect to the 2D images shown in Fig. 18; Fig. 20 is a typical diagram showing one example of 2D images; Figs. 21a to 21c are diagrams for explaining processing for judging the back-and-forth positional relationship between subjects with respect to the 2D images shown in Fig. 20; Fig. 22 is a typical diagram showing one example of 2D images; Figs. 23a to 23c are diagrams for explaining processing for judging the back-and-forth positional relationship between subjects with respect to the 2D images shown in Fig. 22; Fig. 24 is a typical diagram showing one example of 2D images; Figs. 25a to 25c are diagrams for explaining processing for judging the back-and-forth positional relationship between subjects with respect to the 2D images shown in Fig. 24; Fig. 26 is a flow chart showing the detailed procedure for scene change detecting processing performed in the step S1 shown in Fig. 5a; Fig. 27 is a diagram for specifically explaining the procedure for the processing for judging the back-and-forth positional relationship between subjects; and Fig. 28 is a diagram for specifically explaining the procedure for the processing for judging the back-and-forth positional relationship between subjects. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Referring to Figs. 1 to 26, an embodiment of the present invention will be described. Fig. 1 illustrates the construction of a 2D/3D image converter for converting 2D images into 3D images. In the 2D/3D image converter, a normal 2D image signal for displaying a 2D image is inputted to an input terminal 1. The 2D image signal inputted to the input terminal 1 is fed to an image switching circuit 2 and a field memory 5. The 2D image signal inputted to the field memory 5 is delayed by a predetermined number of fields and is outputted, after which the 2D image signal is fed to the image switching circuit 2. A delay indicating the number of fields from a field corresponding to the inputted 2D image signal to a field corresponding to the 2D image signal delayed by the field memory 5 is variably controlled for each field by a memory control circuit 6. The image switching circuit 2 is connected to an output terminal 3 for outputting a left eye image signal L and an output terminal 4 for outputting a right eye image signal R, and is so controlled that the output state is switched depending on the direction of the movement of a subject. Furthermore, the 2D image signal inputted to the input terminal 1 is fed to a motion vector detecting circuit 7. In the motion vector detecting circuit 7, a motion vector corresponding to the movement between fields of an image, that is, the amount of horizontal movement (the moving speed) of the subject is detected. The detected motion vector is supplied to a CPU (Central Processing Unit) 8. The CPU 8 extracts a horizontal component of the detected motion vector, and controls the memory control circuit 6 in accordance with the horizontal component. Specifically, the memory control circuit 6 is so controlled that the delay is reduced when the subject greatly moves and the motion vector is large, while being so controlled that the delay is increased when the subject slightly moves or the motion vector is small as at the time of slow-motion reproduction. In the following description, a subject in the backward position out of two subjects which differ in the amount of horizontal movement is referred to as a background, and a subject in the forward direction is merely referred to as a subject. The CPU 8 controls, when the direction of the horizontal component of the motion vector is from the left to the right, the image switching circuit 2 in the following manner in accordance of an object on an area where the motion vector is detected. Specifically, the image switching circuit 2 is so controlled that the delayed image signal is taken as a right eye image signal when it is judged that the object on the area where the motion vector is detected is the subject positioned ahead of the background, while being taken as a left eye image signal when it is judged that the object on the area where the motion vector is detected is the background positioned behind the subject. Furthermore, the CPU 8 controls, when the direction of the horizontal component of the motion vector is from the right to the left, the image switching circuit 2 in the following manner in accordance with an object on an area where the motion vector is detected. Specifically, the image switching circuit 2 is so controlled that the delayed image signal is taken as a left eye image signal when it is judged that the object on the area where the motion vector is detected is the subject positioned ahead of the background, while being taken as a right eye image signal when it is judged that the object on the area where the motion vector is detected is the background positioned behind the subject. With respect to such a scene that the subject or the background horizontally move in the 2D image signal, therefore, there occurs such parallax corresponding to the speed of the movement that the subject is always positioned ahead of the background. A viewer can view a 3D image with a 3D effect by feeding left and right image signals from the output terminals 3 and 4 to a display for displaying 3D images such as a display by a lenticular method. The motion vector detecting circuit 7 detects a motion vector by a representative point matching method. The representative matching method will be briefly described. 40 motion vector detecting areas A1 to H5 are set, as shown in Fig. 2, in an image area constituting each of fields. In addition, each of the motion vector detecting areas A1 to H5 is further divided into a plurality of small areas e , as shown in Fig. 3. As shown in Fig. 4, a plurality of sampling points S and one representative point R are set in each of the small areas e . The difference between an image signal level at each of sampling points S in each small area e in the current field and an image signal level at a representative point R in a corresponding small area in the preceding field (a correlation value at each of the sampling points) is found for each of the motion vector detecting areas A1 to H5. Correlation values at sampling points S which are the same in displacement from the representative point R are accumulated between small areas e in each of the motion vector detecting areas A1 to H5. Consequently, accumulated correlation values the number of which corresponds to the number of sampling points S in one small area e are found for each of the motion vector detecting areas A1 to H5. Furthermore, the minimum value MIN of the accumulated correlation values found in each of the motion vector detecting areas A1 to H5 is found for each motion vector detecting area. In addition, the average value AVE of the accumulated correlation values found in each of the motion vector detecting areas A1 to H5 is found for each motion vector detecting area. The displacement of a point at which the minimum accumulated correlation value is obtained, that is, a point which is highest in correlation in each of the motion vector detecting areas A1 to H5 is extracted as a motion vector in the motion vector detecting area (the movement of a subject). The CPU 8 judges which of the subject and the background is an object moving in the original 2D image on the basis of the horizontal component of the motion vector, the minimum value MIN of the accumulated correlation values, and the average value AVE of the accumulated correlation values which are detected in each of the motion vector detecting areas by the motion vector detecting circuit 7, to control the image switching circuit 2 and the memory control circuit 6 on the basis of the results of the subject/background judging processing. Figs. 5a and 5b shows processing performed for each field by the CPU 8 and related to processing for judging the back-and-forth positional relationship between subjects. In the step S1 shown in Fig. 5a, it is judged whether or not a scene represented by a 2D image inputted to the input terminal 1 shown in Fig. 1 is changed. The details of processing used for judging whether or not a scene change occurs will be described later. When it is judged in the step S1 that a scene change occurs, the content K1 of a first counter K1 and the content K2 of a second counter are set to "1" (step S16). In addition, a delay and a target value of the delay are set to zero (step S17). The delay indicates how many fields are there from a field corresponding to a 2D image signal currently inputted to the input terminal 1 to a field corresponding to a delayed 2D image signal read from the field memory 5 shown in Fig. 1. The delay is so controlled as to gradually approach the target value of the delay. When the processing in the step S17 is performed, hysteresis information used for judging the back-and-forth positional relationship between subjects is initialized (step S18). The present processing is then terminated. When it is judged in the foregoing step S1 that no scene change occurs, a horizontal component V of a motion vector (hereinafter merely referred to as a motion vector) and the average value AVE of accumulated correlation values for each of the motion vector detecting areas A1 to H5 which are detected by the motion vector detecting circuit 7 are stored (step S2). Thereafter, the program proceeds to processing in the step S3 and the subsequent steps. In the step S3, it is judged whether or not the current field is a field which is (10n + 1) fields succeeding a field where a scene change is detected, where n is an integer of not less than zero. In the step S4, it is judged whether or not the current field is a field which is (10n + 2) fields succeeding the field where a scene change is detected. In the step S5, it is judged whether or not the current field is a field which is (10n + 3) fields succeeding the field where a scene change is detected. In the step S6, it is judged whether or not the current field is a field which is (10n + 4) fields succeeding the field where a scene change is detected. In the step S7, it is judged whether or not the current field is a field which is (10n + 5) fields succeeding the field where a scene change is detected. In the step S8, it is judged whether or not the current field is a field which is (10n + 6) fields succeeding the field where a scene change is detected. In the step S9, it is judged whether or not the current field is a field which is (10n + 7) fields, a field which is (10n + 8) fields or a field which is (10n + 9) fields succeeding the field where a scene change is detected. The judgments are made on the basis of the content K1 of the first counter. If the current field is the field which is (10n + 1) fields succeeding the field where a scene change is detected (YES in the step S3), the program proceeds to the step S19 after processing in the step S10. If the current field is the field which is (10n + 2) fields succeeding the field where a scene change is detected (YES in the step S4), the program proceeds to the step S19 after processing in the step S11. If the current field is the field which is (10n + 3) fields succeeding the field where a scene change is detected (YES in the step S5), the program proceeds to the step S19 after processing in the step S12. If the current field is the field which is (10n + 4) fields succeeding the field where a scene change is detected (YES in the step S6), the program proceeds to the step S19 after processing in the step S13. If the current field is the field which is (10n + 5) fields succeeding the field where a scene change is detected (YES in the step S7), the program proceeds to the step S19 after processing in the step S14. If the current field is the field which is (10n + 6) fields succeeding the field where a scene change is detected (YES in the step S8), the program proceeds to the step S19 after processing in the step S15. If the current field is the field which is (10n + 7) fields, the field which is (10n + 8) fields or the field which is (10n + 9) fields succeeding the field where a scene change is detected (YES in the step S9), the program proceed to the step S19. If the current field is a field which is (10n + 10) fields succeeding the field where a scene change is detected (NO in the step S9), the program proceeds to the step S20. In the step S19, the content K1 of the first counter is incremented by one. In the step S20, the content K1 of the first counter is set to "1". That is, the content K1 of the first counter is set to "1" when a scene change is detected in the current field (YES in the step S1) or when the current field is a field which is (10n + 10) fields succeeding the field where a scene change is detected (NO in the step S9). The content K1 of the first counter is incremented by one in the step S19 when the current field is a field which is (10n + 1) fields to (10n + 9) fields succeeding the field where a scene change is detected (YES in any one of the steps S3 to S9). When the processing for judging the back-and-forth positional relationship between subjects in each of the fields is started, therefore, the content K1 of the first counter is any one of 1 to 10, which indicates which of the field which is (10n + 1) fields to the field which is (10n + 10) fields succeeding the field where a scene change is detected is the current field. Therefore, it can be judged on the basis of the content K1 of the first counter which of the field which is (10n + 1) fields to the field which is (10n + 10) fields succeeding the field where a scene change is detected is the current field. When the processing in the foregoing step S19 or S20 is performed, the program proceeds to the step S21. In the step S21, it is judged whether or not the current field is one of fields preceding a field which is 20 fields succeeding the field where a scene change is detected. This judgment is made on the basis of the content K2 of the second counter. The content K2 of the second counter is set to "1" when a scene change is detected, as described above. In the step S21, the content K2 of the second counter is incremented by one when the current field is one of fields preceding the field which is 20 fields succeeding the field where a scene change is detected (step S22). In a case where the processing in the step S21 is performed, therefore, the content K2 of the second counter is a value of not more than 20 when the current field is one of the fields preceding the field which is 20 fields succeeding the field where a scene change is detected, while being "21" when the current field is one of fields succeeding the field which is 20 fields succeeding the field where a scene change is detected. Therefore, it can be judged on the basis of the content K2 of the second counter whether or not the current field is one of the fields preceding the field which is 20 fields succeeding the field where a scene change is detected. When it is judged in the foregoing step S21 that the current field is one of the fields preceding the field which is 20 fields succeeding the field where a scene change is detected, and the content K2 of the second counter is updated (step S22), the target value of the delay is set to zero (step S23). The present processing is then terminated. When it is judged in the foregoing step S21 that the current field is one of the fields succeeding the field which is 20 fields succeeding the field where a scene change is detected, the present processing is terminated. The processing in the steps S10 to S15 is processing for specifying an area of the subject and an area of the background and calculating the target value of the delay. The processing is performed in units of 10 fields after a scene change is detected. Since the target value of the delay is set to "0" in the fields preceding the field which is 20 fields succeeding the field where a scene change is detected (step S23), therefore, a target value of a delay calculated in the fields succeeding the field which is 20 fields succeeding the field where a scene change is detected is used for controlling the delay. Description is now made of the processing in the steps S10 to S15. [Description of processing in the step S10] The processing in the step S10 is processing performed in the field which is (10n + 1) fields succeeding the field where a scene change is detected. In the step S10, the accumulated sum ΣV of values related to motion vectors V corresponding to 10 fields for each of the detecting areas A1 to H5 which are detected in a period of 10 fields preceding the current field is found for each detecting area and is stored. In addition, the accumulated sum SAVE of the average values AVE corresponding to 10 fields of accumulated correlation values for each of the detecting areas A1 to H5 which are detected in a period of 10 fields preceding the current field is found for each detecting area and is stored. The period of 10 fields preceding the current field is a period of 10 fields from the 11-th field to the 20-th field when the current field is a field which is 20 fields succeeding the field where a scene change occurs. [Description of processing in the step S11] The processing in the step S11 is processing performed in the field which is (10n + 2) fields succeeding the field where a scene change is detected. In the step 11, it is judged whether or not the accumulated sum ΣV of values related to motion vectors V corresponding to 10 fields for each of the detecting areas A1 to H5 which are detected in a period of 10 fields preceding the current field is low in reliability and is related to the movement of the image. An area having an accumulated sum which is low in reliability and an area having an accumulated sum which is not related to the movement of the image shall be referred to as NG areas. Specifically, it is judged in the step S11 which of the detecting areas A1 to H5 is an NG area. The judgment whether or not the detecting area is the NG area is made on the basis of the following judgment rules (a), (b) and (c): (a) If the accumulated sum ΣAVE of the average values AVE corresponding to 10 fields of accumulated correlation values for each of the detecting areas A1 to H5 is less than one-fifth of the average value of the accumulated sums ΣAVE for the detecting areas A1 to H5 {= (the sum of the accumulated sums ΣAVE for the detecting areas A1 to H5) / (the number of detecting areas 40)}, the area is taken as an NG area. (b) If the accumulated sum ΣAVE of the average values AVE corresponding to 10 fields of accumulated correlation values for each of the detecting areas A1 to H5 is less than 350, the area is taken as an NG area. (c) An area where the absolute value of the accumulated sum ΣV of values related to motion vectors corresponding to 10 fields is not less than three out of the detecting areas A5, B5, C5, ... H5 in the lowermost stage is taken as an NG area because the possibility that subtitles are reflected thereon is high. One-fifth of a constant used in the judgment rule (a) is a value determined by simulation. In addition, a constant 350 used in the judgment rule (b) is a value found by experiments so as to take a blueback area as an NG area. [Description of processing in the step S12] The processing in the step S12 is processing performed in the field which is (10n + 3) fields succeeding the field where a scene change is detected. In the step S12, the following processing is performed using the accumulated sum ΣV of values related to motion vectors V corresponding to 10 fields for each of the detecting areas which are not judged to be NG areas (effective areas). Specifically, the minimum value α and the maximum value β of the accumulated sum ΣV of the values related to the motion vectors corresponding to 10 fields for each of the effective areas are extracted. The range from the minimum value α to the maximum value β of the accumulated sum ΣV of the values related to the motion vectors is divided into eight ranges. For each of the eight ranges obtained by the division, the number of effective areas is found, thereby to produce a histogram of the accumulated sum ΣV of values related to motion vectors as shown in Fig. 6. The large or small relationship of the accumulated sum ΣV of the values related to the motion vectors is determined by taking a motion vector directed from the left to the right as a positive motion vector and taking a motion vector directed from the right to the left as a negative motion vector. In this histogram, when a range in which the number of effective areas is one exists and the number of effective areas is zero in at least one of ranges adjacent to the range, it is judged that the possibility that the accumulated sum ΣV of the values related to the motion vectors corresponding to the one effective area existing in the range is inaccurate is high, whereby the one effective area existing in the range is removed from the histogram. In an example shown in Fig. 6, a portion of γ is removed. As shown in Fig. 6, the average value (α + β) / 2 of the minimum value α and the maximum value β is then found. The found average values (α + β) / 2 is taken as the boundary. Each of the effective areas existing in a range in which the accumulated sum ΣV of the values related to the motion vectors is smaller than the accumulated sum ΣV of the values related to the motion vectors corresponding to the boundary is defined as an L block, and each of the effective areas existing in a range in which the accumulated sum ΣV of the values related to the motion vectors is larger than the accumulated sum Σ of the values related to the motion vectors corresponding to the boundary is defined as an H block. That is, the effective areas are classified into the L blocks and the H blocks. [Description of processing in the step S13] The processing in the step S13 is processing performed in the field which is (10n + 4) fields succeeding the field where a scene change is detected. In the step S13, first subject/background judging processing (hereinafter referred to as judging processing A) is performed. In the judging processing A, 16 motion vector detecting areas A1, B1, C1, D1, E1, F1, G1, H1, A2, A3, A4, A5, H2, H3, H4 and H5 which exist on the upper end row, the left end column and the right end column, as indicated by hatching in Fig. 7, out of the motion vector detecting areas are taken as a first target area. In a normal image, a background is reflected in a peripheral portion of a screen in many cases. Therefore, the total number of L blocks existing in the first target area which is an area in the peripheral portion of the screen and the total number of H blocks existing in the first target area are compared with each other, to judge which of the L blocks and the H blocks are the blocks whose total number existing in the first target area is larger. When the blocks whose total number existing in the first target area is larger are the L blocks, the effective areas defined as the L blocks in the foregoing step S12 out of the 40 motion vector detecting areas are judged to be background areas (areas where a background exists). The effective areas defined as the H blocks in the foregoing step S12 are judged to be subject areas (areas where a subject exists). When the blocks whose total number existing in the first target area is larger are the H blocks, the effective areas defined as the H blocks in the foregoing step S12 out of the 40 motion vector detecting areas are judged to be background areas. The effective areas defined as the L blocks in the foregoing step S12 are judged to be subject areas. When in the first target area, the total number of L blocks and the total number of H blocks are equal, the distinction between the subject areas and the background areas is not made. [Description of processing in the step S14] The processing in the step S14 is processing performed in the field which is (10n + 5) fields succeeding the field where a scene change is detected. In the step S14, second subject/background judging processing (hereinafter referred to as judging processing B) and third subject/background judging processing (hereinafter referred to as judging processing C) are performed, and final subject/background judgment is made from the results of the judging processing A, B and C. In the judging processing B, four motion vector detecting areas D3, E3, D4 and E4 in the center, as indicated by hatching in Fig. 8, out of the motion vector detecting areas are taken as a second target area. In a normal image, a subject is reflected in a central portion of a screen in many cases. Therefore, the total number of L blocks existing in the second target area which is an area in the central portion of the screen and the total number of H blocks existing in the second target area are compared with each other, to judge which of the L blocks and the H blocks are the blocks whose total number existing in the second target area is larger. When the blocks whose total number existing in the second target area is larger are the L blocks, the effective areas defined as the L blocks in the foregoing step S12 out of the 40 motion vector detecting areas are judged to be subject areas. The effective areas defined as the H blocks in the foregoing step S12 are judged to be background areas. When the blocks whose total number existing in the second target area is larger are the H blocks, the effective areas defined as the H blocks in the foregoing step S12 out of the 40 motion vector detecting areas are judged to be subject areas. The effective areas defined as the L blocks in the foregoing step S12 are judged to be background areas. When in the second target area, the total number of L blocks and the total number of H blocks are equal, the distinction between the subject areas and the background areas is not made. When the judging processing B is terminated, the result of the judging processing A and the result of the judging processing B are compared with each other. When the results of the judgment are equal, the results are taken as the final result of subject/background judgment, whereby the processing in the step S14 is terminated. Specifically, when it is judged that the areas defined as the L blocks are background areas and the areas defined as the H blocks are subject areas in both the judging processing A and B, for example, the results of the judgment are taken as the final result of subject/background judgment. Furthermore, when it is judged that the total number of L blocks and the total number of H blocks are equal in the first target area in the judging processing A, and it is judged that either one of the total number of L blocks and the total number of H blocks is larger in the second target area in the judging processing B, the result of subject/background judgment by the judging processing B is taken as the final result of subject/background judgment, whereby the processing in the step S14 is terminated. On the other hand, when it is judged that either one of the total number of L blocks and the total number of H blocks is larger in the first target area in the judging processing A, and it is judged that the total number of L blocks and the total number of H blocks are equal in the second target area in the judging processing B, the result of subject/background judgment by the judging processing A is taken as the final result of subject/background judgment, whereby the processing in the step S14 is terminated. When the results of both the judging processing A and the judging processing B differ, the judging processing C is performed. When it is judged that the total number of L blocks and the total number of H blocks are equal in the first target area in the judging processing A, and it is judged that the total number of L blocks and the total number of H blocks are equal in the second target area in the judging processing B, the judging processing C is also performed. In the judging processing C, the total number of L blocks existing in all the motion vector detecting areas and the total number of H blocks existing in all the motion vector detecting areas are first compared with each other, to judge which of the L blocks and the H blocks are the blocks whose total number is smaller. The blocks whose total number is smaller are taken as target blocks, and the blocks whose total number is larger are taken as non-target blocks. The ratio η of the number of target blocks existing in the first target area (see Fig. 7) to the total number of target blocks existing in all the motion vector detecting areas {(the number of target blocks existing in the first target area) / (the total number of target blocks existing in all the motion vector detecting areas)} is calculated. When the calculated ratio η is not less than a predetermined value, it is judged that the target blocks existing in all the motion vector detecting areas are background areas, and it is judged that the non-target blocks existing in all the motion vector detecting areas are subject areas. The result of the judgment is taken as the final result of subject/background judgment, whereby the processing in the step S14 is terminated. When the calculated ratio η is less than a predetermined value, it is judged that the non-target blocks existing in all the motion vector detecting areas are background areas, and it is judged that the target blocks existing in all the motion vector detecting areas are subject areas. The result of the judgment is taken as the final result of subject/background judgment, whereby the processing in the step S14 is terminated. In the present embodiment, the above described predetermined value is 0.45, which is a value found by conducting experiments on various images. A subject/background judgment rule by the judging processing C is produced on the basis of the following idea. When the result of subject/background judgment by the judging processing A and the result of subject/background judgment by the judging processing B differ, it is considered that a subject is positioned in a peripheral portion of the screen. When a large subject extends to the peripheral portion of the screen, an area occupied by a background is small on the entire screen, while the ratio of an area of the background existing in the peripheral portion of the screen to the entire area occupied by the background is not less than a predetermined value. On the other hand, when a small subject is reflected on a peripheral portion of the screen, an area occupied by the subject is small on the entire screen, and the ratio of an area of the subject existing in the peripheral portion of the screen to the entire area occupied by the subject is less than a predetermined value. [Description of processing in the step S15] The processing in the step S15 is processing performed in the field which is (10n + 6) fields succeeding the field where a scene change is detected. In the step S15, a target value of a delay is calculated on the basis of the final result of subject/background judgment obtained in the foregoing step S14. Specifically, the sum ΣΣV of the accumulated sums ΣV of values related to motion vectors in a period of 10 fields for the blocks finally judged to be subject areas is found. The sum ΣΣV of the accumulated sums ΣV is divided by the total number of blocks judged to be subject areas, thereby to find the average value HI of the sum ΣΣV of the accumulated sums ΣV. Furthermore, the sum ΣΣV of the accumulated sums ΣV of values related to motion vectors in a period of 10 fields for the blocks finally judged to be background areas is found. The sum ΣΣV of the accumulated sums ΣV is divided by the total number of blocks judged to be background areas, thereby to find the average value HA of the sum ΣΣV of the accumulated sums ΣV. When the absolute value of the average value HI is not less than the absolute value of the average value HA (| HI | ≧ | HA |), the absolute value of the target value of the delay is calculated on the basis of the absolute value of the average value HI for the blocks judged to be subject areas. The target value of the delay is made positive if the average value HI is a positive value, while being made negative if the average value HI is a negative value. On the other hand, when the absolute value of the average value H1 is less than the absolute value of the average value HA (| HI | < | HA |), the absolute value of the target value of the delay is calculated on the basis of the absolute value of the average value HA for the blocks judged to be background areas. The target value of the delay is made negative if the average value HA is a positive value, while being made positive if the average value HA is a negative value. There is a case where the original 2D image is a transversely flowing image. The transversely flowing image is an image in which both a subject and a background are clearly moving in the same direction. For example, the transversely flowing image is an image in which a far scene is flowing slowly and a near scene is flowing fast when scenery is picked up from the window of an automobile, for example. When the original 2D image is such a transversely flowing image (the signs of HI and HA are the same), the absolute value of the target value of the delay is found in the same method as the above described method, while the plus or minus sign of the target value of the delay is determined in the following manner. When the original 2D image is a rightward flowing image (the sings of HI and HA are plus), the sign of the target value of the delay is made plus. When the original 2D image is a leftward flowing image (the sings of HI and HA are minus), the sign of the target value of the delay is made minus. The target value of the delay found in the foregoing step S15 is used for calculating the delay. The delay is so found as to gradually approach the target value of the delay found in the step S15. The sign of the found delay is an index as to whether or not the delayed image signal is selected as a right eye image signal or a left eye image signal. Specifically, the delayed image signal is selected as a right eye image signal when the sign of the delay is plus, while being selected as a left eye image signal when the sign of the delay is minus. The relationship between a field number of the 2D image signal inputted to the input terminal 1 and processing for calculating the target value of the delay performed in the foregoing step S15 is illustrated in Fig. 9. Furthermore, the entire flow of the above described subject/background judging processing is shown in Fig. 10. Figs. 11a and 11b show the detailed flow of the judging processing A, B and C and the processing for calculating the target value of the delay in the steps S13, S14 and S15 shown in Fig. 5a. In the step S21, the judging processing A is performed. Specifically, the total number of H blocks existing in the first target area shown in Fig. 7 and the number of L blocks existing in the first target area are compared with each other. The program proceeds to the step S22 when the total number of H blocks is larger, the program proceeds to the step S23 when the total numbers of both blocks are equal, and the program proceeds to the step S24 when the total number of L blocks is larger. In the steps S22, S23 and S24, the judging processing B is performed. Specifically, the total number of H blocks existing in the second target area shown in Fig. 8 and the total number of L blocks existing in the second target area are compared with each other. When it is judged in the step S22 that the total number of H blocks is larger, the program proceeds to the step S25. When it is judged in the step S22 that the total numbers of both blocks are equal or the total number of L blocks is larger, it is judged that the H blocks are background areas and the L blocks are subject areas (the final results of judgment (e) and (f)). When it is judged in the step S23 that the total number of H blocks is larger, it is judged that the H blocks are subject areas and the L blocks are background areas (the final result of judgment (g)). When it is judged in the step S23 that the total numbers of both blocks are equal, the program proceeds to the step S26. When it is judge in the step S23 that the total number of L blocks is larger, it is judged that the L blocks are subject areas and the H blocks are background areas (the final result of judgment (1)). When it is judged in the step S24 that the total number of H blocks is larger or the total numbers of both blocks are equal, it is judged that the H blocks are subject areas and the L blocks are background areas (the final results of judgment (m) and (n)). When it is judged in the step S24 that the total number of L blocks is larger, the program proceeds to the step S27. In the steps S25, S26 and S27, the first half of the judging processing C is performed. Specifically, the total number of H blocks existing in all the motion vector detecting areas and the total number of L blocks existing in all the motion vector detecting areas are compared with each other. The blocks whose total number is smaller are taken as target blocks. When it is judged in the steps S25, S26 and S27 that the H blocks are target blocks, the program respectively proceeds to the steps S28, S30 and S32. When it is judged in the steps S25, S26 and S27 that the L blocks are target blocks, the program respectively proceeds to the steps S29, S31 and S33. In the steps S28 to S33, the latter half of the judging processing C is performed. Specifically, it is judged whether or not the ratio η of the total number of target blocks existing in the first target area to the total number of target blocks existing in all the detecting areas is not less than 0.45. When it is judged in the steps S28, S30 and S32 that the above described ratio η of the H blocks which are target blocks to the total number of target blocks existing in all the detecting areas is not less than 0.45, it is judged that the H blocks are background areas and the L blocks are subject areas (the final results of judgment (a), (h) and (o)). When it is judged in the steps S29, S31 and S33 that the above described ratio η of the L blocks which are target blocks to the total number of target blocks existing in all the detecting areas is less than 0.45, it is also judged that the H blocks are background areas and the L blocks are subject areas (the final results of judgment (d), (k) and (r)). When it is judged in the steps S28, S30 and S32 that the above described ratio η of the H blocks which are target blocks to the total number of target blocks existing in all the detecting areas is less than 0.45, it is judged that the H blocks are subject areas and the L blocks are background areas (the final results of judgment (b), (i) and (p)). When it is judged in the steps S29, S31 and S33 that the above described ratio η of the L blocks which are target blacks to the total number of target blocks existing in all the detecting areas is not less than 0.45, it is also judged that the H blocks are subject areas and the L blocks are background areas (the final results of judgment (c), (j) and (q)). In the steps S34 to S51, the target value of the delay is determined. Specifically, the sum of the accumulated sums ΣV of values related to motion vectors in a period of 10 fields preceding the current field for the H blocks is found. The sum ΣΣV of the accumulated sums ΣV is divided by the total number of H blocks, thereby to find the average value AH of the sum ΣΣV of the accumulated sums ΣV. In addition, the sum of the accumulated sums ΣV of values related to motion vectors in a period of 10 fields preceding the current field for the L blocks is found. The sum ΣΣV of the accumulated sums ΣV is divided by the total number of L blocks, thereby to find the average value AL of the sum ΣΣV of the accumulated sums ΣV. When the H blocks are subject areas and the L blocks are background areas as the final results of the judgment {(b) (c) (g) (i) (j) (m) (n) (p) (q)}, the target value of the delay is determined in the following manner. Specifically, if the absolute value of the average value AH for the H blocks which are subject areas is not less than the absolute value of the average value AL for the L blocks which are background areas, the target value of the delay is determined on the basis of the following rule I: Rule I The target value of the delay is found from the absolute value of the average value AH for the H blocks which are subject areas. A delayed image signal is selected as an image signal for the eye corresponding to the direction to which the average motion vector (AH) for the H blocks which are subject areas is pointed. On the other hand, if the absolute value of the average value AL for the L blocks which are background areas is more than the absolute value of the average value AH for the H blocks which are subject areas, the target value of the delay is determined on the basis of the following rule II: Rule II The target value of the delay is found from the absolute value of the average value AH for the L blocks which are background areas. A delayed image signal is selected as an image signal for the eye corresponding to the direction opposite to the direction to which the average motion vector (AL) for the L blocks which are background areas is pointed. When the H blocks are background areas and the L blocks are subject areas as the final results of the judgment {(a) (d) (e) (f) (h) (k) (l) (o) (r)}, the target value of the delay is determined in the following manner. Specifically, if the absolute value of the average value AL for the L blocks which are subject areas is not less than the absolute value of the average value AH for the H blocks which are background areas, the target value of the delay is determined on the basis of the following rule III: Rule III The target value of the delay is found from the absolute value of the average value AL for the L blocks which are subject areas. A delayed image signal is selected as an image signal for the eye corresponding to the direction to which the average motion vector (AL) for the L blocks which are subject areas is pointed. On the other hand, if the absolute value of the average value AH for the H blocks which are background areas is more than the absolute value of the average value AL for the L blocks which are subject areas, the target value of the delay is determined on the basis of the following rule IV: Rule IV The target value of the delay is found from the absolute value of the average value AH for the H blocks which are background areas. A delayed image signal is selected as an image signal for the eye corresponding to the direction opposite to the direction to which the average motion vector (AH) for the H blocks which are background areas is pointed. Description is now made of the judging processing A, B and C and the processing for calculating a target value of a delay with respect to specific images respectively illustrated in Figs. 12, 14, 16, 18, 20, 22 and 24. Fig. 12 illustrates images in which a subject (an automobile) is moving from the left to the right on a screen ahead of a background (trees). The image on the left side of Fig. 12 is an image corresponding to the first field, and the image on the right side of Fig. 12 is an image corresponding to the tenth field. In such images, the sum of values related to motion vectors corresponding to ten fields for each of the motion vector detecting areas and NG areas are as shown in Fig. 13a, for example. As shown in Fig. 13b, the total number of H blocks existing in the first target area is one, and the total number of L blocks existing in the first target area is nine. In the judging processing A in the step S21 shown in Fig. 11a, therefore, it is judged that the total number of L blocks is larger, after which the program proceeds to the step S24. That is, as the result of the judging processing A, the H blocks are subject areas and the L blocks are background areas. As shown in Fig. 13c, the total number of H blocks existing in the second target area is four, and the total number of L blocks existing in the second target area is zero. In the judging processing B in the step S24 shown in Fig. 11a, therefore, it is judged that the total number of H blocks is larger, whereby the final result of subject/background judgment (m) is obtained. That is, as the result of the judging processing B, the H blocks are subject areas and the L blocks are background areas. The result of the judging processing B is the same as the result of the judging processing A, whereby the result of the judgment becomes the final result of judgment. Furthermore, the absolute value of the average motion vector (AH) for the H blocks which are subject areas is larger than the absolute value of the average motion vector (AL) for the L blocks which are background areas. Accordingly, the determination of the target value of the delay in the step S46 shown in Fig. 11b is made in accordance with the rule I. Specifically, the target value of the delay is taken as the absolute value of the average motion vector (AH) for the H blocks which are subject areas. In addition, a delayed image signal is selected as a right eye image corresponding to the direction to which the average motion vector (AH) for the H blocks is pointed. In the images shown in Fig. 12, therefore, a delayed image is selected as a right eye image corresponding to the direction in which the automobile is moving, thereby to obtain a 3D image in which the automobile is positioned ahead of trees which are a background. Fig. 14 illustrates images in which a background (a house) behind a subject (an automobile) is moving from the left to the right on a screen. The image on the left side of Fig. 14 is an image corresponding to the first field, and the image on the right side of Fig. 14 is an image corresponding to the tenth field. In such images, the sum of values related to motion vectors corresponding to ten fields for each of the motion vector detecting areas and NG areas are as shown in Fig. 15a, for example. As shown in Fig. 15b, the total number of H blocks existing in the first target area is twelve, and the total number of L blocks existing in the first target area is one. In the judging processing A in the step S21 shown in Fig. 11a, therefore, it is judged that the total number of H blocks is larger, after which the program proceeds to the step S22. That is, as the result of the judging processing A, the H blocks are background areas and the L blocks are subject areas. As shown in Fig. 15c, the total number of H blocks existing in the second target area is zero, and the total number of L blocks existing in the second target area is four. In the judging processing B in the step S22 shown in Fig. 11a, therefore, it is judged that the total number of L blocks is larger, whereby the final result of subject/background judgment (f) is obtained. That is, as the result of the judging processing B, the H blocks are background areas and the L blocks are subject areas. The result of the judging processing B is the same as the result of the judging processing A, whereby the result of the judgment becomes the final result of judgment. Furthermore, the absolute value of the average motion vector (AH) for the H blocks which are background areas is larger than the absolute value of the average motion vector (AL) for the L blocks which are subject areas. Accordingly, the determination of the target value of the delay in the step S39 shown in Fig. 11b is made in accordance with the rule IV. Specifically, the target value of the delay is taken as the absolute value of the average motion vector (AH) for the H blocks which are background areas. In addition, a delayed image signal is selected as a left eye image corresponding to the direction opposite to the direction to which the average motion vector (AH) for the H blocks is pointed. In the images shown in Fig. 14, therefore, a delayed image is selected as a left eye image corresponding to the direction opposite to the direction in which the house is moving, thereby to obtain a 3D image in which the house is positioned behind the automobile. The foregoing is an example in a case where the results of the judging processing A and the judging processing B are equal. Description is now made of an example in a case where the results of the judging processing A and the judging processing B differ, and the judging processing C is performed. Fig. 16 illustrates images in which a subject (birds) ahead of a background (mountains) is moving from the left to the right on a screen. The image on the left side of Fig. 16 is an image corresponding to the first field, and the image on the right side of Fig. 16 is an image corresponding to the tenth field. In such images, the sum of values related to motion vectors corresponding to ten fields for each of the motion vector detecting areas and NG areas are as shown in Fig. 17a, for example. As shown in Fig. 17b, the total number of H blocks existing in the first target area is two, and the total number of L blocks existing in the first target area is 11. In the judging processing A in the step S21 shown in Fig. 11a, therefore, it is judged that the total number of L blocks is larger, after which the program proceeds to the step S24. That is, as the result of the judging processing A, the H blocks are subject areas and the L blocks are background areas. As shown in Fig. 17c, the total number of H blocks existing in the second target area is one, and the total number of L blocks existing in the second target area is three. In the judging processing B in the step S24 shown in Fig. 11a, therefore, it is judged that the total number of L blocks is larger. That is, as the result of the judging processing B, the H blocks are background areas and the L blocks are subject areas. The result of the judging processing B differs from the result of the judging processing A, whereby the program proceeds to the step S27. In the step S27, the total number of H blocks existing in all the motion vector detecting areas and the total number of L blocks existing in all the motion vector detecting areas are compared with each other, and the blocks whose total number is smaller are taken as target blocks. In this example, the total number of H blocks is seven, and the total number of L blocks is 28, whereby the H blocks are selected as target blocks. The program then proceeds to the step S32. In the step S32, the ratio η of the total number of H blocks existing in the first target area to the total number of H blocks which are target blocks is found. In this example, the total number of H blocks is seven, and the total number of H blocks existing in the first target area is two. Therefore, the ratio η of the total number of H blocks existing in the first target area to the total number of H blocks becomes 2 / 7 (= 0.28 ...), which is less than 0.45, whereby the final result of judgment (p) is obtained. That is, it is judged that the H blocks are subject areas and the L blocks are background areas, and the result of the judgment is the final result of judgment. Furthermore, the absolute value of the average motion vector (AH) for the H blocks which are subject areas is larger than the absolute value of the average motion vector (AL) for the L blocks which are background areas. Accordingly, the determination of the target value of the delay in the step S49 shown in Fig. 11b is made in accordance with the rule I. Specifically, the target value of the delay is taken as the absolute value of the average motion vector (AH) for the H blocks which are subject areas. In addition, a delayed image signal is selected as a right eye image corresponding to the direction to which the average motion vector (AH) for the H blocks is pointed. In the images shown in Fig. 16, therefore, a delayed image is selected as a right eye image corresponding to the direction in which the birds are moving, thereby to obtain a 3D image in which the birds are positioned ahead of the mountains. Fig. 18 illustrates images in which a subject (a bus) ahead of a background (a sign) is moving from the right end to the left on a screen. The image on the left side of Fig. 18 is an image corresponding to the first field, and the image on the right side of Fig. 18 is an image corresponding to the tenth field. In such images, the sum of values related to motion vectors corresponding to ten fields for each of the motion vector detecting areas and NG areas are as shown in Fig. 19a, for example. As shown in Fig. 19b, the total number of H blocks existing in the first target area is four, and the total number of L blocks existing in the first target area is nine. In the judging processing A in the step S21 shown in Fig. 11a, therefore, it is judged that the total number of L blocks is larger, after which the program proceeds to the step S24. That is, as the result of the judging processing A, the L blocks are background areas and the H blocks are subject areas. As shown in Fig. 19c, the total number of H blocks existing in the second target area is zero, and the total number of L blocks existing in the second target area is four. In the judging processing B in the step S24 shown in Fig. 11a, therefore, it is judged that the total number of L blocks is larger. That is, as the result of the judging processing B, the L blocks are subject areas and the H blocks are background areas. The result of the judging processing B differs from the result of the judging processing A, whereby the program proceeds to the step S27. In the step S27, the total number of H blocks existing in all the motion vector detecting areas and the total number of L blocks existing in all the motion vector detecting areas are compared with each other, and the blocks whose total number is smaller are taken as target blocks. In this example, the total number of H blocks is eight, and the total number of L blocks is 26, whereby the H blocks are selected as target blocks. The program then proceeds to the step S32. In the step S32, the ratio η of the total number of H blocks existing in the first target area to the total number of H blocks which are target blocks is found. In this example, the total number of H blocks is eight, and the total number of H blocks existing in the first target area is four. Therefore, the ratio η of the total number of H blocks existing in the first target area to the total number of H blocks becomes 4 / 8 (= 0.5 ...), which is not less than 0.45, whereby the final result of judgment (o) is obtained. That is, it is judged that the H blocks are background areas and the L blocks are subject areas, and the result of the judgment is the final result of judgment. Furthermore, the absolute value of the average motion vector (AL) for the L blocks which are subject areas is larger than the absolute value of the average motion value (AH) for the H blocks which are background areas. Accordingly, the determination of the target value of the delay in the step S48 shown in Fig. 11b is made in accordance with the rule III. Specifically, the target value of the delay is taken as the absolute value of the average motion vectors (AL) for the L blocks which are subject areas. In addition, a delayed image signal is selected as a left eye image corresponding to the direction to which the average motion vector (AL) for the L blocks is pointed. In the images shown in Fig. 18, therefore, a delayed image is selected as a left eye image corresponding to the direction in which the bus is moving, thereby to obtain a 3D image in which the bus is positioned ahead of the sign. Fig. 20 illustrates images in which a subject (a bus) ahead of a background (mountains) is moving from the left to the right on a screen. The image on the left side of Fig. 20 is an image corresponding to the first field, and the image on the right side of Fig. 20 is an image corresponding to the tenth field. In such images, the sum of values related to motion vectors corresponding to ten fields for each of the motion vector detecting areas and NG areas are as shown in Fig. 21a, for example. As shown in Fig. 21b, the total number of H blocks existing in the first target area is eight, and the total number of L blocks existing in the first target area is five. In the judging processing A in the step S21 shown in Fig. 11a, therefore, it is judged that the total number of H blocks is larger, after which the program proceeds to the step S22. That is, as the result of the judging processing A, the H blocks are background areas and the L blocks are subject areas. As shown in Fig. 21c, the total number of H blocks existing in the second target area is four, and the total number of L blocks existing in the second target area is zero. In the judging processing B in the step S22 shown in Fig. 11a, therefore, it is judged that the total number of H blocks is larger. That is, as the result of the judging processing B, the H blocks are subject areas and the L blocks are background areas. The result of the judging processing B differs from the result of the judging processing A, whereby the program proceeds to the step S25. In the step S25, the total number of H blocks existing in all the motion vector detecting areas and the total number of L blocks existing in all the motion vector detecting areas are compared with each other, and the blocks whose total number is smaller are taken as target blocks. In this example, the total number of H blocks is 26, while the total number of L blocks is eight, whereby the L blocks are selected as target blocks. The program then proceeds to the step S29. In the step S29, the ratio η of the total number of L blocks existing in the first target area to the total number of L blocks which are target blocks is found. In this example, the total number of L blocks is eight, and the total number of L blocks existing in the first target area is five. Therefore, the ratio η of the total number of L blocks existing in the first target area to the total number of L blocks becomes 5 / 8 (= 0.625 ...), which is not less than 0.45, whereby the final result of judgment (c) is obtained. That is, it is judged that the H blocks are subject areas and the L blocks are background areas, and the result of the judgment is the final result of judgment. Furthermore, the absolute value of the average motion vector (AH) for the H blocks which are subject areas is larger than the absolute value of the average motion value (AL) for the L blocks which are background areas. Accordingly, the determination of the target value of the delay in the step S36 shown in Fig. 11b is made in accordance with the rule I. Specifically, the target value of the delay is taken as the absolute value of the average motion vector (AH) for the H blocks which are subject areas. In addition, a delayed image signal is selected as a right eye image corresponding to the direction to which the average motion vector (AH) for the H blocks is pointed. In the image shown in Fig. 20, therefore, a delayed image is selected as a right eye image corresponding to the direction in which the bus is moving, thereby to obtain a 3D image in which the bus is positioned ahead of the mountains. Fig. 22 illustrates images in which a subject (a helicopter) ahead of a background (buildings) is moving from the right end to the left on a screen. The image on the left side of Fig. 22 is an image corresponding to the first field, and the image on the right side of Fig. 22 is an image corresponding to the tenth field. In such images, the sum of values related to motion vectors corresponding to ten fields for each of the motion vector detecting areas and NG areas are as shown in Fig. 23a, for example. As shown in Fig. 23b, the total number of H blocks existing in the first target area is 11, and the total number of L blocks existing in the first target area is one. In the judging processing A in the step S21 shown in Fig. 11a, therefore, it is judged that the total number of H blocks is larger, after which the program proceeds to the step S22. That is, as the result of the judging processing A, the H blocks are background areas and the L blocks are subject areas. As shown in Fig. 23c, the total number of H blocks existing in the second target area is three, and the total number of L blocks existing in the second target area is one. In the judging processing B in the step S22 shown in Fig. 11a, therefore, it is judged that the total number of H blocks is larger. That is, as the result of the judging processing B, the H blocks are subject areas and the L blocks are background areas. The result of the judging processing B differs from the result of the judging processing A, whereby the program proceeds to the step S25. In the step S25, the total number of H blocks existing in all the motion vector detecting areas and the total number of L blocks existing in all the motion vector detecting areas are compared with each other, and the blocks whose total number is smaller are taken as target blocks. In this example, the total number of H blocks is 26, and the total number of L blocks is seven, whereby the L blocks are selected as target blocks. The program then proceeds to the step S29. In the step S29, the ratio η of the total number of L blocks existing in the first target area to the total number of L blocks which are target blocks is found. In this example, the total number of L blocks is seven, and the total number of L blocks existing in the first target area is one. Therefore, the ratio η of the total number of L blocks existing in the first target area to the total number of L blocks becomes 1 / 7 (= 0.14 ...), which is less than 0.45, whereby the final result of judgment (d) is obtained. That is, it is judged that the H blocks are background areas and the L blocks are subject areas, and the result of the judgment is the final result of judgment. Furthermore, the absolute value of the average motion vector (AL) for the L blocks which are subject areas is larger than the absolute value of the average motion value (AH) for the H blocks which are background areas. Accordingly, the determination of the target value of the delay in the step S37 shown in Fig. 11b is made in accordance with the rule III. Specifically, the target value of the delay is taken as the absolute value of the average motion vector (AL) for the L blocks which are subject areas. In addition, a delayed image signal is selected as a left eye image corresponding to the direction to which the average motion vector (AL) for the L blocks is pointed. In the images shown in Fig. 22, therefore, a delayed image is selected as a left eye image corresponding to the direction in which the helicopter is moving, thereby to obtain a 3D image in which the helicopter is positioned ahead of the buildings. Fig. 24 illustrates images in which a background (a tree) behind a subject (persons) is moving from the left end to the right on a screen. The image on the left side of Fig. 24 is an image corresponding to the first field, and the image on the right side of Fig. 24 is an image corresponding to the tenth field. In such images, the sum of values related to motion vectors corresponding to ten fields for each of the motion vector detecting areas and NG areas are as shown in Fig. 25a, for example. As shown in Fig. 25b, the total number of H blocks existing in the first target area is six, and the total number of L blocks existing in the first target area is six. In the judging processing A in the step S21 shown in Fig. 11a, therefore, it is judged that the total number of H blocks and the total number of L blocks are equal, after which the program proceeds to the step S23. As shown in Fig. 25c, the total number of H blocks existing in the second target area is two, and the total number of L blocks existing in the second target area is two. Also in the judging processing B in the step S23 shown in Fig. 11a, therefore, it is judged that the total number of H blocks and the total number of L blocks are equal, after which the program proceeds to the step S26. In the step S26, the total number of H blocks existing in all the motion vector detecting areas and the total number of L blocks existing in all the motion vector detecting areas are compared with each other, and the blocks whose total number is smaller are taken as target blocks. In this example, the total number of H blocks is 19, and the total number of L blocks is 16, whereby the L blocks are selected as target blocks. The program then proceeds to the step S31. In the step S31, the ratio η of the total number of L blocks existing in the first target area to the total number of L blocks which are target blocks is found. In this example, the total number of L blocks is 16, and the total number of L blocks existing in the first target area is six. Therefore, the ratio η of the total number of L blocks existing in the first target area to the total number of L blocks becomes 6 / 16 (= 0.37 ...), which is less than 0.45, whereby the final result of judgment (k) is obtained. That is, it is judged that the H blocks are background areas and the L blocks are subject areas, and the result of the judgment is the final result of the judgment. Furthermore, the absolute value of the average motion vector (AH) for the H blocks which are background areas is larger than the absolute value of the average motion value (AL) for the L blocks which are subject areas. Accordingly, the determination of the target value of the delay in the step S44 shown in Fig. 11b is made in accordance with the rule IV. Specifically, the target value of the delay is taken as the absolute value of the average motion vector (AH) for the H blocks which are background areas. In addition, a delayed image signal is selected as a left eye image corresponding to the direction opposite to the direction to which the average motion vector (AH) for the H blocks is pointed. In the images shown in Fig. 24, therefore, a delayed image is selected as a left eye image corresponding to the direction opposite to the direction in which the tree is moving, thereby to obtain a 3D image in which the tree is positioned behind the persons. When in the steps S25, 26 and 27, the total number of H blocks and the total number of L blocks are equal, a target value of a delay is not calculated in the present period of 10 fields. In such a case, it is preferable that a target value of a delay calculated in the previous period of 10 fields is a target value of a delay in the subsequent period of 10 fields. In such a case, the target value of the delay in the subsequent field may be set to zero. Fig. 26 shows processing used for judging whether or not a scene change occurs in the step 1 shown in Fig. 5a. The magnitude of a motion vector in the horizontal direction (a value related to a motion vector) in the current field in predetermined one motion vector detecting area A1 out of a plurality of motion vector detecting areas A1 to H5 is first acquired (step 121). The value related to the motion vector acquired in the step 121 is then added to the existing value (step 122). The initial value of the existing value is zero. The program is then returned to the step 121. In the step 121, the magnitude of a motion vector in the horizontal direction (a value related to a motion vector) in the current field in the other motion vector detecting area B1 is acquired (step 121). The acquired value related to the motion vector is added to the existing value, that is, the value related to the motion vector in the motion vector detecting area A1 (step 122). The sum of values related to motion vectors in the current field in all the motion vector detecting areas A1 to H5 is thus calculated (steps 121, 122, 123). When the current field is the t-th field (t is a natural number) and the sum of the values related to the motion vectors in the current field is taken as MX(t), MX(t) is represented by the following equation (1): Nx : the number of motion vector detecting areas in the transverse direction of a screen Ny : the number of motion vector detecting areas in the longitudinal direction of the screen Mij(t) : a motion vector in the t-th field ex : a unit vector in the transverse direction When the sum of the values related to the motion vectors in the current field for all the motion vector detecting areas is calculated (YES in the step 123), the average value of the sums of values related to motion vectors in fields preceding a field which is two fields preceding the current field is found (step 124). Specifically, the average value MXave(t - 2) of the sum MX(t - 3) of values related to motion vectors in an image corresponding to a field which is three fields preceding the current field and the sum MX(t - 2) of values related to motion vectors in an image corresponding to a field which is two fields preceding the current field is taken as the average value MXave(t - 2) of the sums of the values related to the motion vectors in the fields preceding the field which is two fields preceding the current field. MXave(t - 2) is found on the basis of the following equation (2): S : the number of fields for finding an average value MX(t + 1 - k) : the sum of values related to motion vectors in the (t + 1 - k) field In this example, S = 2. Although in the present embodiment, the average value MXave(t - 2) of the sum MX(t - 3) of the values related to the motion vectors in the image corresponding to the field which is three fields preceding the current field and the sum MX(t - 2) of the values related to the motion vectors in the image corresponding to the field which is two fields preceding the current field is taken as the average value of the sums of the values related to the motion vectors in the fields preceding the field which is two fields preceding the current field, the average value in two or more fields, for example, eight fields (S = 8) from a field which is two fields preceding the current field to a field which is nine fields preceding the current field may be taken as the average value of the sums of the values related to the motion vectors in the fields preceding the field which is two fields preceding the current field. The sum Mx(t) of the values related to the motion vectors in the current field which are obtained in the foregoing steps 121, 122 and 123 is then stored in a save memory (step 125). The sum of values related to motion vectors for each field is ensured with respect to images corresponding to several fields preceding the current field in the save memory. It is then judged whether or not the sum MX(t - 1) of values related to motion vectors in a field preceding the current field which is stored in the save memory is larger than the average value MXave(t - 2) obtained in the step 124 by not less than a predetermined value (for example, 40 pixels) (step 126). When the sum MX(t - 1) is not larger than the average value MXave(t - 2) by not less than a predetermined value, it is judged that no scene change occurs between the (t - 2)-th field and the (t - 1)-th field (step 129). When the sum MX(t - 1) is larger than the average value MXave(t - 2) by not less than a predetermined value, it is judged whether or not the sum MX(t - 1) of the values related to the motion vectors in the field preceding the current field which is stored in the save memory is larger than the sum MX(t) of the values related to the motion vectors in the current field which is stored in the save memory by not less than a predetermined value (for example, 40 pixels) (step 127). When the sum MX(t - 1) is not larger than the sum MX(t) by not less than a predetermined value, it is judged that no scene change occurs between the (t - 2)-th field and the (t - 1)-th field (step 129). When the sum MX(t - 1) is larger than the sum MX(t) by not less than a predetermined value, it is judged that a change point between scenes occurs between the image corresponding to the field which is two fields preceding the current field and the image corresponding to the field which is one field preceding the current field, after which the program proceeds to the step 128. Specifically, when the following expression (3) satisfying the conditions of MX(t - 1) >> MXave(t - 2) and MX(t - 1) >> MX(t) holds, it is judged that the value related to a motion vector is rapidly increased, and it is judged that a scene change occurs between the (t - 2)-th field and the (t - 1)-th field (step 128): MX(t - 1) >> MXave(t - 2) ∩ MX(t - 1) >> MX(t) Although in the above described embodiment, motion vectors are detected for each image corresponding to one field, motion vectors may be detected for each image corresponding to one frame or for each image corresponding to several fields. In the broad sense of the present invention, one frame and several fields are also represented by one field.

Claims: Method of determining background/foreground relationship of objects in an image being part of a sequence of images, comprising the steps of: a) dividing the image area into a plurality of detecting areas (A1-H5), b) detecting the amounts of horizontal movement within a detecting area for all detecting areas (A1-H5) based on the image and a preceding image to determine the amounts of horizontal movement of the objects, c) classifying the detection areas (A1-H5) into first detection areas having a large amount of horizontal movement and second detection areas having a small amount of horizontal movement by comparing the horizontal movement of all detection areas (A1-H5) after assigning, depending on the direction of the movement, plus or minus signs to the amounts of movement, d) defining a target area comprising a plurality of detecting areas either in the periphery A1-A5, B1, C1, D1, E1, F1, G1, H1-H5) or in the center (D3, D4, E3, E4) of the image area and counting the number of first detecting areas and the number of second detecting areas within the target area, e) comparing both numbers obtained in step d) to determine of which of the first and the second detection areas the target area contains more, and f) determining foreground/background relationship for the objects of the image on the basis of the result of step e), such that objects in those of the first and the second detecting areas of which the target area contains more are behind the objects in the others of the first and the second detecting areas, if the detection area is a peripheral area, or such that objects in those of the first and the second detecting areas of which the target area contains more are in front of the objects in the others of the first and the second detecting areas, if the detecting area is a central area. Method of determining a foreground-background relationship of objects in an image being part of a sequence of images, comprising the steps of a) dividing the image area into plurality of detecting areas (A1-H5), b) detecting the amounts of horizontal movement within an detecting area for all detecting areas (A1-H5) based on the image and a preceding image to determine the amounts of horizontal movement of the objects, c) classifying the detecting areas into first detecting areas having a large amount of horizontal movement and second detecting areas having a small amount of horizontal movement by comparing the horizontal movement of all detecting areas (A1-H5) after assigning, depending on the direction of the movement, plus or minus signs to the amounts of movement, d) defining a first target area (A1-A5, B1, C1, D1, E1, F1, G1, H1-H5) in the periphery of the image area, said target area (A1-A5, B1, C1, D1, E1, F1, G1, H1-H5) comprising a plurality of detecting areas, and counting the number of first detecting areas and the number of second detecting areas within the first target area (A1-A5, B1, C1, D1, E1, F1, G1, H1-H5), e) comparing both numbers obtained in step d) for the first target area (A1-A5, B1, C1, D1, E1, G1, H1-H5) to determine of which of the first and the second detecting areas the first target area (A1-A5, B1, C1, D1, E1, F1, G1, H1-H5) contains more, or whether both numbers are equal, f) defining a second target area (D3, D4, E3, E4) in the center of the image area, said target area (D3, D4, E3, E4) comprising a plurality of detection areas, and counting the number of first detecting areas and the number of second detecting areas within the first target area (D3, D4, E3, E4), g) comparing both numbers obtained in step f) for the second target area (D3, D4, E3, E4) to determine of which of the first and the second detecting areas the second target area (D3, D4, E3, E4) contains more, or whether both numbers are equal, h) comparing the result of step e) and step g) to determine whether the results of step e) and step g) differ, i) determining a foreground/background relationship for the objects of the image on the basis of the result of step e) if the numbers compared in step e) are not equal and the results of step e) and step g) differ, such that the objects in those of the first and the second detecting areas of which the first target area (A1-A5, B1, C1, D1, E1, F1, G1, H1-H5) contains more are positioned behind the objects in the others of the first and the second detecting areas. Method as defined in claim 2, comprising the further steps: k) counting the number of first detecting areas and the number of second detecting areas within the whole image area if the results of step e) and step g) do not differ, l) comparing both numbers obtained in step k) to determine which of the first and the second detecting areas the whole image area contains less, and taking those detecting areas as third detecting area, m) counting the number of third detecting areas within the first target area (A1-A5, B1, C1, D1, E1, F1, G1, H1-H5) and determining the ratio of the number of third detecting areas within the first target area (A1-A5, B1, C1, D1, E1, F1, G1, H1-H5) to the number of third detecting areas within the whole image area, n) determining a foreground/background relationship for the objects of the image on the basis of the ratio obtained in step m). Method as defined in claim 3, in which the foreground-background relationship is determined in step n) such that the objects in the third detecting areas are positioned in front of the objects in the others of the first and the second detecting areas if the ratio is less than a predetermined value, and such that the objects in the third detecting areas are positioned behind the objects in the others of the first and the second detecting areas if the ratio is not less than a predetermined value. Method as defined in one of the claims 2 to 4, comprising the further step of: determining a foreground-background relationship for the objects of the image on the basis of the result of step g) if the numbers compared in step e) are equal and the results of step e) and step g) differ, such that those of the first and the second detecting areas of which the second target area (D3, D4, E3, E4) contains more are positioned in front of the objects in the others of the first and the second detecting areas.

Inventors: IINUMA TOSHIYA, MURATA HARUHIKO, OKINO TOSHIYUKI, TANASE SUSUMU, UCHIDA HIDEKAZU, YAMASHITA SHUGO, IINUMA, TOSHIYA, MURATA, HARUHIKO, OKINO, TOSHIYUKI, TANASE, SUSUMU, UCHIDA, HIDEKAZU, YAMASHITA, SHUGO
Applicants: SANYO ELECTRIC CO, SANYO ELECTRIC CO. LTD
Application year: 1995
Main classification: G06T7
IPC codes: G06T7, H04N13, G06T17