Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GSoC 2019]Alphamatting #2240

Closed
wants to merge 58 commits into from
Closed

[GSoC 2019]Alphamatting #2240

wants to merge 58 commits into from

Conversation

muskaankularia
Copy link

@muskaankularia muskaankularia commented Aug 25, 2019

Merge with extra: opencv/opencv_extra#668

Adding functionality of alphamatting algorithm - Implementation of "Designing Effective Inter-Pixel Information Flow for Natural Image Matting"

code in src file can be run by - g++ -std=c++11 alphac.cpp pkg-config --cflags --libs opencv
by giving appropriate input.

third party libraries used for

  • KDtree(nanoflann)
  • Eigen library for conjugate gradient method for Sparse matrices.

I have added the tests

  • yet to run them and resolve the build errors.
opencv_extra=master

@muskaankularia muskaankularia changed the title Alphamatting [GSoC 2019]Alphamatting Aug 25, 2019
muskaankularia added a commit to muskaankularia/opencv_extra that referenced this pull request Aug 26, 2019
files required for new algorithm implementation(Information flow alphamatting) tests. PR in opencv_contrib is -  opencv/opencv_contrib#2240
@alalek
Copy link
Member

alalek commented Aug 27, 2019

Files changed 323
+120,465

Lets avoid placing of 3rdparty libraries into OpenCV code base.
Assume that Eigen is installed and properly detected by CMake automatically.
For custom Eigen installation (e.g., on Windows) use:

cmake -DHAVE_EIGEN=1 -DEIGEN_INCLUDE_PATH=<path_to_eigen> ...

On Linux install Eigen via package manager - it will be detected automatically.

Add check for HAVE_EIGEN value and disable module if not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants