From: "Ofek Shilon" <ofek@DELETEananas-music.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: Out of memory- Try to read dicom file
Message-ID: <ef4915a.2@webcrossing.raydaftYaTP>
Date: Tue, 2 Jan 2007 13:01:52 -0500
References: <ef4915a.-1@webcrossing.raydaftYaTP> <ef4915a.0@webcrossing.raydaftYaTP> <ef4915a.1@webcrossing.raydaftYaTP>
Lines: 51
NNTP-Posting-Host: 88.155.46.127
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:385759



what happens if you replace lines 657-658 with :

X = metadata.InstanceData; % temp duplicity
rmfield(metadata,'InstanceData'); % remove duplicity
X=reshape(X, metadata.Columns, metadata.Rows, 1, ...
          metadata.NumberOfFrames);

does it break in the first line? (true memory problem)
or afterwards? (some reshape-related issue)

Ofek

 merdim wrote:
>
>
> Here is the error massage:
>
> ??? Out of memory. Type HELP MEMORY for your options.
>
> Error in ==> dicomread>processRawPixels at 657
> X = reshape(metadata.InstanceData(1:numPixels), metadata.Columns,
> ...
>
> Error in ==> dicomread>newDicomread at 222
> X = processRawPixels(metadata);
>
> Error in ==> dicomread at 82
> [X, map, alpha, overlays] = newDicomread(msgname, varargin{:});
> I use matlab version of 7.0.4.365 (R14) Service Pack 2
>
> Ofek Shilon wrote:
>>
>>
>> try and debug-step dicomread as you run it. where *exactly*
does
> it
>> break? (step-in as needed)
>>
>> merdim wrote:
>>>
>>>
>>> Hi all,
>>> I have a dicom file which is 258MB. When I try to read this
> file
>>> using "dicomread" comand, matlab gives error "Out of memory
> ".
> I
>>> increased virtual memory of windows but this did not work.
> Does
>>> anyone have any idea how can I read the dicom file?
>>> thank you