Is it possible to edit frame data?

Is it possible to alter frame/frameset data before passing it to a filter?
I would like to do some custom preprocessing on a depth frame before using the PointCloudFilter to convert it into a pointcloud.

Thanks