Is there any CIFilter to merge AVDepthData and AVPortraitEffectsMatte

I'm making an app with the API AVDepthData and AVPortraitEffectsMatte. The depth map is great, but the resolution is very low. I can use the CIFilter to enlarge the depth map, but the border of portrait isn't clear like the portrait matte. Is there any API or CIFilter to merge them together and make the depth map much better?


Thank you.