Commit bcba3fc6 authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #1263 from abidrahmank:pyCLAHE_24

parents e3d50890 96c1df14
...@@ -759,20 +759,20 @@ CV_EXPORTS double compareHist( const SparseMat& H1, const SparseMat& H2, int met ...@@ -759,20 +759,20 @@ CV_EXPORTS double compareHist( const SparseMat& H1, const SparseMat& H2, int met
//! normalizes the grayscale image brightness and contrast by normalizing its histogram //! normalizes the grayscale image brightness and contrast by normalizing its histogram
CV_EXPORTS_W void equalizeHist( InputArray src, OutputArray dst ); CV_EXPORTS_W void equalizeHist( InputArray src, OutputArray dst );
class CV_EXPORTS CLAHE : public Algorithm class CV_EXPORTS_W CLAHE : public Algorithm
{ {
public: public:
virtual void apply(InputArray src, OutputArray dst) = 0; CV_WRAP virtual void apply(InputArray src, OutputArray dst) = 0;
virtual void setClipLimit(double clipLimit) = 0; CV_WRAP virtual void setClipLimit(double clipLimit) = 0;
virtual double getClipLimit() const = 0; CV_WRAP virtual double getClipLimit() const = 0;
virtual void setTilesGridSize(Size tileGridSize) = 0; CV_WRAP virtual void setTilesGridSize(Size tileGridSize) = 0;
virtual Size getTilesGridSize() const = 0; CV_WRAP virtual Size getTilesGridSize() const = 0;
virtual void collectGarbage() = 0; CV_WRAP virtual void collectGarbage() = 0;
}; };
CV_EXPORTS Ptr<CLAHE> createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8)); CV_EXPORTS_W Ptr<CLAHE> createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8));
CV_EXPORTS float EMD( InputArray signature1, InputArray signature2, CV_EXPORTS float EMD( InputArray signature1, InputArray signature2,
int distType, InputArray cost=noArray(), int distType, InputArray cost=noArray(),
......
...@@ -124,6 +124,7 @@ typedef Ptr<FeatureDetector> Ptr_FeatureDetector; ...@@ -124,6 +124,7 @@ typedef Ptr<FeatureDetector> Ptr_FeatureDetector;
typedef Ptr<DescriptorExtractor> Ptr_DescriptorExtractor; typedef Ptr<DescriptorExtractor> Ptr_DescriptorExtractor;
typedef Ptr<Feature2D> Ptr_Feature2D; typedef Ptr<Feature2D> Ptr_Feature2D;
typedef Ptr<DescriptorMatcher> Ptr_DescriptorMatcher; typedef Ptr<DescriptorMatcher> Ptr_DescriptorMatcher;
typedef Ptr<CLAHE> Ptr_CLAHE;
typedef SimpleBlobDetector::Params SimpleBlobDetector_Params; typedef SimpleBlobDetector::Params SimpleBlobDetector_Params;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment