• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading DICOM Images

 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm using the code provided at the following link to read DICOM images:

http://www.dcm4che.org/confluence/display/d2/Reading+DICOM+files

But, I'm getting errors under the following, and think that they are due "Import" stuff, but don't know from or what to import.

DicomObject

DicomInputStream

Thanks.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately we can't read your screen, so if you posted those error messages, that would really help us help you...

How are you adding the library that contains those classes to the classpath?
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree with Ulf. If you let us see the error message, we're more likely to be able to help. I just wanted to add that using a IDE like Eclipse, which is free, can make working with imports much easier. In most cases it can automatically write the import statements for you.
 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Unfortunately we can't read your screen, so if you posted those error messages, that would really help us help you...

How are you adding the library that contains those classes to the classpath?


I'm getting an error under the "DicomInputStrea," stating the following:

DicomInputStream cannot be resolved to a type


As for adding the .jar files, I just created a "lib" folder in my project and added the .jar files to that folder.

Makes sense?

Thanks.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As for adding the .jar files, I just created a "lib" folder in my project and added the .jar files to that folder.

Jar files need to be added individually to the classpath; just putting them into a particular folder accomplished nothing (unless you're using a tool like Ant that is set up to add all files in a particular folder to the classpath).
 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found that the MAIJN matter was due to the fact that there were some files missing, and the problem is now being resolved.

Thanks everyone.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic