Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- width = 640;
- height = 480;
- fin = fopen('image.raw','r');
- I = fread(fin, width * height, 'uint8=>uint8');
- img = reshape(I, width, height);
- img = img';
- imgFromRaw = imshow(img)
- ifstream file("image.raw", ios::binary);
- rawData.insert(rawData.begin(),
- std::istream_iterator<BYTE>(file),
- std::istream_iterator<BYTE>());
Add Comment
Please, Sign In to add comment