cv::viz::Viz3d& cv::viz::VizStorage::get(const String &window_name) { String name = generateWindowName(window_name); VizMap::iterator vm_itr = storage.m.find(name); CV_Assert(vm_itr != storage.m.end()); return vm_itr->second; }
cv::viz::Viz3d cv::viz::VizAccessor::get(const String & window_name) { // Add the prefix Viz String name; generateWindowName(window_name, name); VizMap::iterator vm_itr = impl_->viz_map.find(name); return vm_itr != impl_->viz_map.end() ? vm_itr->second : Viz3d(window_name); }
void cv::viz::VizAccessor::remove(const String &window_name) { // Add the prefix Viz String name; generateWindowName(window_name, name); VizMap::iterator vm_itr = impl_->viz_map.find(name); if (vm_itr != impl_->viz_map.end()) impl_->viz_map.erase(vm_itr); }
bool cv::viz::VizStorage::windowExists(const String &window_name) { String name = generateWindowName(window_name); return storage.m.find(name) != storage.m.end(); }