// Save color where the mouse is clicked in trackColor variable
int loc = mouseX + mouseY*width;
println(loc);
}
It shows this:
the code works for 1st and 2nd frame (which is DepthImage and RGBImage),
But I wonder why it display black at the 3rd Frame? Because I expect it display the copy of the 2nd frane (which is RGBImage).
Is there any wrong in my code?
I am using PImage to display video bcause I would like to use some of PImage methods (like pixels) which inspired from this simple motion detection code and single color tracking code: