Tue Jan 24, 2017 5:31 pm
First off, it always helps to separate the matte creation and color operations from each other. Try to create a good matte, then worry about spill, fringing and other problems that are color related and in the end inject the matte into the corrected FG stream.
There is no good way around fringing because FG pixel values are contaminated with BG color. Eroding the matte in is not the way out, restoring the FG pixel values is. There are different methods for it, from cloning, flooding pixel values out (blur+unpremult), distortion methods and so on. You need to remove the BG contamination from FG or shift the colors so that they fit better with the new BG. Most likely you have to treat separate areas separately and combine them in the end.
I do stuff