Skip to content

Commit

Permalink
Merge pull request #12503 from nikhedonia:12500-move-gcgraph
Browse files Browse the repository at this point in the history
* feat: move gcgraph to detail

* chore: puts gcgraph cv::detail namespace
  • Loading branch information
nikhedonia authored and alalek committed Sep 17, 2018
1 parent 808ba55 commit e628fd7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
Expand Up @@ -39,9 +39,12 @@
//
//M*/

#ifndef _CV_GCGRAPH_H_
#define _CV_GCGRAPH_H_
#ifndef OPENCV_IMGPROC_DETAIL_GCGRAPH_HPP
#define OPENCV_IMGPROC_DETAIL_GCGRAPH_HPP

//! @cond IGNORED

namespace cv { namespace detail {
template <class TWeight> class GCGraph
{
public:
Expand Down Expand Up @@ -382,4 +385,9 @@ bool GCGraph<TWeight>::inSourceSegment( int i )
return vtcs[i].t == 0;
}

#endif
}} // namespace detail, cv


//! @endcond

#endif // OPENCV_IMGPROC_DETAIL_GCGRAPH_HPP
3 changes: 2 additions & 1 deletion modules/imgproc/src/grabcut.cpp
Expand Up @@ -40,10 +40,11 @@
//M*/

#include "precomp.hpp"
#include "gcgraph.hpp"
#include "opencv2/imgproc/detail/gcgraph.hpp"
#include <limits>

using namespace cv;
using namespace detail;

/*
This is implementation of image segmentation algorithm GrabCut described in
Expand Down
2 changes: 0 additions & 2 deletions modules/stitching/src/precomp.hpp
Expand Up @@ -91,8 +91,6 @@
# include "opencv2/xfeatures2d/cuda.hpp"
#endif

#include "../../imgproc/src/gcgraph.hpp"

#include "opencv2/core/private.hpp"

#include "util_log.hpp"
Expand Down
1 change: 1 addition & 0 deletions modules/stitching/src/seam_finders.cpp
Expand Up @@ -41,6 +41,7 @@
//M*/

#include "precomp.hpp"
#include "opencv2/imgproc/detail/gcgraph.hpp"
#include <map>

namespace cv {
Expand Down

0 comments on commit e628fd7

Please sign in to comment.