57 if (mLastData.
gray.rows != 480 || mLastData.
gray.cols != 640)
60 if (mLastData.
gray.rows >= mLastData.
gray.cols)
62 nsize.width = (int)(((
float)mLastData.
gray.cols * 480.0f) / (float)mLastData.
gray.rows);
68 nsize.height = (int)(((
float)mLastData.
gray.rows * 640.0f) / (
float)mLastData.
gray.cols);
70 cv::resize(mLastData.
gray, mLastData.
gray, nsize, 0, 0, cv::INTER_CUBIC);
73 cv::equalizeHist(mLastData.
gray, mLastData.
gray);
74 ArManager::MarkerList::iterator imarker;
79 boost::shared_lock< boost::shared_mutex > lockList(manager->
listMutex);
86 lastVisible = (*imarker);
95 if (lastVisible == (*imarker) || (lastVisible == 0))
106 boost::this_thread::sleep_for(boost::chrono::milliseconds(1));