Hi Varun,

as I said. mitk::IOUtil::Load(argv[1],*ds); does load dicom images If the dicom 
modules are build (which they are in your case, because you can open it in the 
datamanager). Presumably the following command will show something:

<YourSuperbuildDirectory>\MITK-build\bin\MitkStep1_release.bat   
<YourSuperbuildDirectory>\MITK-Data\DICOMReader\CR-MONO1-10-chest-spacing-pixelspacing.dcm

So you are using the mitk dicom reader. However if your own data does not load, 
then because the default dicom reader configuration (of the three 
configurations) does not know how to handle whatever is written in your dicom 
data’s tag 0028,0005, which happens to be “ImageDimensions”.

Check your data via dcmdump (or another dicom utility of your choice) to see 
what that tag contains in contrast to some of the test data we provide. Then 
check whether you can reproduce the error using the Workbench to see which 
configurations can handle it and which cannot.

For code examples take a look at:
FileReaderSelector::FileReaderSelector(const std::string &path) : m_Data(new 
Impl)
For getting a reader for your path.

std::vector<mitk::BaseData::Pointer> baseData = reader->Read();
gets you the actual data from the reader, check
  std::string IOUtil::Load(std::vector<LoadInfo> &loadInfos,
                           DataStorage::SetOfObjects *nodeResult,
                           DataStorage *ds,
                           ReaderOptionsFunctorBase *optionsCallback)
For an example of how it is used in the application. You can also set a 
breakpoint there to see what happens differently for the MITK Workbench read 
and the tutorial step read.

Best,
Caspar

Von: Varun Varadarajan [mailto:varun.varadara...@inova-de.eu]
Gesendet: Dienstag, 25. Oktober 2016 16:12
An: Goch, Caspar Jonas
Cc: mitk-users
Betreff: Re: [mitk-users] To load dicom images

Hello Mr.Goch,

As said earlier, I selected the MITK Dicom Reader from the dropdown. But this 
is in the mitk workbench. How do i use the same in my code. Which library or 
mitk header i need to include to load dicom images. MITK documentation is too 
huge that i get confused where to begin at. I do not want to change the entire 
thing. I want to use MITK as part of my code.

Kindly help me with how to load the dicom image using MITK libraries and 
functions.



Mit freundlichen Grüßen,
Varun Varadarajan
--------------------------------

Mr. Varun Varadarajan
Werkstudent

Tel: +49 6221 3543445<tel:%2B49%206221%203543445>
Mob: +49-17657977029<tel:%2B49%20163%203349042>
E-Mail: varun.varadara...@inova-de.eu<mailto:varun.varadara...@inova-de.eu>
Web: www.inova-de.eu<http://www.inova-de.eu/>

Inova DE GmbH
Sitz: Kaiserstraße 64, 69115 Heidelberg, Germany

Amtsregister Mannheim: HRB 722938, USt-IdNr.: DE 301814751 Steuernummer: 
32494/63607 Geschäftsführer: Varun Varadarajan


Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse, dem Anwaltsgeheimnis 
unterliegende oder sonstige vertrauliche Informationen enthalten. Sollten Sie 
diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des 
Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich 
untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene 
E-Mail. Vielen Dank!
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately and delete this e-mail from your system. Thank you!

Please think twice before printing this e-mail: save paper, toner and the 
environment.

On 21 October 2016 at 12:17, Goch, Caspar Jonas 
<c.g...@dkfz-heidelberg.de<mailto:c.g...@dkfz-heidelberg.de>> wrote:
Hi Varun,

Dicom handling in MITK is somewhat different from other image formats. When you 
invoke
mitk::IOUtil::Load(argv[1],*ds);
it probably selects the classic dicom reader by default (there are currently 
three reader configuriations). If you load those image with the workbench via 
drag and drop (of one of the .dcms), which reader did you select (there should 
be a popup). Test all three whether you receive the warning there as well.

Best,
Caspar

Von: Varun Varadarajan 
[mailto:varun.varadara...@inova-de.eu<mailto:varun.varadara...@inova-de.eu>]
Gesendet: Freitag, 14. Oktober 2016 11:42
An: Goch, Caspar Jonas
Cc: mitk-users
Betreff: Re: [mitk-users] To load dicom images

Hello Mr.Goch,

I will add the users list here on.


Yes in the MITK workbench it works fine and the .dcm image is loaded in all the 
4 views. But it does not work in case of the tutorial program Step 1. And is 
the program limited to load onlzý .nrrd and .vtk images?

Does this warning signify anything?

"sorry cant read attribute <wrong VR>: <0028,0005> "

Because i do not get this warning while loading .nrrd and .vtk images.

Any advise on this?

Kind Regards
Varun

Mit freundlichen Grüßen,
Varun Varadarajan
--------------------------------

Mr. Varun Varadarajan
Werkstudent

Tel: +49 6221 3543445<tel:%2B49%206221%203543445>
Mob: +49-17657977029<tel:%2B49%20163%203349042>
E-Mail: varun.varadara...@inova-de.eu<mailto:varun.varadara...@inova-de.eu>
Web: www.inova-de.eu<http://www.inova-de.eu/>

Inova DE GmbH
Sitz: Kaiserstraße 64, 69115 Heidelberg, Germany

Amtsregister Mannheim: HRB 722938, USt-IdNr.: DE 301814751 Steuernummer: 
32494/63607 Geschäftsführer: Varun Varadarajan


Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse, dem Anwaltsgeheimnis 
unterliegende oder sonstige vertrauliche Informationen enthalten. Sollten Sie 
diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des 
Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich 
untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene 
E-Mail. Vielen Dank!
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately and delete this e-mail from your system. Thank you!

Please think twice before printing this e-mail: save paper, toner and the 
environment.

On 14 October 2016 at 11:36, Goch, Caspar Jonas 
<c.g...@dkfz-heidelberg.de<mailto:c.g...@dkfz-heidelberg.de>> wrote:
Hi Varun,

have you tried loading the images using the dicom browser of the MITK 
workbench? Did it work?

Best,
Caspar

Von: Varun Varadarajan 
[mailto:varun.varadara...@inova-de.eu<mailto:varun.varadara...@inova-de.eu>]
Gesendet: Freitag, 14. Oktober 2016 11:01
An: mitk-users
Betreff: [mitk-users] To load dicom images

Hello All,

I am new to MITK and i was trying the MITK tutorials. I want to load the DICOM 
images instead of .nrrd or .vtk.

As i see "mitk::IOUtil::Load(argv[1], *ds);" is the line which loads the 
images. If i want to load a dicom image(*.dcm) , what am i supposed to do?

I give the dicom image location path in the command arguments, but a blank 
screen is displayed in the output window and i get a lot of warnings saying :

"sorry cant read attribute <wrong VR>: <0028,0005> "

What might be the reason?

Please Help


Mit freundlichen Grüßen,
Varun Varadarajan
--------------------------------

Mr. Varun Varadarajan
Werkstudent

Tel: +49 6221 3543445<tel:%2B49%206221%203543445>
Mob: +49-17657977029<tel:%2B49%20163%203349042>
E-Mail: varun.varadara...@inova-de.eu<mailto:varun.varadara...@inova-de.eu>
Web: www.inova-de.eu<http://www.inova-de.eu/>

Inova DE GmbH
Sitz: Kaiserstraße 64, 69115 Heidelberg, Germany

Amtsregister Mannheim: HRB 722938, USt-IdNr.: DE 301814751 Steuernummer: 
32494/63607 Geschäftsführer: Varun Varadarajan


Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse, dem Anwaltsgeheimnis 
unterliegende oder sonstige vertrauliche Informationen enthalten. Sollten Sie 
diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des 
Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich 
untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene 
E-Mail. Vielen Dank!
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately and delete this e-mail from your system. Thank you!

Please think twice before printing this e-mail: save paper, toner and the 
environment.


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to