[Insight-users] reading a series of dicom images as a volume
shoosh moosh
babygirl_25 at hotmail.com
Tue Jan 20 06:43:35 EST 2009
I'm trying to read a series of dicom images into a 3D volume. The image slices are 2048 x 2048 x 1 each.
I'm getting this error:
itk::ExceptionObject (0xb7b006a8)
Location: "TElement* itk::ImportImageContainer<TElementIdentifier, TElement>::AllocateElements(TElementIdentifier) const [with TElementIdentifier = long unsigned int, TElement = short int]"
File: /home/xxx/Insight/Code/Common/itkImportImageContainer.txx
Line: 194
Description: Failed to allocate memory for image.
I'm not sure what values to put for the line in the code that calls the method AddSeriesRestriction:
typedef itk::GDCMSeriesFileNames NamesGeneratorType;
NamesGeneratorType::Pointer nameGenerator = NamesGeneratorType::New();
nameGenerator->SetUseSeriesDetails( true );
nameGenerator->AddSeriesRestriction( ??? );
Here are the tag details from the series (printed by DicomSeriesReadPrintTags):
0002|0000 = 192
0002|0001 = AAE=
0002|0002 = 1.2.840.10008.5.1.4.1.1.7
0002|0003 = 1.2.826.0.1.3680043.2.1125.1.124709114899.2008120418554077162
0002|0010 = 1.2.840.10008.1.2.1
0002|0012 = 1.2.40.0.13.1.1
0002|0013 = dcm4che-1.4.18
0008|0008 = DERIVED\PRIMARY
0008|0012 = 20081204
0008|0013 = 185540
0008|0016 = 1.2.840.10008.5.1.4.1.1.7
0008|0018 = 1.2.826.0.1.3680043.2.1125.1.124709114899.2008120418554077162
0008|0020 = 20080905
0008|0030 = 121300.000
0008|0050 =
0008|0060 = CT
0008|0064 = SYN
0008|0070 = SSSSSS MMMMMMM
0008|0080 = PPPPPPPP XXXX
0008|0090 = WWWWWWW YYYYY
0008|1030 = 7 day old mouse femur
0010|0010 = XXXXXX: growth plate �
0010|0020 = 98
0010|0021 = XXXXXXXX
0010|0030 =
0010|0040 =
0018|1164 = 12.000000\12.000000
0020|000d = 1.2.826.0.1.3680043.2.1125.1.124709114899.2008120418553643884
0020|000e = 1.2.826.0.1.3680043.2.1125.1.124709114899.2008120418553643839
0020|0010 = 3
0020|0011 = 1
0020|0013 = 3
0020|0020 = L\P
0020|0032 = -12800.000000\-12800.000000\0.000000
0020|0037 = 1.000000\0.000000\0.000000\0.000000\1.000000\0.000000
0028|0002 = 1
0028|0004 = MONOCHROME2
0028|0010 = 2048
0028|0011 = 2048
0028|0030 = 12.000000\12.000000
0028|0100 = 16
0028|0101 = 16
0028|0102 = 15
0028|0103 = 1
0032|000a =
300a|00c8 = 3
Patient's Name (0010|0010) is: XXXXX: growth plate
I'm also attaching the source file.
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090120/c794d610/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VolumeBoxCount.cxx
Type: text/x-c++src
Size: 7746 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090120/c794d610/attachment-0001.cxx>
More information about the Insight-users
mailing list