Access to HUD in main

Hi guys,

Hopefully, an easy fix.

I want to do some image processing with the camera for some state estimation. So, in the main loop in program.c, I want to get an instance of the hud

Control.Hud images = new Control.Hud() //instance of Hud

Image img = images.ibgimg(set;) //somehow get the images in the main with time stamp to do image processing

This is the problem, I do not see how I can get this to work - the last line. The idea is that I want to do image analysis (spatial derivatives and such) in quick succession.

How can I get the image information from the hud in the main loop?

Thanks for your assistance.