Merge branch '2.4'

This commit is contained in:
Andrey Kamaev
2013-01-29 14:16:07 +04:00
14 changed files with 66 additions and 30 deletions

View File

@@ -282,3 +282,12 @@ TEST(Highgui_ImreadVSCvtColor, regression)
}
#endif
#ifdef HAVE_JPEG
TEST(Highgui_Jpeg, encode_empty)
{
cv::Mat img;
std::vector<uchar> jpegImg;
ASSERT_THROW(cv::imencode(".jpg", img, jpegImg), cv::Exception);
}
#endif