how can we read and show CT scan files on MATLAB GUI
10 次查看(过去 30 天)
显示 更早的评论
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
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.
回答(1 个)
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
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 Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!