Questions tagged [dicom]

Digital Imaging and Communications in Medicine (DICOM) standard defines formats for storing and communicating medical images. Non-programming specific questions about DICOM are off-topic for Stack Overflow. For questions related to a specific tool-kit, use a more specific tag in addition to, or instead of, this tag.

Digital Imaging and Communications in Medicine (DICOM) standard defines formats for storing and communicating medical images. It's used to enable interoperability between applications from multiple manufacturers which store or communicate medical images.

Further details can be found at the DICOM Wikipedia page or DICOM Homepage.

1158 questions
11
votes
2 answers

How to decode a JPEG2000 bitarray image with JavaScript

I'm using the File API to break down a DICOM file and get its data in a byte array. The problem is that I can not decode a JPEG2000 image and show it in the browser (Chrome, Firefox, etc.). For example, if the image data is coded in JPEG format, I…
user1211709
  • 139
  • 1
  • 3
  • 6
11
votes
6 answers

How to decide if a DICOM series is a 3D volume or a series of images?

We are writing an importer for dicom files. How does one generally deceide if a series of images forms a 3D-Volume or is just a series of 2D images? Is there a universal way to decide this for most vendors? I looked a the DICOM tags and could no…
Stiefel
  • 2,677
  • 3
  • 31
  • 42
10
votes
4 answers

Python convert .dcm to .png, images are too bright

I have to convert some files which come by default as .dcm to .png, I've found some code samples to achieve that around here but the end results are too bright. Could anybody have a look at this, please? def convert_to_png(file): ds =…
Terchila Marian
  • 2,225
  • 3
  • 25
  • 48
10
votes
1 answer

Getting DICOM structure contours as array in Python

So if I have an image (CT, MRI, etc.) or even a dose from radiation therapy I can pull out the dose or image values into an array through: import dicom ds = dicom.read_file("dicom_file.dcm") print ds.pixel_array This is pretty straightforward,…
Denver Dang
  • 2,433
  • 3
  • 38
  • 68
9
votes
4 answers

how to display dicom image in matlab?

I want to ask about this function in matlab dicomread example : a = dicomread ('m.dcm'); imshow(a) the image showed in the screen but it is very dark.....I wonder way it is dark and not normal. I checked with different dicom images but the problem…
user-x
  • 139
  • 2
  • 2
  • 8
9
votes
3 answers

Identify Compressed DICOM image by tag

How to identify whether a dicom image is in compressed format ? And also want to know how to read compressed image pixel data ?
ananth_adroit
  • 245
  • 1
  • 4
  • 18
9
votes
1 answer

What exactly is a DICOM IOD (Information Object Definition)?

I'm trying to understand DICOM better in preparation for a presentation about SOP. What I still haven't really understood is what an IOD (Information Object Definition) is practically. If I for example had a dataset with an encapsulated document…
Human654684
  • 115
  • 1
  • 4
9
votes
1 answer

Excluding Blank Nodes from SPARQL query results

I am using RDFLib to query on the Semantic Dicom Ontology. I am querying for owl:Class in the graph constructed from the above ontology. RDFLib returns results which contain blank nodes and I wish to exclude such queries. My query - from rdflib…
Anmol Kagrecha
  • 153
  • 2
  • 10
9
votes
1 answer

Swagger Yaml schema definition for object without a fixed property list

I am implementing an API-first application with the help of Swagger. One of the most important objects to be returned is a DICOM object, which returns a collection of attributes with flexible names, for example: { "00080005":…
Jaime
  • 5,770
  • 4
  • 23
  • 50
8
votes
1 answer

How to replace pixel data in same DICOM file using pyDicom to read it again with any DICOM viewer?

I want to read some DICOM files, so I'm testing pydicom for my work, which I think is considerably useful. Now I want to load existing DICOM files, replace the pixel data array with another pixel array (e.g. pre-processing or literally another DICOM…
user8697183
  • 123
  • 1
  • 2
  • 6
8
votes
2 answers

Is it true that DICOM "Media Storage SOP Instance UID" = "SOP Instance UID"? Why?

I have two questions when I am reading the DICOM standard: In a DICOM file, (0002 0003)"Media Storage SOP Instance UID" and (0008 0018) "SOP Instance UID", are they the same? What about (0002 0002) and (0008 0016)? and Why ??
Sujeeth Damodharan
  • 477
  • 2
  • 7
  • 16
8
votes
3 answers

How to calculate space between dicom slices for MPR?

Due to showing MPR view based on Dicoms. I've made a 3D array from series of dicom files. And I show it from Coronal and Sagittal sides. My 3D array includes: - z = count of dicoms - c = column value for every dicoms - r = Row value for every…
Omid Nazifi
  • 5,235
  • 8
  • 30
  • 56
8
votes
1 answer

What's the best value representation for boolean in DICOM?

AFAIK there's no boolean value representation, and I need to specify a boolean true/false in a private tag. I thought of a SH (SHort string), saying TRUE or FALSE. Is there a standard or widely used way to specify it?
CharlesB
  • 86,532
  • 28
  • 194
  • 218
7
votes
1 answer

PostgreSQL: Convert UUID into OID

Is there a function in PostgreSQL to convert a UUID (RFC 4122) into a OID (ISO 8824) ? The value after "2.25." is the straight decimal encoding of the UUID as an integer. It MUST be a direct decimal encoding of the single integer, all 128 bits. It…
malat
  • 12,152
  • 13
  • 89
  • 158
7
votes
2 answers

Is suffixing a UUID derived DICOM UID standard conform?

Additional discussion on the comp.protocols.dicom google group. Specific example: Given that instance UIDs are derived from UUIDs as described in PS3.5 B.2. For example given the following DICOM instance…
Spenhouet
  • 6,556
  • 12
  • 51
  • 76
1
2
3
77 78