Weighted color and texture sample selection for image matting

E.Shahrian, D.Rajan, Weighted color and texture sample selection for image matting , CVPR 2012
695 Downloads
Updated 2 Oct 2014

View License

Source code of the paper :
E.Shahrian, D.Rajan, "Weighted color and texture sample selection for image matting" , CVPR 2012
(Make sure the paper is properly cited when use the code. Free license for Academic purposes. )
Color information is leveraged by color sampling-based matting methods to find the best known samples for foreground and background color of unknown pixels. Such methods do not perform well if there is an overlap in the color distribution of foreground and background regions because color cannot distinguish between these regions and hence, the selected samples cannot reliably estimate the matte. Similarly, alpha propagation based matting methods may fail when the affinity among neighboring pixels is reduced by strong edges. In this paper, we overcome these two problems by considering texture as a feature that can complement color to improve matting. The contribution of texture and color is automatically estimated by analyzing the content of the image. An objective function containing color and texture components is optimized to choose the best foreground and background pair among a set of candidate pairs. Experiments are carried out on a benchmark data set and an independent evaluation of the results show that the proposed method is ranked first among all other image matting methods.

Cite As

Ehsan Shahrian varnousfaderani (2024). Weighted color and texture sample selection for image matting (https://www.mathworks.com/matlabcentral/fileexchange/47990-weighted-color-and-texture-sample-selection-for-image-matting), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0