The requirement of the images registration of pathologic slices is more demanding than others in quality
but some of the present methods of images registration will produce unmatched phenomena. In order to solve this problem
a new stitching algorithm of images based on relativity is presented here. In this algorithm
the character of the image is got from the two parallel columns (or lines) in the overlap area of images
which will be stitched up each other. To avoid the accumulation of the"disturbance"
the maximal envelop is taken as the element of template
which is the strongest character in the curve of difference data. And according to the relativity of the image content
the method of images registration will be proceeded by using the template which is made by the distribution of the maximal convex envelop
then the effect of the "disturbance" will be reduced
thus the method of images registration mentioned here is more steady than some former similar methods. Experiments demonstrate that this algorithm not only is more regular and stable
but also has a faster calculating speed. It's a more practical method of images registration.