# AlphaMatting **Repository Path**: sunkingxie/AlphaMatting ## Basic Information - **Project Name**: AlphaMatting - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-01-23 - **Last Updated**: 2021-01-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Alpha Matting This is an OpenCV2 version for algorithm described by paper: >[Shared Sampling for Real-Time Alpha Matting](http://inf.ufrgs.br/~eslgastal/SharedMatting/) Eduardo S. L. Gastal and Manuel M. Oliveira Computer Graphics Forum. Volume 29 (2010), Number 2. Proceedings of Eurographics 2010, pp. 575-584. ## Usage SharedMatting sm; sm.loadImage(pathToImage); // load image from pathToImage sm.loadTrimap(pathToTrimap); // load Trimap from pathToTrimap sm.solveAlpha(); // do the shared matting algorithm sm.save(pathToSave); // save result image For details, please refer to Readme.txt and main.cpp. ## Example ###input ![input.png](input.png) ![trimap.png](trimap.png) ###result ![result.png](result.png)