mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
436 B
28 lines
436 B
5 years ago
|
//
|
||
|
// Mat+UIImage.h
|
||
|
//
|
||
|
// Created by Giles Payne on 2020/03/03.
|
||
|
//
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
#import "opencv.hpp"
|
||
|
#endif
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import <UIKit/UIKit.h>
|
||
|
#import "Mat.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface Mat (Converters)
|
||
|
|
||
|
-(UIImage*)toUIImage;
|
||
|
-(instancetype)initWithUIImage:(UIImage*)image;
|
||
|
-(instancetype)initWithUIImage:(UIImage*)image alphaExist:(BOOL)alphaExist;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|