added GC_COLOR_GRAD cost function type into opencv_stitching
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
class ExposureCompensator
|
||||
{
|
||||
public:
|
||||
enum { NO, OVERLAP };
|
||||
enum { NO, OVERLAP, SEGMENT };
|
||||
static cv::Ptr<ExposureCompensator> createDefault(int type);
|
||||
|
||||
virtual void feed(const std::vector<cv::Point> &corners, const std::vector<cv::Mat> &images,
|
||||
@@ -78,4 +78,12 @@ private:
|
||||
};
|
||||
|
||||
|
||||
class SegmentExposureCompensator : public ExposureCompensator
|
||||
{
|
||||
public:
|
||||
void feed(const std::vector<cv::Point> &corners, const std::vector<cv::Mat> &images,
|
||||
const std::vector<cv::Mat> &masks);
|
||||
void apply(int index, cv::Point corner, cv::Mat &image, const cv::Mat &mask);
|
||||
};
|
||||
|
||||
#endif // __OPENCV_EXPOSURE_COMPENSATE_HPP__
|
Reference in New Issue
Block a user