Guest User

Untitled

a guest
Jan 16th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. width = 640;
  2. height = 480;
  3. fin = fopen('image.raw','r');
  4. I = fread(fin, width * height, 'uint8=>uint8');
  5. img = reshape(I, width, height);
  6. img = img';
  7. imgFromRaw = imshow(img)
  8.  
  9. ifstream file("image.raw", ios::binary);
  10. rawData.insert(rawData.begin(),
  11. std::istream_iterator<BYTE>(file),
  12. std::istream_iterator<BYTE>());
Add Comment
Please, Sign In to add comment