MinMaxLocResult.h 704 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // MinMaxLocResult.h
  3. //
  4. // Created by Giles Payne on 2019/12/28.
  5. //
  6. #pragma once
  7. #ifdef __cplusplus
  8. #import "opencv2/core.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. @class Point2i;
  14. NS_ASSUME_NONNULL_BEGIN
  15. /**
  16. * Result of operation to determine global minimum and maximum of an array
  17. */
  18. CV_EXPORTS @interface MinMaxLocResult : NSObject
  19. #pragma mark - Properties
  20. @property double minVal;
  21. @property double maxVal;
  22. @property Point2i* minLoc;
  23. @property Point2i* maxLoc;
  24. #pragma mark - Constructors
  25. - (instancetype)init;
  26. - (instancetype)initWithMinval:(double)minVal maxVal:(double)maxVal minLoc:(Point2i*)minLoc maxLoc:(Point2i*)maxLoc;
  27. @end
  28. NS_ASSUME_NONNULL_END