Skip to content

Commit

Permalink
Translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
derzu committed Apr 20, 2018
1 parent 2b12249 commit 27a0755
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/SampleViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ Point3D* SampleViewer::getClosestPoint(openni::VideoFrameRef *frame, Point3D *fu
}
#endif


SampleViewer::~SampleViewer()
{
finalize();
Expand Down Expand Up @@ -234,17 +233,15 @@ int SampleViewer::init()
int SampleViewer::run() //Does not return
{
#ifdef DEPTH
printf("Compilado com Depth\n");
printf("Compiled with Depth\n");
#else
printf("Compilado SEM Depth\n");
printf("Compiled without Depth\n");
#endif

while (1) {
display();
char c = (char)waitKey(10);
//char c = (char)waitKey(100);
//char c = (char)waitKey(200);
//char c = (char)waitKey(500);
//char c = (char)waitKey(1000);
if( c == 27 || c == 'q' || c == 'Q' )
break;
Expand Down Expand Up @@ -283,7 +280,7 @@ void SampleViewer::display()
//srcFrame = framec.clone();
}
else
printf("frame nulo\n");
printf("null frame\n");
}
#endif

Expand Down Expand Up @@ -338,12 +335,12 @@ printf("w x h = %d x %d\n", width, height);
memset(m_pTexMap, 0, width*height*sizePixel);

skelD->prepareAnalisa(closest, furthest);
//colore e obtem a imagem binarizada
//paint with color and get the binarized image.
skelD->paintDepthCopy((openni::RGB888Pixel*)m_pTexMap, srcFrame, binarized, depthMat);

skel->setDepthMat(depthMat);

// Converte o openni::VideoFrameRef (srcFrame) para um cv::Mat (frame)
// Convert openni::VideoFrameRef (srcFrame) to cv::Mat (frame)
Mat frame = Mat(Size(width, height), CV_8UC3);
memcpy(frame.data, m_pTexMap, width*height*sizePixel);
#else
Expand Down

0 comments on commit 27a0755

Please sign in to comment.