目录
💥1 概述
📚2 运行结果
🎉3 参考文献
👨💻4 Matlab代码
💥1 概述
本代码包含使用扇形束滤波背投的CT图像重建。可以应用适当的加权措施,如差分和派克加权。重构算法也适用于短扫描协议。
📚2 运行结果
主函数部分代码:
%% Read Sinogram clear clc fileid = fopen('Sample_sinogram.sino','rb'); proj = fread(fileid,[140,inf],'float32'); fclose(fileid); %proj=fliplr(proj); % Apply this as per requirement to flip the sinogram %% Reconstruction Parameters detector_rows = 1; SOD = 100; SDD = 200; Fan_angle = 28; start_angle = -14; total_angle = 180 + Fan_angle; OutputSize = 256; Filter = 'shepp-logan'; weighting = 'parker'; % Parker or differential weighting can be applied. Norg=size(proj,1); %% Projection data from logarithmic transformation of intensity ratio [Max_Intensity,Index] = max(proj(:,:)); X =log(max(ind2sub(size(proj),Max_Intensity))); Y=log(proj); Log=X-Y; % Log=proj; % For Pre-Transformed data %% FFBP Reconstruction [Reconstruction, Bp_RotationIncrement, Fan_sensor_spacing,Bp_spacing] = ... FFBP_Weighted(Log, start_angle, SOD, SDD, Fan_angle, Norg,... weighting, OutputSize, total_angle,Filter); Reconstruction(isnan(Reconstruction)) = 0; Reconstruction = Reconstruction*Fan_sensor_spacing*Bp_spacing; %% Write to file fileid = fopen('Reconstruction.raw','w+'); wrt = fwrite(fileid,Reconstruction,'float32'); fclose(fileid);
🎉3 参考文献
[1]张朋,张兆田.几种CT图像重建算法的研究和比较[J].CT理论与应用研究,2001(04):4-9.
部分理论引用网络文献,若有侵权联系博主删除。