Reputation: 20264
Does cv::imencode have an identical behavior to cv::imwrite when converting cv::Mat to JPEG? I know that first one write to buffer and the second write to file but I am asking about the written content.
Upvotes: 6
Views: 1436
Reputation: 3550
when you call cv::imwrite()
it did not call cv::imencode()
internally! both functions uses internal ImageEncoder
. take a look at loadsave.cpp
Upvotes: 5