MergeMertens.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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/photo.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "MergeExposures.h"
  13. @class Mat;
  14. NS_ASSUME_NONNULL_BEGIN
  15. // C++: class MergeMertens
  16. /**
  17. * Pixels are weighted using contrast, saturation and well-exposedness measures, than images are
  18. * combined using laplacian pyramids.
  19. *
  20. * The resulting image weight is constructed as weighted average of contrast, saturation and
  21. * well-exposedness measures.
  22. *
  23. * The resulting image doesn't require tonemapping and can be converted to 8-bit image by multiplying
  24. * by 255, but it's recommended to apply gamma correction and/or linear tonemapping.
  25. *
  26. * For more information see CITE: MK07 .
  27. *
  28. * Member of `Photo`
  29. */
  30. CV_EXPORTS @interface MergeMertens : MergeExposures
  31. #ifdef __cplusplus
  32. @property(readonly)cv::Ptr<cv::MergeMertens> nativePtrMergeMertens;
  33. #endif
  34. #ifdef __cplusplus
  35. - (instancetype)initWithNativePtr:(cv::Ptr<cv::MergeMertens>)nativePtr;
  36. + (instancetype)fromNative:(cv::Ptr<cv::MergeMertens>)nativePtr;
  37. #endif
  38. #pragma mark - Methods
  39. //
  40. // void cv::MergeMertens::process(vector_Mat src, Mat& dst, Mat times, Mat response)
  41. //
  42. - (void)process:(NSArray<Mat*>*)src dst:(Mat*)dst times:(Mat*)times response:(Mat*)response NS_SWIFT_NAME(process(src:dst:times:response:));
  43. //
  44. // void cv::MergeMertens::process(vector_Mat src, Mat& dst)
  45. //
  46. /**
  47. * Short version of process, that doesn't take extra arguments.
  48. *
  49. * @param src vector of input images
  50. * @param dst result image
  51. */
  52. - (void)process:(NSArray<Mat*>*)src dst:(Mat*)dst NS_SWIFT_NAME(process(src:dst:));
  53. //
  54. // float cv::MergeMertens::getContrastWeight()
  55. //
  56. - (float)getContrastWeight NS_SWIFT_NAME(getContrastWeight());
  57. //
  58. // void cv::MergeMertens::setContrastWeight(float contrast_weiht)
  59. //
  60. - (void)setContrastWeight:(float)contrast_weiht NS_SWIFT_NAME(setContrastWeight(contrast_weiht:));
  61. //
  62. // float cv::MergeMertens::getSaturationWeight()
  63. //
  64. - (float)getSaturationWeight NS_SWIFT_NAME(getSaturationWeight());
  65. //
  66. // void cv::MergeMertens::setSaturationWeight(float saturation_weight)
  67. //
  68. - (void)setSaturationWeight:(float)saturation_weight NS_SWIFT_NAME(setSaturationWeight(saturation_weight:));
  69. //
  70. // float cv::MergeMertens::getExposureWeight()
  71. //
  72. - (float)getExposureWeight NS_SWIFT_NAME(getExposureWeight());
  73. //
  74. // void cv::MergeMertens::setExposureWeight(float exposure_weight)
  75. //
  76. - (void)setExposureWeight:(float)exposure_weight NS_SWIFT_NAME(setExposureWeight(exposure_weight:));
  77. @end
  78. NS_ASSUME_NONNULL_END