forked from card-io/card.io-iOS-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardIOIplImage.h
37 lines (26 loc) · 1.03 KB
/
CardIOIplImage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// CardIOIplImage.h
// See the file "LICENSE.md" for the full license governing this code.
//
#import <Foundation/Foundation.h>
#import <CoreVideo/CoreVideo.h>
#define Y_PLANE 0
#define CBCR_PLANE 1
@interface CardIOIplImage : NSObject {
@private
IplImage *image;
}
+ (CardIOIplImage *)imageWithSize:(CvSize)size depth:(int)depth channels:(int)channels;
+ (CardIOIplImage *)imageWithIplImage:(IplImage *)anImage;
- (id)initWithIplImage:(IplImage *)anImage;
+ (CardIOIplImage *)imageFromYCbCrBuffer:(CVImageBufferRef)imageBuffer plane:(size_t)plane;
- (CardIOIplImage *)copyCropped:(CvRect)roi;
- (CardIOIplImage *)copyCropped:(CvRect)roi destSize:(CvSize)destSize;
- (NSArray *)split;
+ (CardIOIplImage *)rgbImageWithY:(CardIOIplImage *)y cb:(CardIOIplImage *)cb cr:(CardIOIplImage *)cr;
- (UIImage *)UIImage;
@property(nonatomic, assign, readonly) IplImage *image;
@property(nonatomic, assign, readonly) CvSize cvSize;
@property(nonatomic, assign, readonly) CGSize cgSize;
@property(nonatomic, assign, readonly) CvRect cvRect;
@end