how can we read and show CT scan files on MATLAB GUI

6 ビュー (過去 30 日間)
Muhammad
Muhammad 2013 年 8 月 12 日
コメント済み: Walter Roberson 2021 年 12 月 3 日
Hi Everybody
hope you all are enjoying good health. i took CT of a phantom and files are created in the form of .egsphant. theses are 127X127 with 55 slices. i mean i have 55 files, every file contains 127 rows and 127 columns. 127 rows and 127 columns make one image. i want to show them in MATLAB GUI. i wana open the file and using slider wanan show one by one. any help will be greatly appreciated.
Isa
  2 件のコメント
Matt Kindig
Matt Kindig 2013 年 8 月 12 日
編集済み: Matt Kindig 2013 年 8 月 12 日
There are a variety of Matlab GUIs that have been created for exactly this purpose. This search on the File Exchange found several. Try a few, and see what you prefer.
Walter Roberson
Walter Roberson 2013 年 8 月 13 日
I do not recognize .egsphant as being DICOM files.

サインインしてコメントする。

回答 (1 件)

Jaya Shree
Jaya Shree 2021 年 12 月 3 日
clc; clearall; closeall; I=dicomread('F:\DOI\LIDC-IDRI-0001\1.3.6.1.4.1.14519.5.2.1.6279.6001.298806137288633453246975630178\1.3.6.1.4.1.14519.5.2.1.6279.6001.179049373636438705059720603192\000003.dcm'); info=dicominfo('F:\DOI\LIDC-IDRI-0001\1.3.6.1.4.1.14519.5.2.1.6279.6001.298806137288633453246975630178\1.3.6.1.4.1.14519.5.2.1.6279.6001.179049373636438705059720603192\000003.dcm'); I=dicomread(info); imshow(I,'DisplayRange',[]); title('original image'); % image_gray=rgb2gray(I); image_resize=imresize(I,[256 256]); image_resize=im2double(image_resize); %filtering % B=medfilt2(I,[7 7],'symmetric'); % figure,imshow(B); gamma=0.1;%aspect ratio psi=0;%phase theta=50;%orientation bw=2.8; lambda=3;%wavelength pi=180; for x=1:256 for y=1:256 x_theta=image_resize(x,y)*cos(theta)+image_resize(x,y)*sin(theta); y_theta=image_resize(x,y)*sin(theta)+image_resize(x,y)*cos(theta); gb(x,y)=exp(-(x_theta.^2/2*bw^2+gamma^2*y_theta.^2/2*bw^2))*cos(2*pi/lambda*x_theta+psi); end end figure,
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 12 月 3 日
Please use the '>' button to insert formatted code. Because of the % in the code, I cannot tell which parts are intended to be commented or not.
This code does not appear to be an answer to the question that was asked in 2013 ??

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by