One new multifocus image fusion algorithm is proposed based on human vision system.According to the characteristics of multifocus images
one approach which can search the approximate(crude) position of focus region in images based on comparison of the contrast error of blocks every certain rows and columns is adopted
and the correct position of the focus region is confirmed based on the approximate position using the comparison of the contrast error of blocks again
then the image is divided into three parts:focus region
nonfocus region and the boundary between the focus region and nonfocus region.Take the focus regions in the two candidate images
and calculate the weighted sum of the boundares
then we can obtain the fused image.Experiments prove that the new algorithm is faster and more precise than traditional wavelet-based fusion algorithm and block-based algorithm.