Guest User

Untitled

a guest
May 19th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1.   arma::Mat<unsigned char> matrix;
  2.   data::ImageInfo info;
  3.   BOOST_REQUIRE(data::Load("test_image.png", matrix, info, false) == true);
  4.   cout<<matrix<<endl;
  5.   BOOST_REQUIRE_EQUAL(matrix.n_rows, 50 * 50 * 3); // width * height * channels.
  6.   for (size_t i = 0; i < matrix.n_elem; ++i)
  7.   {
  8.     cout<<matrix[i]<<",";
  9.   }
Add Comment
Please, Sign In to add comment