This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes DICOM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "DICOM" Watch "DICOM" New topic
Author

DICOM

Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
hi all,
am new to DICOM..
i need some sample code on how to display dicom images using java..
can any one please help me how to do it...
is thier any sites available for dicom imaging codes...

thank you..

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41583
    
  54
You may want to investigate the open source ImageJ application/library - it can read and display DICOM files.


Ping & DNS - my free Android networking tools app
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
I have displayed the dicom image successfully
now i want to compress the image..

what compression algorithm i can use for this?
could you please help me with any link or descriptions..

Thanks in advance..
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
is their any best compression technique to compress dicom image without losing the details?
please help
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10268
    
    8

http://fixunix.com/dicom/514627-dicom-compression-extraction.html


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
hi ranches..
i successfully wrote a program to display dicom images..and display the tag values in a table..
now i need to combine it both..
that is i need to get the image value and pass it as input file to the table class..
i tried as follows:





but am getting error as :

Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem:
The method TableDemo1(File) is undefined for the type imagetable



can anyone please help....
i willl be very thankful to them...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41583
    
  54
"TableDemo1(f)" is not a valid Java expression. If you want to create a new TableDemo1 object, then the proper syntax for that is "new TableDemo1(f)".
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
oh thanks Ulf Dittmer...

it works well now..
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
Hi everyone,

i have developed program successfully to display dicom image and its header information....
the problem am facing here is i can successfully display elements and its sub item values.. but cant display another set of sub elements present in that sub item values
That is if displayed it is aligned normally without a tab space...

also i need to display these sub element values alone in a table...
here is my code which displays header information...


can anyone help....
thaks in advance...
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
please can anyone help on the above post..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41583
    
  54
the problem am facing here is i can successfully display elements and its sub item values.. but cant display another set of sub elements present in that sub item values
That is if displayed it is aligned normally without a tab space...

What does the code do now? Can you post an example of its output as is, and an example of the output you'd like to get? Where do you think the problem is getting from one to the other?
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
thanks ulf...

the output for the above code will be like this:


but i need to display as follows



Also i need the subitems output in the form of table ....
can you help with some idea or any change in code...

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41583
    
  54
At a quick glance those outputs look identical except for some white space; what's the functional difference?
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
no if you keenly notice you can see the difference at (0040,0008) [SQ]
in both the output that makes big difference.. also i need to append (0040,0008) and its subitems next to (0040,0007)....




Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
i was developing a program that checks and display dcm files using netbeans...
but whenever i analyse a particular directory to display the dcm files in jtable am getting the below error:

Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

this s my code..



can you please explain where is the problem and what to change?
thanks..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41583
    
  54
Which action causes this? Are you certain that the code properly disposes of all objects it no longer needs? Be sure to read the javadocs of all classes you use with respect to this.
vivekkumar vijayan
Greenhorn

Joined: May 31, 2010
Posts: 2
Im new to Dicom . Can Any one help me . Im using NETBEANS IDE for developing swing Standalone Application. What jar files i should use to work on dicom application.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41583
    
  54
vivekkumar vijayan,

I'm not sure what you mean by "work on dicom application", but if you're looking for a library that can read DICOM files then I've mentioned one in my first post.
vivekkumar vijayan
Greenhorn

Joined: May 31, 2010
Posts: 2
ya thank for this information .. Im new to DICOM Please help me....

What is the purpose of this http://www.dcm4che.org/ and by using this dcm4che, how can i Get the dicom image from x-ray device and Store Dicom image into database server using java.

And also i want to know what is the use of JBOSS server in my application that get x-ray images from X-Ray machine and store it into database.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41583
    
  54
Let's keep this topic to DICOM, specifically. If you have question about other topics, please start a new thread in an appropriate forum. The product/library you mention would best fit into the "Other Open Source Projects" forum.
venkat yuvaraj
Greenhorn

Joined: Jun 09, 2010
Posts: 1
hi im venkat...i want to know how to convert 2D to 3D dicom image
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DICOM