Search found 50 matches

by gzhang
Fri, 2018-06-01, 09:54
Forum: DCMTK - Installation
Topic: iconv
Replies: 11
Views: 10506

iconv

Hi, I am wondering if anyone has succeeded in compiling v3.6.3 with "iconv" under mingw64 (windows) + CMake? Actually I never succeeded before (v3.6.0, .1, .2) The iconv header and library file seem to be available within mingw64: "C:\mingw64\x86_64-w64-mingw32\include\iconv.h" &...
by gzhang
Fri, 2017-12-22, 14:27
Forum: DCMTK - General
Topic: Dicom tags for multiframe data
Replies: 5
Views: 4652

Re: Dicom tags for multiframe data

Thanks for the hint! Suppose the functional groups are supported, I should first use FGInterface::read(DcmItem &dataset) to create the list and next FGBase * FGInterface::get(const Uint32 frameNo, const DcmFGTypes::E_FGType fgType) to obtain the per-frame information, right? Then, how do I go fr...
by gzhang
Fri, 2017-12-22, 13:39
Forum: DCMTK - General
Topic: Dicom tags for multiframe data
Replies: 5
Views: 4652

Re: Dicom tags for multiframe data

Hi Michael,
Sorry for the confusion. They can be nested in a sequence, enclosed with (fffe,e000) and (fffe,e00d). Does it make a difference? Instead of iterating over all items, is there an interface to read and organize them directly?
Thanks!
by gzhang
Tue, 2017-12-19, 17:29
Forum: DCMTK - General
Topic: Dicom tags for multiframe data
Replies: 5
Views: 4652

Dicom tags for multiframe data

Hi, For multiframe dicom file, we often see groups of repeating tags, which are meant for individual frames: 0018,0060 KVP: 27 0018,1405 Relative X-Ray Exposure: 2738 0018,1510 Positioner Primary Angle: 10.850034 0018,1511 Positioner Secondary Angle: 0 0018,9328 Exposure Time in ms: 88.0 0018,9330 X...
by gzhang
Thu, 2017-09-28, 14:09
Forum: DCMTK - General
Topic: read LittleEndianImplicit
Replies: 7
Views: 5831

Re: read LittleEndianImplicit

I was confused with a few different files earlier and now it seems clear: 1) problem has nothing to do with 'LittleEndianImplicit', nor is it related to DcmFileFormat::chooseRepresentation() 2) it goes wrong only with large files which are multi-frame. The error E: can't convert input pixel data, pr...
by gzhang
Thu, 2017-09-28, 12:21
Forum: DCMTK - General
Topic: read LittleEndianImplicit
Replies: 7
Views: 5831

Re: read LittleEndianImplicit

Just tried. It worked with dcm2pnm. The resulting image 'test.pgm' opens fine in ImageJ. So it must be something I did wrong...
by gzhang
Thu, 2017-09-28, 12:15
Forum: DCMTK - General
Topic: read LittleEndianImplicit
Replies: 7
Views: 5831

Re: read LittleEndianImplicit

well, here is the first few lines of dcmdump: # Dicom-Meta-Information-Header # Used TransferSyntax: Little Endian Explicit (0002,0000) UL 224 # 4, 1 FileMetaInformationGroupLength (0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion (0002,0002) UI =XRayAngiographicImageStorage # 28, 1 MediaStorag...
by gzhang
Thu, 2017-09-28, 12:09
Forum: DCMTK - General
Topic: read LittleEndianImplicit
Replies: 7
Views: 5831

Re: read LittleEndianImplicit

My bad.. It seems to be specific to the file, because many other files in little endian implicit seem to work without a problem. For this file with a problem, I took off the 'chooseRepresentation()': DcmFileFormat * format = new DcmFileFormat; OFCondition cond = format->loadFile(/*path*/); if(cond.g...
by gzhang
Wed, 2017-09-27, 14:04
Forum: DCMTK - General
Topic: read LittleEndianImplicit
Replies: 7
Views: 5831

read LittleEndianImplicit

Hi, I have a single-frame dicom file in originally in 'LittleEndianImplicit'. It says E: can't convert input pixel data, probably unsupported compression when I try to read it with DcmFileFormat * format = new DcmFileFormat; OFCondition cond = format->loadFile(/*path*/); if(cond.good() && fo...
by gzhang
Tue, 2017-09-05, 14:18
Forum: DCMTK - General
Topic: on DcmFileFormat::validateMetaInfo
Replies: 2
Views: 2534

Re: on DcmFileFormat::validateMetaInfo

Thanks for replying! My problem was solved after correcting the 'length' given by DcmFileFormat::calcElementLength() with the one given by DcmOutputBufferStream::flushBuffer(). This, of course, is done after the writing finishes. It seems the value given by DcmFileFormat::calcElementLength() may fal...
by gzhang
Sat, 2017-08-12, 14:11
Forum: DCMTK - General
Topic: on DcmFileFormat::validateMetaInfo
Replies: 2
Views: 2534

on DcmFileFormat::validateMetaInfo

Hi, I am a bit confused with the DcmFileFormat::validateMetaInfo and DcmFileFormat::calcElementLength(). Using the following code, I load in a Dicom file, compress it, write it to a butter and then save the buffer through cstdio. Afterwards, when I try to read (dcmdjpeg.exe) the resulting file, it s...
by gzhang
Wed, 2017-01-18, 17:25
Forum: DCMTK - General
Topic: Dicom SR problem
Replies: 10
Views: 8409

Re: Dicom SR problem

Thank you very much! :)
by gzhang
Wed, 2017-01-18, 17:17
Forum: DCMTK - General
Topic: Dicom SR problem
Replies: 10
Views: 8409

Re: Dicom SR problem

OK! May I take it that the problem of

Code: Select all

W: Reading invalid/incomplete content item IMAGE "1.11.5"
and

Code: Select all

W: Rendering invalid/incomplete content item IMAGE
will be solved if the corresponding 'ReferencedSOPInstanceUID (0008,1155)' is filled correctly, right?
by gzhang
Wed, 2017-01-18, 17:11
Forum: DCMTK - General
Topic: Dicom SR problem
Replies: 10
Views: 8409

Re: Dicom SR problem

Sorry, my fault. Now I have used 'dcmodify' to anonymize the SR. Then, if I run 'dsr2html -d -Ee -Ei SRd* test.html', here is what the logger says: D: $dcmtk: dsr2html v3.6.0 2011-01-06 $ D: D: DcmItem::checkTransferSyntax() TransferSyntax="Little Endian Explicit" W: Manufacturer (0008,007...
by gzhang
Wed, 2017-01-18, 16:51
Forum: DCMTK - General
Topic: Dicom SR problem
Replies: 10
Views: 8409

Re: Dicom SR problem

Hi, dcmodify fails, for example, here is what it says when I tried to insert an institution name: dcmodify -i "(0800,0080)=Test Institution" -d -ie SRd* I: Processing file: SRd.1.3.46.670589.28.96161007153120170117161734475881.2 I: Loading file into dataset manager: SRd.1.3.46.670589.28.96...