Automated export of Depth, Stencil and Final Images captured via camera

Hi guys,

I need to write logic that exports captured frames - especially custom depth, stencil and final images and store them in local folder for export. Plz give me ideas. I saw this logic in Microsoft Airsim.

Capture source is a camera. SceneCaptureComponent helps me capture finals images but i couldn’t find a way to export custom depth & stencils using SceneCaptureComponent

Thank you