how can we read and show CT scan files on MATLAB GUI
6 views (last 30 days)
Show older comments
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 Comments
Matt Kindig
on 12 Aug 2013
Edited: Matt Kindig
on 12 Aug 2013
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.
Answers (1)
Jaya Shree
on 3 Dec 2021
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 Comment
Walter Roberson
on 3 Dec 2021
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 ??
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!