void cv::viz::VizAccessor::add(Viz3d window) { String window_name = window.getWindowName(); VizMap::iterator vm_itr = impl_->viz_map.find(window_name); if (vm_itr == impl_->viz_map.end()) impl_->viz_map.insert(VizPair(window_name, window)); }
void cv::viz::VizStorage::add(const Viz3d& window) { String window_name = window.getWindowName(); VizMap::iterator vm_itr = storage.m.find(window_name); CV_Assert(vm_itr == storage.m.end()); storage.m.insert(std::make_pair(window_name, window)); }