DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Fri, 2017-05-26, 18:06

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri, 2015-04-24, 02:58 
Offline

Joined: Wed, 2015-03-25, 09:34
Posts: 1
Hi,

I'm trying to get at some Siemens information through the dcmtk api,
in specific, the ASCONF section, but also the "NumbersOfImagesInMosaic"

I can see the text if I open the dicom with vi.

As for "NumbersOfImagesInMosaic", I can get the value by tag access: (0019|100a) but I'm not sure whether ...
A) I can rely on it
B) why the tag name is not "NumbersOfImagesInMosaic" when I query it. [perhaps the two are not the same would be an explanation I guess]

So my next idea was to look for the length of data since the section containing ASCONF is long I figured I'd look for tag content that is long and not pixel data. I got 2 candidates:
CSAImageHeaderInfo: (0029,1010) and CSASeriesHeaderInfo: (0029,1020)

If they are, indeed, what I'm looking for, I'm somewhat struggling to extract the info. From the vi view I can tell it's ascii characters but these two are available via dcmtk as binary blobs. Ignorantly reading them in as string was no good (both with getString() and getUint8.

So I was wondering if I have found the info I was looking for in those 2 headers or not, and if so, what is the preferred way of extracting that blob. Because if they are the text I see in the file, I don't know by what way they have been converted binary and whether 16/32 bit or big/little endian?

EDIT: Nevermind, I'm an idiot. My output routine was nonsense. A simple character by character did the job, plus I expected the section to begin somewhat later from looking into the file which was of course a mistake ...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group