Hi David,

I am not sure about what MITK version you are using or the default way of 
loading now (can't look it up), but there is a good chance that your 
mitk::Image (not the mitk::DataNode) already has properties attached that 
describe the tags that you are looking for.

If you want to dig into the code, I recommend two entry points:
- DICOMReader/src/mitkDICOMTagHelper.cpp
- DICOMReaderServices/include/mitkDICOMTagsOfInterestService.h

Regards,
Daniel



--

Dr. Daniel Maleike, Mint Medical GmbH

Friedrich-Ebert-Straße 2, 69221 Dossenheim/Heidelberg
Geschäftsführer: Dr. Matthias Baumhauer, Registergericht Mannheim, HRB 709351
________________________________
From: david....@louisville.edu <david....@louisville.edu>
Sent: Friday, July 1, 2016 7:11 PM
To: Daniel Maleike
Subject: Re: [mitk-users] Reading DICOM file image data

Hello again,

First, thank you for your quick response as I have been spending lots of time 
trying to tackle this problem.

By unaltered data I am referring to data that has not been scaled. It is 
important to get the unscaled data because I am attempting to access velocity 
data that is encoded in the pixel value.

Given that I cannot access this easily through MITK, I am now wondering how to 
go about accessing the tags (0028,1052 RescaleIntercept and 0028,1053 
RescaleSlope) from the data node to unscale the data. Is there an example of 
doing this that I could reference?

For context, I am going to eventually try to represent these velocity values as 
vectors drawn in the 3D window in the MITK Workbench as a way to visualize MRI 
flow data.

Thank you again for your time.

Best Regards,

David Exe



On Fri, Jul 1, 2016 at 12:06 PM Daniel Maleike 
<d.male...@mint-medical.de<mailto:d.male...@mint-medical.de>> wrote:

Hi David,


I am not sure to understand what unaltered data you refer to. Are you refering 
to the raw stored pixel values (7fe0,0010 Pixel data)?


MITK (gdcm in fact) already transforms this raw data through 0028,1052 
RescaleIntercept and 0028,1053 RescaleSlope. The motivation for this is storing 
of either negative or floating point values while keeping an integer data type 
for "Pixel data".


Within MITK you will not be able to access the stored pixel values. But you 
could unapply the transformation


image pixel value = intercept + slope * stored_value


Hope this helps,
Regards,

Daniel



--

Dr. Daniel Maleike, Mint Medical GmbH

Friedrich-Ebert-Straße 2, 69221 Dossenheim/Heidelberg
Geschäftsführer: Dr. Matthias Baumhauer, Registergericht Mannheim, HRB 709351
________________________________
From: David Exe <davide...@gmail.com<mailto:davide...@gmail.com>>
Sent: Friday, July 1, 2016 5:32 PM
To: mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
Subject: [mitk-users] Reading DICOM file image data

Hello,

I am trying to access the unaltered DICOM image data from a file loaded into 
MITK as a datanode through the data manager. I created a plugin to do this 
(using a dynamic cast to an image and then an ImagePixelReadAccesor then 
GetPixelByIndex) and found that the data that I am getting doesn't match the 
actual data (It seems to be larger by around 1064).

Does anyone know how to simply access the dicom image values from a datanode 
without any alteration of the values?

Thank you,

David Exe
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to