iai_kinect2 icon indicating copy to clipboard operation
iai_kinect2 copied to clipboard

viewer - mutex lock

Open PetropoulakisPanagiotis opened this issue 5 years ago • 0 comments

Hi, in viewer.cpp in imageViewer(and cloudViewer) function, local var color points in the same data as color class member var. Prior call putText function, depth is converted to image(by dispDepth) and then color and depthDisp used in the combine function. If thread(imageViewer) swapped with a thread that handles callbacks there might occure some issuses. For example, if imageViewer thread call dispDepth function, then thread stopped(and may a callback thread read a new color and depth image), afterwards the imageViewer thread will call combine but with different color image. In conclustion, dispDepth and combine will handle frames with different time stamps. One solution is to clone color and depth class members in local variables.

PetropoulakisPanagiotis avatar Aug 07 '19 08:08 PetropoulakisPanagiotis