Humam Helfawi
Humam Helfawi

Reputation: 20264

the output of cv::imwrite vs cv::imencode

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

Answers (1)

sturkmen
sturkmen

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

Related Questions