it works now.
many thanks!
should I leave this patched SCM-manager version or wait next release?
svn diff -r 84:86 controller.cpp
Index: controller.cpp
===================================================================
--- controller.cpp (revision 84)
+++ controller.cpp (revision 86)
@@ -46,12 +46,13 @@
//Send new image
std::cout << "file:" << simulationFiles->at(i).absoluteFilePath().toLocal8Bit().constData() << std::endl;
cv::Mat img;
- img = cv::imread(simulationFiles->at(i).absoluteFilePath().toLocal8Bit().constData());
+ img = cv::imread(simulationFiles->at(i).absoluteFilePath().toLocal8Bit().constData(), CV_LOAD_IMAGE_COLOR);
cv::Mat RGB161616(img.rows,img.cols, cv::DataType<uint16_t>::type);
img.convertTo(RGB161616, RGB161616.type(), 256.0);
//Send image
emit(newSimulatedImage(&RGB161616));
this->msleep(50);
+ wait_for_transfer->acquire();
std::cout << "Send new image to other thread for NDVI calculation" << std::endl;
//Inform camera
can_data[0] = image_n;