Skip to content

Commit 02904a0

Browse files
author
hanyoseob
committed
Change mat file to raw file
1 parent 5c18847 commit 02904a0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

XCAT512.mat

-15.6 KB
Binary file not shown.

demo_parallelbeam_ct.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@
4747
param.dOffsetImgY = 0; % # of elements
4848
param.dOffsetImgX = 0; % # of elements
4949

50+
param.datatype = 'float';
51+
5052
%% Load image
51-
load('XCAT512.mat');
52-
input = imresize(XCAT512, [param.nImgY, param.nImgX]);
53+
fid = fopen('input512.raw', 'rb');
54+
input = imresize(single(fread(fid, [512, 512], 'single')), [param.nImgY, param.nImgX]);
55+
fclose(fid);
5356

5457
%% Run implemented function
5558
disp ('implementation ver.')

input512.raw

1 MB
Binary file not shown.

0 commit comments

Comments
 (0)