diff options
Diffstat (limited to 'SD-VBS/common/toolbox/toolbox_basic/io/readpfmc.m')
-rwxr-xr-x | SD-VBS/common/toolbox/toolbox_basic/io/readpfmc.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/SD-VBS/common/toolbox/toolbox_basic/io/readpfmc.m b/SD-VBS/common/toolbox/toolbox_basic/io/readpfmc.m new file mode 100755 index 0000000..2039002 --- /dev/null +++ b/SD-VBS/common/toolbox/toolbox_basic/io/readpfmc.m | |||
@@ -0,0 +1,11 @@ | |||
1 | function I = readpfm(filename) | ||
2 | |||
3 | fid = fopen(filename,'r'); | ||
4 | |||
5 | A = fscanf(fid,'%d',2); | ||
6 | I = fscanf(fid,'%f',[A(2),A(1)]); | ||
7 | I = I'; | ||
8 | |||
9 | %I = fscanf(fid,'%f',A(2)*A(1));I = reshape(I,A(1),A(2)); | ||
10 | |||
11 | fclose(fid); | ||