728x90
728x90
Radon Transform과 Inverse Radon Transform에 대한 MATLAB 예제 코드임.
2025.09.01 - [정리필요./PET, MRI and so on.] - Radon Transform and Inverse Radon Transform-FBP
Radon Transform and Inverse Radon Transform-FBP
정의Radon Transform(라돈 변환)은n차원 함수 $f(\textbf{x})$를 : ($\textbf{x}$는 n차원 vector임)$(n-1)$차원 hyperplane(초평면)에 대해projection integral(투영적분)한 값을 나타내는 transform(변환)이를 2D와 3D의 경우
dsaint31.tistory.com
이 코드는 angular sampling의 효과를 비교하고 있음.
결과
결과는 다음과 같음:

코드
% -------------------------
% 팬텀 영상 생성 (Shepp-Logan phantom, 크기: 256 x 256)
a = phantom(256);
% -------------------------
% 투영 각도 설정
theta_1 = 0:1:179; % 1° 간격 (0,1,2,...,179) -> 총 180개 각도
theta_2 = 0:5:179; % 5° 간격 (0,5,10,...,175) -> 총 36개 각도
theta_3 = 0:10:179; % 10° 간격 (0,10,20,...,170) -> 총 18개 각도
% -------------------------
% Radon 변환 수행 (Sinogram 계산)
% R_n : sinogram (행 = radial 좌표 i, 열 = 각도)
% i : radial 좌표(투영 거리)
[R_1, i] = radon(a, theta_1);
[R_2, i] = radon(a, theta_2);
[R_3, i] = radon(a, theta_3);
% -------------------------
% Sinogram 시각화 (상단 3개)
subplot(2,3,1), imagesc(theta_1, i, R_1), colormap('hot'), colorbar
xlabel('\Theta (degrees)'), ylabel('x'' (radial coordinate)')
title('Sinogram (1° step)')
subplot(2,3,2), imagesc(theta_2, i, R_2), colormap('hot'), colorbar
xlabel('\Theta (degrees)'), ylabel('x'' (radial coordinate)')
title('Sinogram (5° step)')
subplot(2,3,3), imagesc(theta_3, i, R_3), colormap('hot'), colorbar
xlabel('\Theta (degrees)'), ylabel('x'' (radial coordinate)')
title('Sinogram (10° step)')
% -------------------------
% 역 Radon 변환 (Filtered Back-Projection)
% 주의: iradon의 두 번째 인자를 스칼라로 주면 "각도 증분(Δθ)"로 해석됨.
% 여기서는 Δθ = 1, 5, 10으로 사용 (원래 소스 유지)
I_1 = iradon(R_1, 1); % Δθ = 1° 로 가정
I_2 = iradon(R_2, 5); % Δθ = 5° 로 가정
I_3 = iradon(R_3, 10); % Δθ = 10° 로 가정
% -------------------------
% 재구성 영상 시각화 (하단 3개)
subplot(2,3,4), imshow(I_1, []), title('Reconstruction (1° step)')
subplot(2,3,5), imshow(I_2, []), title('Reconstruction (5° step)')
subplot(2,3,6), imshow(I_3, []), title('Reconstruction (10° step)')
같이보면 좋은 자료들
MATLAB Login | MATLAB & Simulink
matlab.mathworks.com
728x90
'정리필요. > PET, MRI and so on.' 카테고리의 다른 글
| Scintillator (섬광체) (0) | 2025.11.10 |
|---|---|
| Screen-film Radiography (X-ray): Radiographic Film + Intensifying screen (0) | 2025.09.03 |
| Radiation Intensity (0) | 2025.09.03 |
| Radon Transform and Inverse Radon Transform-FBP (1) | 2025.09.01 |
| Seoul Symposium on Extreme High Field MRI (0) | 2009.10.20 |