How to read two in row image frames from kinect v2
EDITED:
Hello,
I am new to image processing in ROS, but I have some experience with opencv and what I want to do is to read two frames in row from kinect, take their absolute difference and detect a moving object in real time.
To be more specific, I want to implement the logic of :
videoCapture::read(cv::Mat frame1);
videoCapture::read(cv::Mat frame2);
in the logic of ROS (the logic of messages).
How can I achieve that?
I have previously worked with the kinect v2 and managed to detect an object with its color, so I think I know most of the basics about image transportation, but I am a bit confused on how could I implement the logic of the following frames above in ROS.
Thanks for answering and for your time in advance, Chris