Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
cant get the whole of the image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hi every body. i have a 512*512*429 volume . because of my project, i have to rotate the volume as i mension in the code below. but the problem is, because of the large size of the volume i have to reduce the size, when i reduce it with 'pic_3D2 = imresize3(pic_3D, 0.5)' in which the size will be 256*256*215 and the result is the full image wich is attached, but i dont want to reduce the size of each slice and so i use half_of_slices=pic_3D(:,:,1:2:429), so each slice will be 512*512*215. but when i use imshow, the image is not complete. how can i correct the code?
BRG
surf_read_dir='G:\zahra taati\Study__CORONARY CTA[20160712]\Series_10448_70.0%\';
files=dir('G:\zahra taati\Study__CORONARY CTA[20160712]\Series_10448_70.0%\*.jpg');
for im=1:size(files)
fdir = strcat(surf_read_dir , files(im).name);
slice_im = load(fdir);
pic = imread(fdir);
for i=1:512
frt_data(im,:,i)=pic(i,:,1);
end
pic_3D(:,:,im) = pic(:,:,1);
end
toc
half_of_slices=pic_3D(:,:,1:2:429)
a = imrotate3(pic_3D2,60,[1 0 0],'nearest','loose','FillValues',0);
b = imrotate3(a,180,[0 0 1],'nearest','loose','FillValues',0);
c = imrotate3(b,90,[1 0 0],'nearest','loose','FillValues',0);
d = imrotate3(c,180,[1 0 0],'nearest','loose','FillValues',0);
ct2 = d(:,:,140);
imshow(ct2)
1 comentario
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!