This sample code uses Portrait Effect Matte as a mask image to extract a person.
Primary LanguageSwift