I added a button to the toolbar to open a dialog and allow me to vary the parameters to the C++ routine. Currently only MONO8, but I'll see about MONO16 and perhaps RGB.
The approach you suggested certainly works. I don't know to what extent ADPB suits astro images, but I've something to play with now.
yes, the FrameCaptured event is pretty much the first thing that happens after the data comes off the camera - nothing will have touched the image data at this point.
BeforeFrameDisplay is the last thing before showing on screen - at this point dark/flat processing, frame transforms have happened. The frame is still at it's original bit depth and may not have been debayered by this point (some transforms debayer the frame earlier than this). The frame has also already been written to file if capturing at this point.