示例#1
0
文件: vizcore.cpp 项目: ArkaJU/opencv
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;
}
示例#2
0
文件: viz.cpp 项目: AlgoFl4sh/opencv
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);
}
示例#3
0
文件: viz.cpp 项目: AlgoFl4sh/opencv
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);
}
示例#4
0
文件: vizcore.cpp 项目: ArkaJU/opencv
bool cv::viz::VizStorage::windowExists(const String &window_name)
{
    String name = generateWindowName(window_name);
    return storage.m.find(name) != storage.m.end();
}