Skip to content

Commit efdd2ca

Browse files
GDCM Upstreamthewtex
GDCM Upstream
authored andcommitted
GDCM 2020-03-31 (1edcc6ab)
Code extracted from: http://git.code.sf.net/p/gdcm/gdcm.git at commit 1edcc6abfcf70f09816b63b74efc2ad4df5853d7 (release). Change-Id: I2b9f63284d9e0d88c744c626e59e4c0f367ce0d0
1 parent 2e2858b commit efdd2ca

File tree

6 files changed

+17
-4
lines changed

6 files changed

+17
-4
lines changed

Source/DataDictionary/gdcmPrivateDefaultDicts.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ static const DICT_ENTRY DICOMV3DataDict [] = {
119119
{0x0021,0x0049,"SIEMENS MR SDS 01",VR::CS,VM::VM1,"??",false},
120120
{0x0021,0x0048,"SIEMENS MR SDI 02",VR::IS,VM::VM1,"??",false},
121121
{0x0021,0x0049,"SIEMENS MR SDI 02",VR::IS,VM::VM1,"??",false},
122+
{0x0021,0x004e,"SIEMENS MR SDI 02",VR::IS,VM::VM1,"??",false},
122123
{0x0021,0x004f,"SIEMENS MR SDI 02",VR::LO,VM::VM1,"ImaCoilString",false},
123124
{0x0021,0x0050,"SIEMENS MR SDS 01",VR::US,VM::VM1,"??",false},
124125
{0x0021,0x0051,"SIEMENS MR SDI 02",VR::UL,VM::VM1,"?SequenceMask?",false},
@@ -132,6 +133,7 @@ static const DICT_ENTRY DICOMV3DataDict [] = {
132133
{0x0021,0x005a,"SIEMENS MR SDS 01",VR::CS,VM::VM1,"?Sequence Varient 1?",false},
133134
{0x0021,0x005b,"SIEMENS MR SDI 02",VR::FD,VM::VM3,"Image Position (Patient)",false},
134135
{0x0021,0x005b,"SIEMENS MR SDS 01",VR::CS,VM::VM1,"?Sequence Varient 2?",false},
136+
{0x0021,0x005c,"SIEMENS MR SDS 01",VR::CS,VM::VM1,"MTR flag. MT => ON",false},
135137
{0x0021,0x005d,"SIEMENS MR SDS 01",VR::SL,VM::VM1,"??",false},
136138
{0x0021,0x005e,"SIEMENS MR SDI 02",VR::IS,VM::VM1,"?FrameIndex?",false},
137139
{0x0021,0x0063,"SIEMENS MR SDI 02",VR::IS,VM::VM1,"?Acquisition Number?",false},
@@ -1964,6 +1966,9 @@ static const DICT_ENTRY DICOMV3DataDict [] = {
19641966
{0x0009,0x0092,"FDMS 1.0",VR::SH,VM::VM1,"Kanji Department Name",false },
19651967
{0x0009,0x00f0,"FDMS 1.0",VR::CS,VM::VM1,"Blackening Process Flag",false },
19661968
{0x0009,0x00f1,"FDMS 1.0",VR::ST,VM::VM1,"Processing Information Flag",false },
1969+
{0x0009,0x00f2,"FDMS 1.0",VR::CS,VM::VM1,"Normalization Flag",false },
1970+
{0x0009,0x00f3,"FDMS 1.0",VR::CS,VM::VM1,"Tone characteristic",false },
1971+
{0x0009,0x00f4,"FDMS 1.0",VR::CS,VM::VM1,"Window Value Fixed Flag",false },
19671972
{0x0019,0x0015,"FDMS 1.0",VR::LO,VM::VM1,"Kanji Body Part for Exposure",false },
19681973
{0x0019,0x0030,"FDMS 1.0",VR::LO,VM::VM1,"Menu Character String",false },
19691974
{0x0019,0x0032,"FDMS 1.0",VR::LO,VM::VM1,"Kanji Menu Name",false },
@@ -2062,7 +2067,8 @@ static const DICT_ENTRY DICOMV3DataDict [] = {
20622067
{0x50f1,0x0007,"FDMS 1.0",VR::CS,VM::VM1,"Subtraction Registration Result",false },
20632068
{0x50f1,0x0008,"FDMS 1.0",VR::CS,VM::VM1,"Energy Subtraction Param. 2",false },
20642069
{0x50f1,0x0009,"FDMS 1.0",VR::SL,VM::VM1,"Afin Conversion Coefficient",false },
2065-
{0x50f1,0x000a,"FDMS 1.0",VR::SH,VM::VM1,"FNC Parameters",false },
2070+
{0x50f1,0x000a,"FDMS 1.0",VR::ST,VM::VM1,"FNC Parameters",false },
2071+
{0x50f1,0x000b,"FDMS 1.0",VR::SS,VM::VM1,"CRF Parameters",false },
20662072
{0x50f1,0x0010,"FDMS 1.0",VR::CS,VM::VM1,"Film Output Format",false },
20672073
{0x50f1,0x0020,"FDMS 1.0",VR::CS,VM::VM1,"Image Processing Modification Flag",false },
20682074
{0x0009,0x0001,"FFP DATA",VR::UN,VM::VM1,"CR Header Information",false },

Source/DataStructureAndEncodingDefinition/gdcmDataSet.txx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,9 @@ namespace gdcm_ns
421421
}
422422
else if( /*pe.GetLastElement().GetTag() == Tag(0xffd8,0xffe0) &&*/ de.GetTag() == Tag(0x7fe0,0x0010) && de.IsUndefinedLength() )
423423
{
424+
// Bug_Siemens_PrivateIconNoItem.dcm
424425
// PET-GE-dicomwrite-PixelDataSQUN.dcm
426+
// PET-GE-dicomwrite-PixelDataSQUNv2.dcm
425427
// some bozo crafted an undefined length Pixel Data but is actually
426428
// defined length. Since inside SQ/Item it should be possible to
427429
// compute the proper length

Source/DataStructureAndEncodingDefinition/gdcmExplicitDataElement.txx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ std::istream &ExplicitDataElement::ReadValue(std::istream &is, bool readvalues)
339339
#ifdef GDCM_SUPPORT_BROKEN_IMPLEMENTATION
340340
if( SequenceOfItems *sqi = dynamic_cast<SequenceOfItems*>(&GetValue()) )
341341
{
342-
assert( ValueField->GetLength() == ValueLengthField );
343342
// Recompute the total length:
344343
if( !ValueLengthField.IsUndefined() )
345344
{

Source/DataStructureAndEncodingDefinition/gdcmMediaStorage.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ static const char *MSStrings[] = {
148148
"1.2.840.10008.5.1.1.30", // HardcopyColorImageStorage
149149
"1.2.840.10008.5.1.4.1.1.4.3", // EnhancedMRColorImageStorage
150150
"1.2.392.200036.9125.1.1.4", // FujiPrivateMammoCRImageStorage (aka FUJI MAMMO CR Storage)
151+
"1.2.840.10008.5.1.4.1.1.77.1.5.2", // Ophthalmic Photography 16 Bit Image Storage
151152

152153
nullptr
153154
};
@@ -323,7 +324,7 @@ static const MSModalityType MSModalityTypes[] = {
323324
{"ES", 2, false},// VLEndoscopicImageStorage
324325
{"MG", 3, false},// BreastTomosynthesisImageStorage
325326
{"CR", 2, false},// FujiPrivateCRImageStorage
326-
{"OP", 2, false},// OphthalmicPhotography8BitImageStorage
327+
{"OP", 3, false},// OphthalmicPhotography8BitImageStorage
327328
{"OPT", 3, false},// OphthalmicTomographyImageStorage
328329
{"GM", 3, false},// VLMicroscopicImageStorage
329330
{"PT", 3, false},//EnhancedPETImageStorage,
@@ -339,6 +340,7 @@ static const MSModalityType MSModalityTypes[] = {
339340
{"HC", 2, false},// HardcopyGrayscaleImageStorage
340341
{"MR", 3, false},// EnhancedMRColorImageStorage
341342
{"MG", 2, false},// FujiPrivateMammoCRImageStorage
343+
{"OP", 3, false},// OphthalmicPhotography16BitImageStorage
342344
{nullptr, 0, false} //MS_END
343345
};
344346

Source/DataStructureAndEncodingDefinition/gdcmMediaStorage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ class GDCM_EXPORT MediaStorage
141141
HardcopyColorImageStorage,
142142
EnhancedMRColorImageStorage,
143143
FujiPrivateMammoCRImageStorage,
144+
OphthalmicPhotography16BitImageStorage,
144145
MS_END
145146
} MSType; // Media Storage Type
146147

Source/MediaStorageAndFileFormat/gdcmPixmapWriter.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,10 @@ bool PixmapWriter::PrepareWrite( MediaStorage const & ref_ms )
621621
case 12:
622622
case 16:
623623
case 32:
624-
depixdata.SetVR( VR::OW );
624+
if( depixdata.GetSequenceOfFragments() )
625+
depixdata.SetVR( VR::OB );
626+
else
627+
depixdata.SetVR( VR::OW );
625628
break;
626629
default:
627630
assert( 0 && "should not happen" );

0 commit comments

Comments
 (0)