Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display a DICOM image 2

Status
Not open for further replies.

Arepi

Technical User
Oct 23, 2008
17
0
0
HU
Hi,
It's possible to display in PERL a DICOM format image? Besides might importent also that embedding the image in a GUI like Tk.

Thanks a lot!

Arepi


 
perl itself does not display images. Perl just outputs whatever code or commands is necessary for the terminal or client to display an image.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
I thought "display a DICOM(.dcm) image", like I can display a JPEG,GIF,PNG, in Tk.

For example, display a JPEG image:
use Tk;
use Tk::JPEG;
my $main = new MainWindow;
my $canvas = $main ->Canvas;
$canvas->pack;
my $image = $canvas->Photo('-format' => 'jpg',
-file=>'something.jpg');
$canvas->create( 'image',50,0,
'-anchor' => 'nw',
'-image' => $image );
MainLoop;

So anyway posible display en DICOM format(.dcm) image?
Thanks!

Arepi
 
I have never heard of a DICOM image. If it is a proprietary format its very unlikely you can display it like the other much more common image formats you mentioned. You would probably need to convert it first.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top