Skip to content

问个问题,Mat的channel明明返回是Mat类型,为什么可以用float*来接? #3870

Answered by nihui
mozheng asked this question in Q&A
Discussion options

You must be logged in to vote

Mat 有个方法返回任意类型的指针

    // access raw data
    template<typename T>
    operator T*();
    template<typename T>
    operator const T*() const;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mozheng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants