Radon Transform 의 간단한 예제 - MATLAB

2025. 9. 2. 21:36·정리필요./PET, MRI and so on.
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의 효과를 비교하고 있음.

결과

결과는 다음과 같음:

MATLAB Online (basic) 에서 수행한 결과임.


코드

% -------------------------
% 팬텀 영상 생성 (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)')

같이보면 좋은 자료들

https://matlab.mathworks.com/

 

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
'정리필요./PET, MRI and so on.' 카테고리의 다른 글
  • Screen-film Radiography (X-ray): Radiographic Film + Intensifying screen
  • Radiation Intensity
  • Radon Transform and Inverse Radon Transform-FBP
  • Seoul Symposium on Extreme High Field MRI
dsaint31x
dsaint31x
    반응형
    250x250
  • dsaint31x
    Dsaint31's blog
    dsaint31x
  • 전체
    오늘
    어제
    • 분류 전체보기 (789)
      • Private Life (16)
      • Programming (55)
        • DIP (116)
        • ML (35)
      • Computer (121)
        • CE (55)
        • ETC (33)
        • CUDA (3)
        • Blog, Markdown, Latex (4)
        • Linux (9)
      • ... (368)
        • Signals and Systems (115)
        • Math (176)
        • Linear Algebra (33)
        • Physics (43)
        • 인성세미나 (1)
      • 정리필요. (61)
        • 의료기기의 이해 (6)
        • PET, MRI and so on. (7)
        • PET Study 2009 (1)
        • 방사선 장해방호 (5)
        • 방사선 생물학 (3)
        • 방사선 계측 (9)
        • 기타 방사능관련 (3)
        • 고시 (9)
        • 정리 (18)
      • RI (0)
      • 원자력,방사능 관련법 (2)
  • 블로그 메뉴

    • Math
    • Programming
    • SS
    • DIP
  • 링크

    • Convex Optimization For All
  • 공지사항

    • Test
    • PET Study 2009
    • 기타 방사능관련.
  • 인기 글

  • 태그

    cv2
    signal_and_system
    linear algebra
    opencv
    fourier transform
    SS
    Optimization
    SIGNAL
    signals_and_systems
    function
    random
    Term
    math
    Probability
    Python
    Vector
    인허가제도
    numpy
    Programming
    ML
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
dsaint31x
Radon Transform 의 간단한 예제 - MATLAB
상단으로

티스토리툴바