CLAHE.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. //
  2. // This file is auto-generated. Please don't modify it!
  3. //
  4. #pragma once
  5. #ifdef __cplusplus
  6. //#import "opencv.hpp"
  7. #import "opencv2/imgproc.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "Algorithm.h"
  13. @class Mat;
  14. @class Size2i;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class CLAHE
  17. /**
  18. * Base class for Contrast Limited Adaptive Histogram Equalization.
  19. *
  20. * Member of `Imgproc`
  21. */
  22. CV_EXPORTS @interface CLAHE : Algorithm
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::CLAHE> nativePtrCLAHE;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::CLAHE>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::CLAHE>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // void cv::CLAHE::apply(Mat src, Mat& dst)
  33. //
  34. /**
  35. * Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.
  36. *
  37. * @param src Source image of type CV_8UC1 or CV_16UC1.
  38. * @param dst Destination image.
  39. */
  40. - (void)apply:(Mat*)src dst:(Mat*)dst NS_SWIFT_NAME(apply(src:dst:));
  41. //
  42. // void cv::CLAHE::setClipLimit(double clipLimit)
  43. //
  44. /**
  45. * Sets threshold for contrast limiting.
  46. *
  47. * @param clipLimit threshold value.
  48. */
  49. - (void)setClipLimit:(double)clipLimit NS_SWIFT_NAME(setClipLimit(clipLimit:));
  50. //
  51. // double cv::CLAHE::getClipLimit()
  52. //
  53. - (double)getClipLimit NS_SWIFT_NAME(getClipLimit());
  54. //
  55. // void cv::CLAHE::setTilesGridSize(Size tileGridSize)
  56. //
  57. /**
  58. * Sets size of grid for histogram equalization. Input image will be divided into
  59. * equally sized rectangular tiles.
  60. *
  61. * @param tileGridSize defines the number of tiles in row and column.
  62. */
  63. - (void)setTilesGridSize:(Size2i*)tileGridSize NS_SWIFT_NAME(setTilesGridSize(tileGridSize:));
  64. //
  65. // Size cv::CLAHE::getTilesGridSize()
  66. //
  67. - (Size2i*)getTilesGridSize NS_SWIFT_NAME(getTilesGridSize());
  68. //
  69. // void cv::CLAHE::collectGarbage()
  70. //
  71. - (void)collectGarbage NS_SWIFT_NAME(collectGarbage());
  72. @end
  73. NS_ASSUME_NONNULL_END