jacobgil / saliency-from-backproj

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

Home Page:http://jacobcv.blogspot.com/2015/04/simple-image-saliency-detection-from.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

http://jacobcv.blogspot.com/2015/04/simple-image-saliency-detection-from.html


Languages

Language:Python 100.0%