protected virtual void OnColorFrameReceived(KinectBase.ColorFrameEventArgs e)
{
if (ColorFrameReceived != null)
{
ColorFrameReceived(this, e);
}
//Put the object back in the image pool
if (e.isIR)
{
irImagePool.PutObject(e.image);
}
else
{
colorImagePool.PutObject(e.image);
}
}