Dear Caspar,

Following my last question couple of months back about DICOM tags
retrieval, I tried to ignore this issue but it has come back now and I need
to fix it. I really needed a sample code for a concrete example and you
kindly sent me a link which has lines like:

IDICOMTagsOfInterest *toiService = GetDicomTagsOfInterestService();

My problems are:

1) I don't understand where this method is coming from
GetDicomTagsOfInterestService?
I tried to include #include <mitkIDICOMTagsOfInterest.h> but my template
project which is based on the sample on MITK website does not recognise it.

2) I need "Image Comments" as the tag to add to the BaseData of the node in
datamanager. My understanding is after having tagofinterestservice I can do:
toiService->AddTagOfInterest(DICOM.0020.4000); Is this right?

3) Finally, how the tag can be linked to my DICOM image which was read into
application like:
std::vector<mitk::BaseData::Pointer> baseDatas =
mitk::IOUtil::Load(seriesToLoad.front().toStdString());

I found few slides on the website but again it's not really an example and
just introduce this GetDicomTagsOfInterestService() function. Can you or
somebody please make this a little clearer?

Many thanks.
Dora


On Fri, Feb 9, 2018 at 9:57 AM, Goch, Caspar Jonas <
c.g...@dkfz-heidelberg.de> wrote:

> Hi Dora,
>
>
>
> for a concrete example of an IO registering its own dicom tags of interest
> check out the DICOMQIIO [1]. A slight caveat here is that this only works
> if the TagsOfInterestService is already registered, but that has not been
> an issue for us as of yet.
>
>
>
> Best,
>
> Caspar
>
>
>
> [1] https://phabricator.mitk.org/source/mitk/browse/master/
> Modules/Multilabel/autoload/DICOMQIIO/mitkDICOMSegmentationIO.cpp;
> 50c3012e413e3b27d0bf906899fa5f24850adfd7$45-88
>
>
>
>
>
> *Von:* Admin Uniapp [mailto:contactuni...@gmail.com]
> *Gesendet:* Donnerstag, 8. Februar 2018 20:26
> *An:* Goch, Caspar Jonas
> *Cc:* MITK
> *Betreff:* Re: [mitk-users] DICOM tags retrieval
>
>
>
> Hi Casper,
>
>
>
> Thanks for your reply. I checked the links you sent but can you please
> help with a more concrete example on how to use this
> DICOMTagsOfInterestService.
>
>
>
> auto tagsOfInterestService = GetDefaultDICOMTagsOfInterest();
>
> tagsOfInterestService->AddTagOfInterest(DICOMTag(0x0020, 0x4000));
>
>
>
> QString path = "path_to_dicom_folders";
>
> mitk::IOUtil::Load(path.toStdString(), *this->GetDataStorage());
>
>
>
> This is what I intended to start with. I'm not sure how to retrieve this
> tagofInterestSerive and link it with the mitk IO utility tools.
>
>
>
> Many thanks in advance.
>
>
>
> On Thu, Jan 25, 2018 at 12:05 PM, Goch, Caspar Jonas <
> c.g...@dkfz-heidelberg.de> wrote:
>
> Hi Dora,
>
>
>
> Dicom tags have been restructured a while ago. You can now use the
> DICOMTagsOfInterestService [1] to manage which tags should be added to the
> nodes [2]. An idea of what tags are usually added if present can be found
> by perusing our default tags of interest [3]. If you want to check in the
> application what properties have been added to your data you can:
>
> 1.       Go to Window->Preferences->Properties and enable the developer
> mode
>
> 2.       Open the property list view
>
> 3.       Select your image in the data manager
>
> 4.       Switch the combobox in the property list view to base data
>
>
>
> You will see all properties in the base data property list, all Dicom
> properties should have the name DICOM.XXXX.XXXX, presumably DICOM.0020.4000
> for the attribute Image Comments.
>
>
>
> Best,
>
> Caspar
>
>
>
> [1] http://docs.mitk.org/nightly/classmitk_1_1DICOMTagsOfInterestService.
> html
>
> [2] http://www.mitk.org/images/c/cd/DICOMMetaInformation.pdf
>
> [3] https://phabricator.mitk.org/source/mitk/browse/master/
> Modules/DICOMReader/src/mitkDICOMTagsOfInterestHelper.cpp
>
>
>
>
>
> *Von:* Admin Uniapp [mailto:contactuni...@gmail.com]
> *Gesendet:* Dienstag, 23. Januar 2018 18:52
> *An:* MITK
> *Betreff:* [mitk-users] DICOM tags retrieval
>
>
>
> Hello all,
>
>
>
> I have managed in the past to retrieve DICOM tags using the node and the
> property list of nodes and using a key to find its corresponding value:
>
>
>
> node->GetData()->GetPropertyList()->GetStringProperty("dicom.series.SeriesDescription",
> seriesDescription);
>
>
>
> I'm working with a new series of DICOM images where they have a tag called
> "Image Comments". The same approach doesn't work as I don't know what key
> to use. Is there anyway to print out all the tags associated with a DICOM
> data node in MITK?
>
>
>
> Many thanks in advance.
>
> Dora
>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to