/saliency-from-backproj

Saliency map generated by back projecting the image histogram on itself, and refinement with Grabcut.

Primary LanguagePython

saliency-from-backproj

Saliency map generated by back projecting the image histogram on itself, and refinement with Grabcut.

Backprojection based saliency Backprojection based saliency Backprojection based saliency Backprojection based saliency

Usage example:

img = cv2.imread(image.jpg, 1)
img = cv2.resize(img, (640/2, 480/2))
mask = backprojection_saliency(img)
segmentation = img*mask[:,:,np.newaxis]

For more details refer here.