GridBoard.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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/objdetect.hpp"
  8. #import "opencv2/objdetect/aruco_board.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "Board.h"
  14. @class Dictionary;
  15. @class Mat;
  16. @class Size2i;
  17. NS_ASSUME_NONNULL_BEGIN
  18. // C++: class GridBoard
  19. /**
  20. * Planar board with grid arrangement of markers
  21. *
  22. * More common type of board. All markers are placed in the same plane in a grid arrangement.
  23. * The board image can be drawn using generateImage() method.
  24. *
  25. * Member of `Objdetect`
  26. */
  27. CV_EXPORTS @interface GridBoard : Board
  28. #ifdef __cplusplus
  29. @property(readonly)cv::Ptr<cv::aruco::GridBoard> nativePtrGridBoard;
  30. #endif
  31. #ifdef __cplusplus
  32. - (instancetype)initWithNativePtr:(cv::Ptr<cv::aruco::GridBoard>)nativePtr;
  33. + (instancetype)fromNative:(cv::Ptr<cv::aruco::GridBoard>)nativePtr;
  34. #endif
  35. #pragma mark - Methods
  36. //
  37. // cv::aruco::GridBoard::GridBoard(Size size, float markerLength, float markerSeparation, Dictionary dictionary, Mat ids = Mat())
  38. //
  39. /**
  40. * GridBoard constructor
  41. *
  42. * @param size number of markers in x and y directions
  43. * @param markerLength marker side length (normally in meters)
  44. * @param markerSeparation separation between two markers (same unit as markerLength)
  45. * @param dictionary dictionary of markers indicating the type of markers
  46. * @param ids set of marker ids in dictionary to use on board.
  47. */
  48. - (instancetype)initWithSize:(Size2i*)size markerLength:(float)markerLength markerSeparation:(float)markerSeparation dictionary:(Dictionary*)dictionary ids:(Mat*)ids;
  49. /**
  50. * GridBoard constructor
  51. *
  52. * @param size number of markers in x and y directions
  53. * @param markerLength marker side length (normally in meters)
  54. * @param markerSeparation separation between two markers (same unit as markerLength)
  55. * @param dictionary dictionary of markers indicating the type of markers
  56. */
  57. - (instancetype)initWithSize:(Size2i*)size markerLength:(float)markerLength markerSeparation:(float)markerSeparation dictionary:(Dictionary*)dictionary;
  58. //
  59. // Size cv::aruco::GridBoard::getGridSize()
  60. //
  61. - (Size2i*)getGridSize NS_SWIFT_NAME(getGridSize());
  62. //
  63. // float cv::aruco::GridBoard::getMarkerLength()
  64. //
  65. - (float)getMarkerLength NS_SWIFT_NAME(getMarkerLength());
  66. //
  67. // float cv::aruco::GridBoard::getMarkerSeparation()
  68. //
  69. - (float)getMarkerSeparation NS_SWIFT_NAME(getMarkerSeparation());
  70. @end
  71. NS_ASSUME_NONNULL_END