Image processing method and apparatus

Abstract: In an image processing apparatus, a plurality of substantially corresponding points are designated on a reference image and a peripheral image. The degree of coincidence is detected between a window in the peripheral image with a corresponding point as the center, and windows successively cut from the reference image, whose center is a corresponding point. The corresponding point at the center of the window having the highest degree of coincidence in the reference image is moved and an offset between this corresponding point and the corresponding point on the peripheral image is detected. When a corresponding point whose offset is greater than a threshold exists, the peripheral image is subjected to an affine transformation using a corresponding point on the reference image whose offset is less than the threshold. The processing is repeated by using the corresponding point on the transformed peripheral image. The two images are merged by an affine transformation when the offsets of all corresponding points become smaller than the threshold.

Description: This invention relates to an image processing method and apparatus for pasting together two or more images. A prior-art image processing apparatus is available for pasting together and connecting a plurality of images at their common portions. In general, in an image processing apparatus of this kind, the operator uses a pointing device such as a mouse to designate corresponding points in an area common to two images, namely a pasted image and an image to be pasted. Affine transformation coefficients are obtained in such a manner that the designated corresponding points of both images are made to coincide, and the pasted image is subjected to an affine transformation using the affine transformation coefficients obtained. In the above-described image processing apparatus, however, since the affine coefficients are obtained in accordance solely with the designated corresponding points, the correct affine coefficients cannot be obtained unless the corresponding points are designated accurately. Accordingly, since the operator is forced to designate accurate corresponding points, a large load is placed upon the operator. A concern of the present invention is to provide an image processing method and apparatus in which, when a plurality of images are pasted together, it is possible to find accurate corresponding points from designated corresponding points and obtain affine coefficients on the basis of the found corresponding points, thereby reducing the load upon the operator when the corresponding points are being designated. Another concern of the present invention is to provide an image processing method and apparatus in which, when corresponding points designated at the pasting together of a plurality of images include corresponding points whose positions are offset by a large margin, the designated points can be corrected. A further concern of the present invention is to provide an image processing method and apparatus in which it is possible to find appropriate positions of corresponding points, which have been designated on first and second images, in a prescribed zone which includes the designated corresponding points, and to correct the positions of the corresponding points, thereby making it possible to paste together images precisely. Yet another concern of the present invention is to provide an image processing method and apparatus in which it is possible to acquire, from a plurality of partial images extracted from a prescribed zone which includes a corresponding point of a first image, a partial image having the highest correlation with a peripheral image of a corresponding point, located on a second image, forming a pair with the first-mentioned corresponding point, and to correct the corresponding points on the basis of the position of this partial image. Yet another concern of the present invention is to provide an image processing method and apparatus in which an affine transformation is executed after corresponding points designated on first and second images have been moved to proper positions, thereby making it possible to readily correct corresponding points. A further concern of the present invention is to provide an image processing method and apparatus in which it is possible to execute correction of the position of a corresponding point after an affine transformation so that the search for proper corresponding points can be achieved stably even if an image to be merged is rotated. A further concern of the present invention is to provide an image processing method and apparatus in which, when a pair of corresponding points exists in which the offset between the corresponding points of two images is greater than a predetermined value after an affine transformation, an affine transformation of the images is performed using a pair of corresponding points in which the offset between the corresponding points is less than the predetermined value, and the position of each corresponding point is capable of being corrected on the basis of the results of the transformation. A further concern of the present invention is to provide an image processing method and apparatus in which, when a proper position is found from corresponding points within a prescribed range of corresponding points corrected on the basis of results of executing an affine transformation using a pair of corresponding points between which the offset is less than a predetermined value, the size of the search zone is made smaller than that of the preceding cycle so that corresponding points having a small amount of offset can be detected with assurance. A further concern of the present invention is to provide an image processing method and apparatus in which, when an affine transformation is executed using a pair of corresponding points whose offset is less than a predetermined value, notification is given of the fact that the number of usable pairs is inadequate when such is the case. A further concern of the present invention is to provide an image processing method and apparatus in which, when an affine transformation is executed using a pair of corresponding points whose offset is less than a predetermined value, the predetermined value is changed and the number of usable pairs is increased if the number of usable pairs is inadequate. An article entitled IEEE Transactions on Image Processing, vol 2, No 3, 1 July 1993 pages 311-326, QINFEN ZHENG ET AL "A Computational Vision Approach to Image Registration" discloses a computational approach for estimating 2-D translations of views taken by a camera in which an illuminant direction estimation is used to obtain an estimate of camera rotation and then a number of feature points are located using a Gabor wavelet model and are matched. Thereafter hierarchical feature matching is performed. Another article entitled Remote Sensing: Economic Tool for the Nineties, Vancouver, July 10-14 1989, vol 3, 10 July 1989 Institute of Electrical and Electronics Engineers, pages 1287-1290, Hiroshi Hanaizumi et al "An Automatic Registration Method for Remotely Sensed Multispectral Images by Using Spatial Correlation Between Local Triangles" discloses automatically selected GCP pairs on a reference and a distorted image to determine transformation from one image to another. In accordance with one aspect of the present invention there is provided an image processing apparatus as set out in claim 1. In accordance with another aspect of the present invention there is provided an image processing method as set out in claim 15. Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof. The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention. Fig. 1 is a block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention; Fig. 2 is a flowchart showing a procedure for pasting images according to this embodiment; Fig. 3 is a diagram for describing an example of execution of processing for pasting together images according to this embodiment; Fig. 4 is a flowchart showing a procedure of processing for correcting corresponding points having a large offset; Figs. 5A to 5C are diagrams for describing a procedure for correcting corresponding points having a large offset; Figs. 6A to 6C are diagrams showing examples of methods of cutting a window from a search zone; Fig. 7 is a flowchart showing an example of a modification of the processing procedure of this embodiment; and Fig. 8 is a flowchart of processing for determining whether an affine transformation using corresponding points whose offsets are smaller than a threshold value is executable or not. An embodiment of the present invention will now be described in detail with reference to the accompanying drawings. In this embodiment, an example will be described in which the invention is applied to an apparatus for pasting together images of the fundus of the eye. Since a retinal or ophthalmic camera has a very narrow angle of view, the amount of information obtained from a single captured image of the fundus is very small. In order to use such an ophthalmic image as an aid in diagnosis, it is necessary to paste together a number of ophthalmic images to produce a single meaningful image. When color ophthalmic images resulting from photography are pasted together using a conventional image processing apparatus, it is required that the operator give accurate corresponding points with regard to two color ophthalmic images possessing a common area. The image processing apparatus according to this embodiment is so adapted that the load upon the operator is lightened by reducing the exactness required of the corresponding points when a plurality of captured color images are pasted together. Fig. 1 is a block diagram illustrating the image processing system according to this embodiment, which is for pasting together color ophthalmic images. The apparatus includes a retinal camera 1 which performs ophthalmic photography. An ophthalmic image captured by the retinal camera 1 is converted into R, G, B digital data (eight bits per color) delivered as an output. It should be noted that the device for entering the ophthalmic image is not limited to an arrangement in which the image is inputted directly from a retinal camera. For example, the input can be made from a storage medium (an external storage device 44) such as a magnetic disk storing the image, or the images on a plurality of slides produced by photography can be entered by reading the images from a slide scanner 2. The latter is a device which reads images from a plurality of slides and outputs the images as ophthalmic images. A computer 3 controls the overall image processing apparatus. The computer 3 is connected to a memory 4 having a ROM 41 for storing a control program in accordance with which the computer 3 executes various control operations, as well as various data, and a RAM 42 for furnishing a work area used when the computer 3 executes processing. The memory 4 further includes the aforementioned external storage device 44 so that an arrangement may be adopted in which the control program is loaded into the RAM 42 from the external storage device 44. Further, the external storage device 44 may be so adapted as to store ophthalmic images that are processed by the image processing apparatus of this embodiment. The memory 4 is further provided with a video RAM (VRAM) for storing image data indicative of an entered ophthalmic image. The computer 3 is further connected to a display 5 for displaying ophthalmic images, which have been stored in the VRAM 43, when a series of pasting operations is carried out. A printer 6 is connected to the computer 3 to print the final image resulting from pasting. The computer 3 is connected to an input device 7 constituted by a pointing device for designating corresponding points when images are pasted together, as well as a keyboard for entering various data. A procedure for pasting together images in the image processing apparatus of the embodiment constructed as set forth above will now be described with reference to Figs. 2, 4, 5A to 5C and 6A to 6C. In the image processing apparatus of this embodiment, processing for pasting together a plurality of captured ophthalmic images is executed. Fig. 2 is a flowchart showing the procedure for pasting together images according to this embodiment. The control program for implementing control illustrated by the flowchart is stored in the ROM 41. Further, Fig. 3 is a diagram for describing an example of execution of the processing shown in the flowchart of Fig. 2. The operation of this embodiment will now be described with reference to Figs. 2 and 3. First, at step S1, a reference image 301 and a peripheral image 302, which are images to be pasted together, are entered from the retinal camera 1 or slide scanner 2. The image data in this embodiment is R, G, B data of eight bits per color. Next, at step S2, the image data representing the two images is transferred to the VRAM 43 and displayed on the display device 5. This is followed by step S3, at which the operator uses the input device 7 (a pointing device or the like) to designate the general positions of a plurality of seemingly corresponding points (such as the branch points of blood vessels) in a common area of the two displayed images. These designated points shall be taken as being corresponding points and each is indicated by an "×" mark in the reference image 301 and peripheral image 302 in Fig. 3. Next, at step S4, affine transformation coefficients are decided on the basis of the plurality of corresponding points designated on the reference image 301 and peripheral image 302, and an affine transformation is applied to the peripheral image 302 using the coefficients decided. In Fig. 3, numeral 303 denotes the peripheral image obtained as the result of the affine transformation. The program then proceeds to step S5, at which degree of correlation is computed. Specifically, one corresponding point is selected from the peripheral image 303 that has undergone the affine transformation, and a window 304 of a prescribed size (M pixels horizontally and L pixels vertically) centered on this corresponding point is cut from the image. A corresponding point which corresponds to the corresponding point selected from the peripheral image 303 is extracted from among the corresponding points in the reference image 301. With the corresponding point extracted from the reference image 301 serving as the center, a search zone 305 of a prescribed size is obtained in the reference image 301. A window having a size (L × M pixels) identical with that of the window 304 is successively cut from the search zone 305 and the degree of correlation c between this window and the window 304 obtained from the peripheral image 303 is acquired in accordance with the following equation, in which A (l,m) represents the data of each pixel of the window 304 and B (l,m) represents the data of each pixel of the window cut from the search zone 305 of the reference image 301: where Since color image data is dealt with in this embodiment, the degree of correlation c is computed for each of the color components R, G and B and the average value is adopted as the degree of correlation. Further, various methods can be used to cut the window from the search zone 305. Figs. 6A to 6C are diagrams showing examples of methods for cutting a window of size L × M from the search zone 305. As shown in Fig. 6A, the search zone 305 is subdivided according to the size of the window 304 to successively cut the window from the zone. Further, as shown in of Fig. 6B, the order in which the window is cut from the zone may have a spiral configuration centered on the corresponding point. As shown in Fig. 6C, the window may be cut from the zone so as to partially overlap, thus making it possible to calculate the degree of correlation more finely. When degrees of correlation have been computed with regard to all windows cut from the search zone 305, the program proceeds to step S6. Here the window having the highest degree of correlation among those computed at step S5 is extracted from the search zone 305. The center point of the window thus extracted is set anew as a corresponding point, on the reference image 301, which corresponds to the corresponding point at the center of the window 304. The above-described processing is executed with regard to all corresponding points designated at step S3. Next, at step S7, a threshold value is used to evaluate the offset between each corresponding point generated anew on the reference image 301 at step S6 and each corresponding point on the peripheral image 303. In a case where the offsets of all corresponding points are less than the threshold value, the program proceeds to step S9. Here the peripheral image 302 is subjected to an affine transformation using the affine transformation coefficients generated at step S4, and the image 302 and reference image 301 are pasted together. Thus, a merged image 306 is produced. If it is found at step S7 that the offset of any of the corresponding points is greater than the threshold value, then the program proceeds to step S8. Here affine transformation coefficients are decided solely from corresponding points whose offsets are smaller than the threshold value, and corresponding points whose offsets are larger than threshold value are corrected based upon the results. The processing of step S8 for correcting a corresponding point having a large offset will now be described in detail with reference to Figs. 4 and 5A to 5C. Fig. 4 is a flowchart showing the procedure of processing for correcting corresponding points having a large offset, and Figs. 5A to 5C are diagrams for describing the procedure for correcting corresponding points having a large offset. According to this correction processing, the affine transformation is performed at step S41 using only corresponding points whose offsets are less than the threshold value employed at step S7. For example, in Fig. 5A, the affine transformation is performed using only corresponding points for which the offsets between corresponding points  of the peripheral image 501 and the corresponding paints ▪ of the peripheral image are less than the threshold value, as a result of which a peripheral image 502' shown in of Fig. 5B is obtained. Next, at step S42, each corresponding point on the reference image 501 is set anew as the position of each corresponding point on the peripheral image 502'. That is, the corresponding points in the reference image 501 are moved to the positions of the corresponding points on the peripheral image 502' that has undergone the affine transformation and these points are adopted as new corresponding points. This is illustrated in Fig. 5C. It should be noted that while the positions of all corresponding points are updated in this embodiment, an arrangement may be adopted in which only the positions of corresponding points whose offsets are greater than the threshold value are updated. Further, at step S43, a search zone 305' smaller than the search zone 305 is set anew, after which the program returns to step S5 in Fig. 2. By thus narrowing the search zone each time the processing of step S8 is repeated, a state is finally obtained in which the offsets of all corresponding points become smaller than the threshold value. As mentioned above, a merged image in which the reference image and peripheral image are pasted together is produced on the basis of the affine transformation coefficients finally decided. In the above-described correction processing, if the number of corresponding points for which the offsets are smaller than the threshold value is less than the number necessary for performing the affine transformation, it means that the designation of corresponding points was too coarse. The operator is notified of this fact in the form of an error indication. An arrangement may be adopted in this case in which it is separately provided a second threshold value (which is greater than the threshold value used at step S7) for selecting corresponding points having a small offset. Then, in a case where a sufficient number of corresponding points cannot be selected based upon the threshold value used at step S7, the selection of corresponding points is performed using the second threshold value. Fig. 8 is a flowchart of processing for determining whether the number of usable corresponding points is adequate before execution of an affine transformation using corresponding points whose offsets are smaller than a threshold value. The processing according to this flowchart is executed prior to step S41 in Fig. 4. As shown in Fig. 8, the number of corresponding points whose offsets are smaller than the threshold value are counted at step S411, after which it is determined at step S412 whether an affine transformation is possible. If the affine transformation is possible, then the program proceeds directly to step S41 in Fig. 4. In a case where there are not enough usable corresponding points for the purpose of executing the affine transformation, the program proceeds to step S413. Here it is determined whether the threshold value is the enlarged threshold value (a second threshold value). If the threshold value is not the second threshold value, then the program proceeds to step S414, at which the second threshold value is set as the present threshold value, after which the program returns to step S411. In a case where adequate corresponding points cannot be obtained even with the second threshold value, the program proceeds from step S413 to step S415, where the operator is so notified in the form of an error indication. In accordance with this embodiment, as described above, two or more color images can be pasted together to produce an image over a larger area in a case where only partial information is obtained with one color image owing to such limitations as the conditions of photography. In this pasting operation, the operator designates coarse corresponding points in a portion common to both color images, whereby accurate corresponding points are found so that a high-quality merged image can be produced. In a case where color images are thus pasted together, it is possible to find accurate corresponding points. As a result, the load upon the operator is reduced greatly since the operator need only designate roughly the corresponding points of the images to be pasted together. In addition, even if corresponding points having large offsets are designated, the apparatus functions so as to correct the search zone. This raises pasting precision and greatly improves operability. In this embodiment, an example is described in which ophthalmic images are subjected to pasting processing. However, the invention is not limited to this embodiment; processing for pasting together ordinary color images can be applied as is. Furthermore, though the embodiment described deals with the pasting of color images, it goes without saying that the above-described processing is applicable to multivalued and two-valued monochromatic images. In such case the computation of degree of correlation need be performed for only one color. Various modifications for the foregoing embodiment may be obtained on the basis of the concept of the present invention. For example, as shown in Fig. 7, processing can be simplified by eliminating the correction of corresponding points having large offsets. Further, the affine transformation is executed after updating of position, based upon degree of correlation, of each corresponding point on the reference image 301. Processing (steps S7, S8 in Fig. 2) relating to corresponding points having large offsets is not executed. In another example of a modification, it is possible to move the affine transformation indicated at step S4 in the flowchart of Fig. 2 to the YES branch point of step S7. In accordance with the procedure of the foregoing modifications, the positional correction of corresponding points will not be carried out in a case where the corresponding points have been designated with offsets that are excessively large. Hence there is the possibility that the precision of image pasting will decline. However, the positions of suitable corresponding points are searched for within the above-mentioned search zone. Therefore, if the precision with which the corresponding points are designated is assured to a certain extent, accurate pasting processing is possible with a simple arrangement. It will suffice if the precision with which corresponding points are designated is such that suitable corresponding points reside within the search zone. In other words, if the search zone is made large, the allowable range is enlarged with regard to designation precision, though this will increase the amount of processing necessary for computing degree of correlation. Further, in accordance with the procedure of the foregoing modifications, the search for corresponding points is performed before the affine transformation. Consequently, if two images to be merged are rotated by a large amount, the search for suitable corresponding points within the search zone may be impeded. The reason for this is that the degree of correlation c is inaccurate because the window image cut from the peripheral image is rotated relative to the partial image cut from the search zone. However, in a case where the rotation of the two images to be merged is small, or in a case where it is assured by the mechanism of the imaging system that the two images will undergo translational motion, highly precise pasting together of the images is possible without hindrance. It should be noted that if two images to be merged undergo translational motion, merging of the images is possible using one set of corresponding points. It goes without saying that the search for suitable corresponding points may be executed after the affine transformation, and that an arrangement may be adopted in which the affine transformation is executed again using suitable corresponding points after these corresponding points have been obtained. In accordance with the present embodiment, as described above, accurate corresponding points are found from designated corresponding points when pasting together a plurality of images, and affine coefficients can be obtained on the basis of the corresponding points found. As a result, the load upon the operator when designating the corresponding points is alleviated. Furthermore, by providing means for correcting corresponding points having large offsets, it is possible to obtain a merged image having a high quality. The present invention can be applied to a system constituted by a plurality of devices or to an apparatus comprising a single device. Furthermore, it goes without saying that the invention is applicable also to a case where the object of the invention is attained by supplying a program to a system or apparatus. As many apparently widely different embodiments of the present invention can be made, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims.

Claims: An image processing apparatus comprising: display means (5) for displaying first and second images which are to be pasted together; setting means (7) for setting one or more first points on the first image and one or more second points on the second image, each of the second points being associated with an individual first point; and transform means (3, S4) for transforming the second image on the basis of matching each pair of first and second points, characterised in that said setting means (7) are manual so that an operator can set each of the second points so as to correspond coarsely to its associated first point; and that the apparatus further comprises: acquisition means (3, S5) for acquiring with respect to a selected point of one or more second points of the transformed second image, a first partial area (304) of a first predetermined size which includes at its centre selected point; determination means (3, S6) for determining a partial area of said first predetermined size having the maximum correlation with respect to said first partial area (304), within a search area (305) of a second predetermined size centred on the corresponding first point of the first image; update means (3, S6) for updating with respect to the first point the centre of the partial area with the maximum correlation as a new first point; and merging means (3, S9) for merging the first and second images into a merged image once the distances between each pair of the second points and the associated new first points on the merged image is smaller than a threshold. Apparatus according to claim 1 wherein the determination and update means are adapted to act on a plurality of first and new points. Apparatus according to claim 1 or claim 2, wherein said merging means includes transforming means for performing an affine transformation of the first image to generate the initial merger. Apparatus according to any one of claims 1 to 3, wherein said determining means includes: cutting means for cutting out from the search area a plurality of partial images each of which having the first predetermined size; and selection means for selecting the second partial image from among the plurality of cut out partial images. Apparatus according to any preceding claim, wherein said acquisition means includes second transforming means for performing an affine transformation on the first image and the first partial image (304). Apparatus according to any preceding claim, wherein the first and second images are color images and the correlation between the first and second images is an average of the correlation acquired for each color component of the color image. Apparatus according to claim 1 or claim 3, wherein said merging means includes: distance determination means (3) for determining whether each distance between respective one of the first points and the new second point corresponding thereto is smaller than the threshold; and correcting means (3) which in the case where plurality of pairs of the first points and the second points corresponding thereto includes a pair for which the distance between is not smaller than the threshold are adapted to correct the position of said first point in such a manner that said distance becomes smaller than the predetermined value; wherein said acquisition means, said determination means and said distance determination means are adapted to re-execute their respective operations using the corrected position. Apparatus according to claim 7, wherein said correcting means includes: third transforming means which, in the case where the plurality of pairs of the first points and corresponding second points includes a pair for which the distance therebetween is not smaller than the threshold, is adapted to obtain a second transformed image by transforming the first image using a pair of corresponding first and second points for which the distance is smaller than the threshold; and altering means for altering the position of the second point on the basis of the position of each corresponding first point located on the second transformed image. Apparatus according to claim 8, wherein said merging means is adapted to merge the first and second images on the basis of finally obtained results of transformation by said third transformation means. Apparatus according to claim 8 or claim 9, wherein said altering means is adapted to alter the position of the second point of the pair for which the distance is not smaller than the threshold to the position of the corresponding first point on the second transformed image. Apparatus according to claim 8, wherein said altering means is adapted to alter all positions of the second points to the positions of the corresponding first points on the second transformed image. Apparatus according to claim 8, and adapted to reduce the second predetermined size of the search area whenever determination by said determining means is re-executed. Apparatus according to any one of claims 7 to 12, further comprising notification means which, in the case where the number of pairs of corresponding points for which the distances are smaller than the threshold is insufficient for execution of the affine transformation by said third transformation means, are adapted to give notification to this effect to a user. Apparatus according to any one of claims 8 to 12, wherein in the case that the number of pairs of corresponding points for which the distances are smaller than the threshold is insufficient for executing the affine transformation by said third transformation means, selection of a pair of corresponding points to be used in the affine transformation is performed based upon a second threshold greater than the threshold. An image processing method comprising: displaying first and second images which are to be pasted together; setting one or more first points on the first image and one or more second points on the second image, each of the second points being associated with an individual first point; and transforming the second image on the basis of matching each pair of first and second points, characterised in that said setting means are manual so that an operator sets each of the second points so as to correspond coarsely to its associated first point; the method further comprising: acquiring with respect to a selected point of one or more second points of the transformed second image, a first partial area (304) of a first predetermined size which includes at its centre selected point; determining a partial area of said first predetermined size having the maximum correlation with respect to said first partial area (304), within a search area (305) of a second predetermined size centred on the corresponding first point of the first image; updating with respect to the first point the centre of the partial area with the maximum correlation as a new first point; and for merging the first and second images into a merged image once the distances between each pair of the second points and the associated new first points on the merged image is smaller than a threshold. A method according to claim 2, wherein said first and second images are merged so that the distances of a plurality of first and new points are smaller than the threshold. A method according to claim 15 or claim 16, wherein said first and second images are merged by performing an affine transformation. A method according to claim 16 or claim 17, wherein said determining step includes: cutting out from the search area a plurality of partial images each of which have the first predetermined size; and selecting the partial image from among the plurality of cut out partial images which has the maximum correlation with said search area (305). A method according to any one of claims 15 to 18, means including performing an affine transformation on the first image and the first partial area (304). A method according to any one of claims 15 to 19, wherein the first and second images are color images and the correlation between the first and second images is an average of the correlation acquired for each color component of the color image. A method according to claim 15, 16 or 17, including determining whether the distance between respective ones of the first points and the new second points corresponding thereto is smaller than the threshold; and correcting in the case where the plurality of pairs of the first points and the second points corresponding thereto includes a pair for which the distance therebetween is not smaller than the threshold, the position of said first point of such a pair in such a manner that said distance becomes smaller than the predetermined value; wherein said acquisition, said determination and said distance determination are re-executed using the corrected position. A method according to claim 21, wherein said correction includes: a third transforming step which, in the case where the plurality of pairs of the first points and corresponding second points includes a pair for which the distance therebetween is not smaller than the threshold, obtains a second transformed image by transforming the first image using a pair of corresponding first and second points for which the distance is smaller than the threshold; and altering the position of the second points on the basis of the position of each corresponding first point located on the second transformed image. A method according to claim 22, wherein said merging of the first and second images is carried out on the basis of the finally obtained results of transformation by said third transformation step. A method according to claim 22 or claim 23, said alter step alters the position of the second point of the pair for which the distance is not smaller than the threshold to the position of the corresponding first point on the second transformed image. A method according to claim 22, wherein said alteration step alters all positions of the second points to the positions of the corresponding first points on the second transformed image. A method according to any one of claims 15 to 25, adapted to reduce the second predetermined size of the search area whenever determination by said determining means is re-executed. A method according to any one of claims 15 to 25, further comprising utilising notification means which, in the case where the number of pairs of corresponding points for which the distances are smaller than the threshold is insufficient for execution of the affine transformation are adapted to give notification to this effect to a user. A method according to any one of claims 15 to 26, wherein in the case that the number of pairs of corresponding points for which the distances are smaller than the threshold is insufficient for executing the transformation step, selection of a pair of corresponding points to be used in the affine transformation in said third transforming step is performed based upon a second threshold greater than the initial threshold.

Inventors: OKUTOMI MASATOSHI, SHIMIZU YUKIHIKO, URUSHIYA HIROYUKI, YOSHIZAKI OSAMU, OKUTOMI, MASATOSHI, SHIMIZU, YUKIHIKO, URUSHIYA, HIROYUKI, YOSHIZAKI, OSAMU, OKUTOMI, MASATOSHI, C/O CANON KABUSHIKI KAISHA, SHIMIZU, YUKIHIKO, C/O CANON KABUSHIKI KAISHA, URUSHIYA, HIROYUKI C/O KOSUGI JIGYOSHO CANON, YOSHIZAKI, OSAMU, C/O CANON KABUSHIKI KAISHA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1994
Main classification: G06T7
IPC codes: G06T3, G06T7, H04N1