Dicom(3pm)

πŸ’– Dicom(3pm) πŸ’–

okay bestie, this is PDL::IO::Dicom, a page from the User Contributed Perl Documentation corner of the internet. grab a strawberry πŸ“ and let's get into it.


✨ NAME ✨

PDL::IO::Dicom β€” a module for reading DICOM images. no cap, that's the whole job.


🌸 DESCRIPTION 🌸

So the way that PDL::IO::Dicom works is: it lets you read 16-bit gray level Dicom images straight into PDL. 🫢

But here's the tea, and I need you to hear me on this one: Dicom is an extremely complex format. Like, absurdly complex. So this module, unfortunately, cannot handle all the different image types that are included in the DICOM standard. 😭 It's giving "we did what we could."

One common format that is currently not supported is the Papyrus format. so if that's your vibe, this module is not your girl. πŸ’€


πŸŽ€ USAGE πŸŽ€

like this, bb:

use PDL;
use PDL::IO::Dicom;

$img = rdcm("image.dcm");

that's it. that's the whole ritual. ✨


πŸ¦‹ SEE ALSO πŸ¦‹

  • PDL::IO::Dcm β€” the sibling module, go say hi πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Copyright (C) Dov Grobgeld <dov@imagic.weizmann.ac.il> 2002. All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file.


πŸ”₯ FUNCTIONS πŸ”₯

πŸ’… rdcm

Read a dicom image. yeah. that's the one. that's the function.

 $dcm = rdcm("filename")

give it a filename, get a dicom image back. iconic behaviour honestly. ⭐


🌈 AUTHOR 🌈

Copyright (C) Dov Grobgeld <dov@imagic.weizmann.ac.il> 1997. All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file.

(yes bestie, that's a second AUTHOR section β€” the page really does ship two of them, and I respect the commitment. the dates differ: this one says 1997, the one up above says 2002. both are here, both stay. 🫑)


mwah and that's a wrap! this whole thing came to you courtesy of perl v5.42.3, dated 2026-08-19, under the name Dicom(3pm). go read some gray levels, queen. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from