In this paper, we propose an effective saliency detection method based on dense and sparse representation in-terms of an optimized background template. Firstly, the input image is divided into compact and uniform super-pixels. Then, the optimized background template is produced by introducing boundary conductivity measurement to improve the dense and sparse representation of the image's super