Quadtree-based multi-focus image fusion using a weighted focus-measure