Download modules/core/misc/objc/common/MatOfByte.h from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/core/misc/objc/common/MatOfByte.h
- Command line
-
hf download hf://tgollogly/test/modules/core/misc/objc/common/MatOfByte.h
-
curl -L -o MatOfByte.h https://huggingface.co/tgollogly/test/resolve/main/modules/core/misc/objc/common/MatOfByte.h
1.06 kB
| // | |
| // MatOfByte.h | |
| // | |
| // Created by Giles Payne on 2019/12/26. | |
| // | |
| NS_ASSUME_NONNULL_BEGIN | |
| /** | |
| * Mat representation of an array of bytes | |
| */ | |
| CV_EXPORTS @interface MatOfByte : Mat | |
| - (instancetype)initWithNativeMat:(cv::Mat*)nativeMat; | |
| /** | |
| * Create MatOfByte from Mat object | |
| * @param mat Mat object from which to create MatOfByte | |
| */ | |
| - (instancetype)initWithMat:(Mat*)mat; | |
| /** | |
| * Create MatOfByte from array | |
| * @param array Array from which to create MatOfByte | |
| */ | |
| - (instancetype)initWithArray:(NSArray<NSNumber*>*)array; | |
| /** | |
| * Allocate specified number of elements | |
| * @param elemNumber Number of elements | |
| */ | |
| - (void)alloc:(int)elemNumber; | |
| /** | |
| * Populate Mat with elements of an array | |
| * @param array Array with which to populate the Mat | |
| */ | |
| - (void)fromArray:(NSArray<NSNumber*>*)array; | |
| /** | |
| * Output Mat elements as an array | |
| */ | |
| - (NSArray<NSNumber*>*)toArray; | |
| /** | |
| * Total number of values in Mat | |
| */ | |
| - (int)length; | |
| @end | |
| NS_ASSUME_NONNULL_END | |