1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Moved IntelligentScissors to photo module.

This commit is contained in:
Alexander Smorkalov
2026-05-12 18:52:20 +03:00
parent 223b110c30
commit 0ba56c3ecc
10 changed files with 25 additions and 27 deletions
@@ -5222,8 +5222,4 @@ Point LineIterator::pos() const
} // cv
#include "./imgproc/segmentation.hpp"
#endif
+1 -12
View File
@@ -102,17 +102,6 @@
"watershed"
],
"CLAHE": ["apply", "collectGarbage", "getClipLimit", "getTilesGridSize", "setClipLimit", "setTilesGridSize"],
"FontFace": ["set", "getName", "setInstance", "getInstance", "getBuiltinFontData"],
"segmentation_IntelligentScissorsMB": [
"IntelligentScissorsMB",
"setWeights",
"setGradientMagnitudeMaxLimit",
"setEdgeFeatureZeroCrossingParameters",
"setEdgeFeatureCannyParameters",
"applyImage",
"applyImageFeatures",
"buildMap",
"getContour"
]
"FontFace": ["set", "getName", "setInstance", "getInstance", "getBuiltinFontData"]
}
}
+2
View File
@@ -962,4 +962,6 @@ CV_EXPORTS_W void loadChromaticAberrationParams(
} // cv
#include "./photo/segmentation.hpp"
#endif
@@ -2,16 +2,16 @@
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_IMGPROC_SEGMENTATION_HPP
#define OPENCV_IMGPROC_SEGMENTATION_HPP
#ifndef OPENCV_PHOTO_SEGMENTATION_HPP
#define OPENCV_PHOTO_SEGMENTATION_HPP
#include "opencv2/imgproc.hpp"
#include "opencv2/photo.hpp"
namespace cv {
namespace segmentation {
//! @addtogroup imgproc_segmentation
//! @addtogroup photo_segmentation
//! @{
@@ -21,7 +21,7 @@ namespace segmentation {
* which can be used for image segmentation.
*
* Usage example:
* @snippet snippets/imgproc_segmentation.cpp usage_example_intelligent_scissors
* @snippet snippets/photo_segmentation.cpp usage_example_intelligent_scissors
*
* Reference: <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.138.3811&rep=rep1&type=pdf">"Intelligent Scissors for Image Composition"</a>
* algorithm designed by Eric N. Mortensen and William A. Barrett, Brigham Young University
@@ -138,4 +138,4 @@ protected:
} // namespace segmentation
} // namespace cv
#endif // OPENCV_IMGPROC_SEGMENTATION_HPP
#endif // OPENCV_PHOTO_SEGMENTATION_HPP
+12 -1
View File
@@ -21,6 +21,17 @@
"getSigmaColor", "setSigmaColor", "getSigmaSpace","setSigmaSpace"],
"TonemapMantiuk" : ["getScale", "setScale", "getSaturation", "setSaturation"],
"TonemapReinhard" : ["getIntensity", "setIntensity", "getLightAdaptation", "setLightAdaptation",
"getColorAdaptation", "setColorAdaptation"]
"getColorAdaptation", "setColorAdaptation"],
"segmentation_IntelligentScissorsMB": [
"IntelligentScissorsMB",
"setWeights",
"setGradientMagnitudeMaxLimit",
"setEdgeFeatureZeroCrossingParameters",
"setEdgeFeatureCannyParameters",
"applyImage",
"applyImageFeatures",
"buildMap",
"getContour"
]
}
}
+2 -2
View File
@@ -24,8 +24,8 @@ if(NOT BUILD_EXAMPLES OR NOT OCV_DEPENDENCIES_FOUND)
return()
endif()
set(DEPS_example_snippet_imgproc_segmentation opencv_core opencv_imgproc)
set(DEPS_example_cpp_intelligent_scissors opencv_core opencv_imgproc opencv_imgcodecs opencv_highgui)
set(DEPS_example_snippet_imgproc_segmentation opencv_core opencv_photo)
set(DEPS_example_cpp_intelligent_scissors opencv_core opencv_photo opencv_imgcodecs opencv_highgui)
project(cpp_samples)
ocv_include_modules_recurse(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS})
@@ -1,5 +1,5 @@
#include "opencv2/imgproc.hpp"
#include "opencv2/imgproc/segmentation.hpp"
#include "opencv2/photo.hpp"
#include "opencv2/photo/segmentation.hpp"
using namespace cv;