Dear Clemens,

Thank you for your detailed reply. I still can't load the #include
<mitkDICOMTagsOfInterestService.h> header. I changed the cmake in my custom
module to contain the MitkDICOMReaderServices but still not successful. Do
you have any idea what I might be missing? Many thanks for your help.

MITK_CREATE_MODULE(MyTestLib
    DEPENDS MitkQtWidgetsExt MitkQtWidgets MitkAlgorithmsExt MitkCore
MitkDICOMReaderServices
    PACKAGE_DEPENDS VMTK ITK
)


On Fri, Jun 29, 2018 at 10:09 AM, Hentschke, Clemens <
c.hentsc...@dkfz-heidelberg.de> wrote:

> Additionally to what I wrote:
>
> You find some documentation regarding reading of DICOM tags [1][2]. The
> second source is new and tackles exactly your problem.
>
>
>
> Regards
>
>   -Clemens
>
>
>
> [1] http://mitk.org/wiki/DICOM_property_naming
>
> [2] http://mitk.org/images/c/cd/DICOMMetaInformation.pdf
>
>
>
> *From:* Hentschke, Clemens [mailto:c.hentsc...@dkfz-heidelberg.de]
> *Sent:* 29 June, 2018 09:52
> *To:* Admin Uniapp <contactuni...@gmail.com>
>
> *Cc:* MITK <mitk-users@lists.sourceforge.net>
> *Subject:* Re: [mitk-users] DICOM tags retrieval
>
>
>
> Dear Dora,
>
>
>
> 1)      You’ll find an example of mitk::IDICOMTagsOfInterest*
> GetDicomTagsOfInterestService() [1] in the Module DICOMRTIO in the class 
> DicomRTIOMimeTypes.
> See the CMakeLists [2] of that Module and the parent Module [3]:
> MitkDICOMReaderServices is mandatory, you may need to include DCMTK too for
> reading specific sequence tags (then use DICOMDCMTKTagScanner)
>
> 2)      Yes. Have a look at DICOMSegmentationIO::AddDICOMTagsToService()
> [4]. It’s then available as property of BaseData.
>
> 3)      The DICOM tags are available after loading via IOUtil as
> standardized properties (e.g. DICOM.0010.0040 M). As alternative, you may
> also use the DICOMDCMTKTagScanner [5], see RTDoseReaderService::Read()
> [6] for an usage example.
>
>
>
> You are right, we have to update our documentation about loading DICOM
> properties.
>
>
>
> Regards
>
>   -Clemens
>
>
>
> [1] https://phabricator.mitk.org/source/mitk/browse/master/
> Modules/DicomRT/autoload/IO/mitkDicomRTIOMimeTypes.cpp$246
>
> [2] https://phabricator.mitk.org/source/mitk/browse/master/
> Modules/DicomRT/autoload/IO/CMakeLists.txt
>
> [3] https://phabricator.mitk.org/source/mitk/browse/master/
> Modules/DicomRT/CMakeLists.txt
>
> [4] https://phabricator.mitk.org/source/mitk/browse/master/
> Modules/Multilabel/autoload/DICOMQIIO/mitkDICOMSegmentationIO.cpp$57
>
> [5] http://docs.mitk.org/nightly/classmitk_1_1DICOMDCMTKTagScanner.html
>
> [6] https://phabricator.mitk.org/source/mitk/browse/master/
> Modules/DicomRT/autoload/IO/mitkRTDoseReaderService.cpp$73
>
>
>
>
>
> *From:* Admin Uniapp [mailto:contactuni...@gmail.com
> <contactuni...@gmail.com>]
> *Sent:* 28 June, 2018 20:36
> *To:* Goch, Caspar Jonas <c.g...@dkfz-heidelberg.de>
> *Cc:* MITK <mitk-users@lists.sourceforge.net>
> *Subject:* Re: [mitk-users] DICOM tags retrieval
>
>
>
> 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