I tackle the fringe issue by experimenting with filters by starting to find the values of alpha is decent to work with on the start, and I manipulate that base image with long series of painting and usage of filter brush, and nondestructive filters. may or may not apply this to several different masked or on separate layersI gotten beautiful results by doing it by hand, but it is just really painful. I just often click the x if the efforts takes too long.
McCap
13
Is there a trick to that tool?
I tried it yesterday and it didn’t select much more than what I had selected?
Using the latest gimp AppImage from 2017-08-07 and the latest McGimp release on os x 10.11, using the Foreground Extraction tool, I can’t change the “Engine” combo box because it is grayed out. @patdavid @Carmelo_DrRaw @partha – any ideas?
@s7habo how on earth did you do that, could you record a video? I tried in 2.9.6, and like @paperdigits wrote I cannot select the engine, it’s grayed-out, and using whatever engine is active the result is and always has been garbage.
s7habo
(Boris Hajdukovic)
16
Yes, this is sometimes the problem with blurred or noisy parts of the image. The trick is first, to separate the foreground from the background as precisely as possible using brushes before applying the algorithm.
If the first result is not satisfactory, you can make further corrections with the brush by switching between foreground and background selection option of the brush.
What I don’t like about implementation in GIMP is that after the initial implementation of the algorithm after each additional stroke of the brush, the calculation is starting to run again! In this way, this already very slow process is unnecessarily stretched even longer.
In some cases helps “Feather Selection” option in brush menu.
If the foreground selection is done and there are still artifacts, I copy the selection to the new layer and make manual corrections with the help of eraser tool with low hardness and opacity switching between “erase” and “un-erase” mode of the tool.
I’m using Gimp from ppa:otto-kesselgulasch/gimp-edge and ATM I have GIMP 2.9.7.

Strange, but until now, I’ve always had this option! I’ll make a video later and put it here.
1 Like
McCap
17
It is grayed out for me as well, I’m on @partha’s version (2.9.5 I think)
1 Like
houz
18
You need to build gegl with libumfpack so that gegl:matting-levin gets build.
Edit: On Debian you need libsuitesparse-dev for that.
2 Likes
s7habo
(Boris Hajdukovic)
19
@Morgan_Hardwood Here’s the video:
Please note: I have scaled the original image for the faster calculation speed of the engine for Video and shortened the waiting times of the calculation. Original video length was about 6 min.
9 Likes
I’ll try to implement this in the appimage, and make a new package.
Thanks for the hint!
2 Likes
patdavid
(Pat David)
21
I know the question has been answered for getting the matting extraction (ty @houz).
For using it, I had recorded a video a few years ago that used this as part of an experimental fork of GIMP back then:
4 Likes
Murmele
22
For me the ‘Levin-Matting’ algorithm crashes gimp. I have to try gimp 2.9.7 if there isn’t this crash.
@s7habo
Thank you for your great video!
Punche
23
??? I don’t know what any of that means. I am trying to change the engine, but it grayed out.
If the engine is grayed out, your version of gimp isn’t built with support for that option.
Punche
25
What versions are supported? I have the most recent developerer version.
Punche
26
Can’t change to levin-matting in 2.9 It’s grayed out
Punche
27
I have the exact same issue.
Bilbo
28
For anyone on Windows, samj’s portable compile works with both matting options.
houz
29
I pinged the GIMP dev who is making the official installer. I’ll report back once I know more. I suppose that it’s just an oversight.
Edit: The answer was that it was just forgotten indeed. The next release will have it fixed.
1 Like
Punche
30
Thanks to everyone that helped me! I really apprecite it!
Hi,
I’m using the flatpak for GIMP 2.10.6 and the Matte Engine drop-down menu is grayed out. Could it be that the flatpak is missing a library ?