Low frame because GetImage

i use Kinect4WinSDK libraries. my sketch have low frame when i use GetImage. but if i delete GetImage, return normal frame. How do i go for the normal frame while using the GetImage ?? help me plz : )

Answers

  • Some functions in some libraries tend to be very slow. While I have no knowledge whatsoever of Kinect, I can safely assume that Getimage is slow itself.
    There can be two causes -
    One is that your device is too slow. In that case upgrade it.
    Other is that the function requires access to slow hardware.

  • You can try to convince GetImage to run on a separate thread, then the sketch will keep on being responsive while the image from Kinect is loaded. You won't be able to have a new image on every draw iteration.

  • @colouredmirrorball It would probably not help much though, as as you mentioned you won't have a new image on every draw iteration. Besides, you should have mentioned that he would need to synchronise the thread as it accesses the same image object.

Sign In or Register to comment.