Reputation: 17697
I notice that Highgui.imread("h:/opencv.jpg")
will automatically create the Mat instance with the correct type through auto-detection regardless of the file extensions.
Now what i have is a byte array uploaded from network.
Is it possible to create the correct Mat object without having to manually construct it with the row, col and type ?
I think this should be doable since imread
can read the file bytes and detect the type, why not with the file bytes that i can pass ?
Upvotes: 0
Views: 337