필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

help with reading DICOM

조회 수: 1 (최근 30일)
Jim O'Doherty
Jim O'Doherty 2012년 10월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
All,
I'm reading in a 3D DICOM dataset using the following function. The file is 300 images of 512x512 slices. Each slice is a separate file.
eval(['filelist =handles.filelist_pl' num2str(num) ';'])
eval(['pathname =handles.pathname_pl' num2str(num) ';'])
count = 1; images = [];
for i=3:size(filelist,1)
if filelist(i).isdir ~= true
fname = filelist(i).name;
tmp = dicomread([pathname fname]);
dcm_data = dicominfo([pathname fname]);
images(:,:,count) = tmp;
count = count+1;
end
end
dims = size(images);
I'm running into memory problems trying to load this in as an array, which I presume is taking up one single huge chunk of memory. It works fine for smaller 3D datasets (like 512x512x50) but gives up for anything larger.
Is there a more efficient way to read this data in? Perhaps a cell array or something? I'm using 2011a
Thanks, Jim

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by