Home Mat opencv to NSArray IOS
Reply: 0

Mat opencv to NSArray IOS

user455
1#
user455 Published in April 25, 2018, 12:50 am

I had this function, but I need to return and NSArray.

+ (NSArray *)_grayFrom_std:(Mat)source {
    cout << "-> grayFrom ->";

    Mat result;
    Mat result_std;
    cvtColor(source, result, CV_BGR2GRAY);

    Scalar m, std;
    meanStdDev(result, m, std);

    divide(result, 255, result_std);
    subtract(result_std, m, result_std);
    divide(result_std, std, result_std);


    return array;
}
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.298386 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO