Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Faster alternative to fread

$
0
0
I have a huge binary data file which has a information about image having many frames (rows x columns x frames) 640 x 512 x 900 so total would be 294912000 data points (columns) if I need to call through fread. It takes around 15 minutes to load in Matlab.

Is there any alternative for this fread?

Currently I am using below code:
 [data,count] = fread(fid,294912000,'uchar');
data=reshape(data,[640,512,900]);

Your inputs will be highly appreciated.

Thanks,
Arun

Viewing all articles
Browse latest Browse all 19628

Trending Articles