[Jderobot-admin] jderobot-r1087 - trunk/src/stable/components/rgbdCalibrator

rocapal en jderobot.org rocapal en jderobot.org
Dom Nov 3 19:09:43 CET 2013


Author: rocapal
Date: 2013-11-03 19:09:43 +0100 (Sun, 03 Nov 2013)
New Revision: 1087

Modified:
   trunk/src/stable/components/rgbdCalibrator/viewer.cpp
Log:
#27 check if the files into images/ folder are jpg



Modified: trunk/src/stable/components/rgbdCalibrator/viewer.cpp
===================================================================
--- trunk/src/stable/components/rgbdCalibrator/viewer.cpp	2013-11-02 19:50:32 UTC (rev 1086)
+++ trunk/src/stable/components/rgbdCalibrator/viewer.cpp	2013-11-03 18:09:43 UTC (rev 1087)
@@ -87,7 +87,7 @@
 	mCalibration = new Calibration();
 
 	on_bt_intrinsic();
-
+	
 	pthread_mutex_init(&mutex, NULL);
 
 
@@ -110,6 +110,7 @@
 void Viewer::display( const colorspaces::Image& imageColor, const colorspaces::Image& imageDepth )
 {
 
+
 	// Draw optical center
 	for (int i = -2; i<=2; i++)
 			for (int j =-2; j<=2; j++)
@@ -538,6 +539,10 @@
 	for ( boost::filesystem::directory_iterator itr( pathImage ); itr != end_itr; ++itr )
 	{
 
+		if ( itr->path().generic_string().find("jpg") == std::string::npos )
+			continue;
+
+		std::cout << itr->path().generic_string() << std::endl;
 		Mat view;
 		view = imread(itr->path().c_str(), CV_LOAD_IMAGE_COLOR);
 



More information about the Jderobot-admin mailing list