velocityRequest.property = VehicleProperty::VehicleSpeed;
velocityRequest.completed = [](AsyncPropertyReply* reply)
{
- DebugOut()<<"Velocity Async request completed: "<<reply->value->toString()<<endl; delete reply;
+ DebugOut()<<"Velocity Async request completed: "<<reply->value->toString()<<endl;
+ delete reply;
};
routingEngine->getPropertyAsync(velocityRequest);
{
OpenCvLuxPlugin::Shared* shared = static_cast<OpenCvLuxPlugin::Shared*>(data);
-/* if(kinect)
+ cv::Mat m_image;
+
+ if(shared->kinect)
{
- m_capture->grab();
- m_capture->retrieve( m_image, CV_CAP_OPENNI_GRAY_IMAGE );
+ shared->m_capture->grab();
+ shared->m_capture->retrieve( m_image, CV_CAP_OPENNI_GRAY_IMAGE );
}
- else*/
+ else
{
- cv::Mat m_image;
-
*(shared->m_capture) >> m_image;
uint lux = evalImage(m_image,shared);
cv::Scalar avgPixelIntensity;
- if(useOpenCl)
+ if(shared->useOpenCl)
{
#ifdef OPENCL
cv::Scalar stdDev;
}
else
{
- cv::Scalar avgPixelIntensity = cv::mean(qImg);
+ avgPixelIntensity = cv::mean(qImg);
}