From: "Matt Latourette" <norepliesplease@mailinator.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.3@webcrossing.raydaftYaTP>
Date: Thu, 4 Jan 2007 12:13:04 -0500
References: <ef4915a.-1@webcrossing.raydaftYaTP>
Lines: 25
NNTP-Posting-Host: 35.8.159.179
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:386029



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
  
258MB is really large for a single DICOM image, no matter what the
modality is. I'm guessing that your data is not a single image, but
rather many images stored as one file using one of the multiframe SOP
classes and that may be related to the "out of memory" problem. I
have seen a few situations before where I got an "out of memory"
message from MATLAB when a lack of memory was not the real problem.
In some circumstances, "out of memory" can really mean "the catch-all
error message you get when something has gone wrong and MATLAB can't
figure out what to tell you". I don't know for sure whether or not
multiframe data is supported by MATLAB, but it is quite possible that
it may not be. Have you tried setting "dbstop if error" and then
running the program so you can examine your variables after the out
of memory error occurs and execution halts?

-Matt