Can I convert from Contour (vector) to Mat?

Thank you so much your reply
As you can see, There’s a dent in the middle left. I want to fill it with black. And, uh, I want to soften the edges. The red line is what I drew by hand.
If it possible, can you teach to me source code? C++