The image frames are a type of the ColorImageFrame
class. Depending on the type of images you are using, the sensor will return the image frame. To get any color frame from the sensor, you need to either subscribe to the event handler or explicitly send the request to the sensor to send a frame:
There are two ways of capturing the same in your application:
Event model
Polling model
Using the event model, the Kinect sensor sends the frame to the application whenever a new frame is captured by the sensor. For that you need to subscribe to the specific event handler using your code, where you need to process the incoming frames. Before subscribing to the event, you must tell the SDK the color type and resolution of image streams you are looking for. Once it's subscribed to, the sensor will send the data continuously unless you disable and unsubscribe the channel, or stop the sensor.