YBRFULL422 and multiframe
Moderator: Moderator Team
YBRFULL422 and multiframe
Hi,
i am trying to load YBRFULL422 multiframe data. It basically fails here
E_TransferSyntax opt_oxfer=EXS_LittleEndianExplicit;
DcmXfer opt_oxferSyn(opt_oxfer);
OFCondition dcmCond = pDcmDataSet->chooseRepresentatio(opt_oxfer, NULL);
if (dcmCond.bad())
---> and it says "Tag Not Found"
I believe the issue is the mixture of multiframe with YBRFULL422. Is this supported by dcmtk? If not, is there any workaround?
regards,
sg
Excerpt of header:
0002,0000,File Meta Elements Group Len=180
0002,0001,File Meta Info Version=256
0002,0002,Media Storage SOP Class UID=1.2.840.10008.5.1.4.1.1.7.
0002,0003,Media Storage SOP Inst UID=1.2.124.113540.1.4.41151258.2244.1171964300.35
0002,0010,Transfer Syntax UID=1.2.840.10008.1.2.4.50
0002,0012,Implementation Class UID=1.2.124.113540.1.4.0
0008,0005,Specific Character Set=ISO.IR 100
0008,0008,Image Type=PRIMARY
0008,0012,Instance Creation Date=20070728
0008,0013,Instance Creation Time=160750
0008,0014,Instance Creator UID=1.2.124.113540.0.20070131883
0008,0016,SOP Class UID=1.2.840.10008.5.1.4.1.1.7.
0008,0018,SOP Instance UID=1.2.124.113540.1.4.41151258.2244.1171964300.35
0008,0020,Study Date=20070209
0008,0022,Acquisition Date=20070220
0008,0023,Image Date=20070220
0008,002A,?=20070220113820+0200
0008,0030,Study Time=133810
0008,0032,Acquisition Time=113820
0008,0033,Image Time=113820
0008,0050,Accession Number=313
...
0028,0002,Samples Per Pixel=3
0028,0004,Photometric Interpretation=YBRFULL422
0028,0008,Number of Frames=62
0028,0010,Rows=465
0028,0011,Columns=504
0028,0030,Pixel Spacing=0 0
0028,0100,Bits Allocated=8
0028,0101,Bits Stored=8 0028,0102,High Bit=7
...
i am trying to load YBRFULL422 multiframe data. It basically fails here
E_TransferSyntax opt_oxfer=EXS_LittleEndianExplicit;
DcmXfer opt_oxferSyn(opt_oxfer);
OFCondition dcmCond = pDcmDataSet->chooseRepresentatio(opt_oxfer, NULL);
if (dcmCond.bad())
---> and it says "Tag Not Found"
I believe the issue is the mixture of multiframe with YBRFULL422. Is this supported by dcmtk? If not, is there any workaround?
regards,
sg
Excerpt of header:
0002,0000,File Meta Elements Group Len=180
0002,0001,File Meta Info Version=256
0002,0002,Media Storage SOP Class UID=1.2.840.10008.5.1.4.1.1.7.
0002,0003,Media Storage SOP Inst UID=1.2.124.113540.1.4.41151258.2244.1171964300.35
0002,0010,Transfer Syntax UID=1.2.840.10008.1.2.4.50
0002,0012,Implementation Class UID=1.2.124.113540.1.4.0
0008,0005,Specific Character Set=ISO.IR 100
0008,0008,Image Type=PRIMARY
0008,0012,Instance Creation Date=20070728
0008,0013,Instance Creation Time=160750
0008,0014,Instance Creator UID=1.2.124.113540.0.20070131883
0008,0016,SOP Class UID=1.2.840.10008.5.1.4.1.1.7.
0008,0018,SOP Instance UID=1.2.124.113540.1.4.41151258.2244.1171964300.35
0008,0020,Study Date=20070209
0008,0022,Acquisition Date=20070220
0008,0023,Image Date=20070220
0008,002A,?=20070220113820+0200
0008,0030,Study Time=133810
0008,0032,Acquisition Time=113820
0008,0033,Image Time=113820
0008,0050,Accession Number=313
...
0028,0002,Samples Per Pixel=3
0028,0004,Photometric Interpretation=YBRFULL422
0028,0008,Number of Frames=62
0028,0010,Rows=465
0028,0011,Columns=504
0028,0030,Pixel Spacing=0 0
0028,0100,Bits Allocated=8
0028,0101,Bits Stored=8 0028,0102,High Bit=7
...
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Did you read the previous posting? I guess that you just need to register support for color images (include "diregist.h").
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- OFFIS DICOM Team
- Posts: 1484
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
The problem with your sample file is not related to the YBR_FULL_422 color model. The image is simply missing some required attributes. DCMCHECK reports (among others) the following errors:I believe the issue is the mixture of multiframe with YBRFULL422
Code: Select all
Error E-04: Attribute is missing.
Affected attribute: ProcedureCodeSequence(0008,1032)[0].CodeValue(0008,0100) (modules GeneralStudyModule) (Type 1)
Error E-04: Attribute is missing.
Affected attribute: ProcedureCodeSequence(0008,1032)[0].CodingSchemeDesignator(0008,0102) (modules GeneralStudyModule) (Type 1)
Error E-04: Attribute is missing.
Affected attribute: ProcedureCodeSequence(0008,1032)[0].CodeMeaning(0008,0104) (modules GeneralStudyModule) (Type 1)
Error E-04: Attribute is missing.
Affected attribute: PlanarConfiguration(0028,0006) (modules ImagePixelModule) (Type 1C)
Condition "val(./SamplesPerPixel[0]) > 1" is true.
Error E-04: Attribute is missing.
Affected attribute: PixelRepresentation(0028,0103) (modules ImagePixelModule) (Type 1)
Error E-05: Attribute is unexpected.
Affected attribute: RescaleSlope(0028,1053) (Type 1C) (vm=1; len=2; modules: ModalityLUTModule)
Condition "/RescaleIntercept exists" is false.
Code: Select all
dcmodify -i PixelRepresentation=0 filename.dcm
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest