ここからテンプレートをダウンロードしました
私はXCode 4.6を持っています。実行すると、次のようになりました。
+ (UIImage *)imageWithCVMat:(const cv::Mat&)cvMat orientation:(UIImageOrientation)orientation
{
return [[UIImage alloc] initWithCVMat:cvMat orientation:orientation];
}
+ (UIImage *)imageWithCVMat:(const cv::Mat&)cvMat
{
return [[UIImage alloc] initWithCVMat:cvMat orientation:0];
}
そして私はエラーを得ました
Cannot initialize a parameter of type 'UIImageOrientation' with an value of type 'int'
どうすれば解決できますか?多分誰でも知ってる