dicom

read DICOM image using C#

烈酒焚心 提交于 2019-12-01 14:22:37
问题 How to read a DICOM file using C# ? 回答1: There is a codeproject article that you probably checked out. If not, maybe it can help you out. http://www.codeproject.com/KB/graphics/dicomImageViewer.aspx. It is a DICOM viewer that reads DICOM files where image bit depth is 8 or 16 bits. 回答2: I don't know of any native libraries for reading DICOM files, but you can use ImageMagik to read them and convert them to a format that you can use. To use ImageMagik from C# you can do something like this:

how to spatially order files in a dicom data sequence?

左心房为你撑大大i 提交于 2019-12-01 13:14:35
Do the filenames associated with a DICOM image series (from a single scan) match the spatial ordering? What I mean is if the patient was scanned “head first” is 000000.dcm more “superior” than 000001.dcm which is more superior than 000003.dcm etc? If the answer is no, how is spatial ordering established? No, the file names are rarely associated with the spatial ordering. The best thing to use is the image position (patient) (0020,0032) and image orientation (patient) (0020,0037) values to get the geometry of each image. From there, you can "order" things how you wish, spatially. kritzel_sw You

How are the spacing value of the z dimension and thickness (0018, 0050) different in dicom series?

会有一股神秘感。 提交于 2019-12-01 11:08:31
I've been studying some dicom series and find that the thickness attribute and the itkimage.GetSpacing()[2] value are not always consistent. For example the thickness (0018, 0050) value encoded in the dcm file is 1.5 mm but the corresponding spacing indicated simpleITK on z axis is 1.00 . Then what value should I use to indicate the physical distance between adjacent voxel center s on the z axis? If they are different things then What do spacings actually mean? I retrieve thickness and spacing values in python like this: //thickness using dicom thickness = dicom.read_file(dcm_file)[0x0018,

how to spatially order files in a dicom data sequence?

泪湿孤枕 提交于 2019-12-01 10:24:49
问题 Do the filenames associated with a DICOM image series (from a single scan) match the spatial ordering? What I mean is if the patient was scanned “head first” is 000000.dcm more “superior” than 000001.dcm which is more superior than 000003.dcm etc? If the answer is no, how is spatial ordering established? 回答1: No, the file names are rarely associated with the spatial ordering. The best thing to use is the image position (patient) (0020,0032) and image orientation (patient) (0020,0037) values

Writing IEEE 754-1985 double as ASCII on a limited 16 bytes string

跟風遠走 提交于 2019-12-01 06:27:43
This is a follow-up to my original post . But I'll repeat it for clarity: As per DICOM standard, a type of floating point can be stored using a Value Representation of Decimal String. See Table 6.2-1. DICOM Value Representations : Decimal String: A string of characters representing either a fixed point number or a floating point number. A fixed point number shall contain only the characters 0-9 with an optional leading "+" or "-" and an optional "." to mark the decimal point. A floating point number shall be conveyed as defined in ANSI X3.9, with an "E" or "e" to indicate the start of the

Viewing dicom images on iPad [closed]

血红的双手。 提交于 2019-11-30 16:04:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Does anyone have any idea how to display DICOM images on iPad, or any supporting format for displaying it directly? Do I need to go for conversion? Any idea or any thoughts or at least any help!!! 回答1: The Osirix DICOM Viewer displays images on the Mac OS and iOS for iPhone/iPad

DICOM: What's the point of SOPInstanceUID tag?

丶灬走出姿态 提交于 2019-11-30 11:03:31
问题 DICOM already provides a unique enough identifier for the Series (e.g. Series Instance UID), so why also include one on the lower level objects (e.g. SOPInstanceUID)? What I find really annoying is the fact that when referencing other objects - for example when RTPlan object references RTStruct object via ReferencedStructureSetSequence / ReferencedSOPInstanceUID - it's done using the SOP Instance UID . However any of the DICOM SCPs - such as find/move - don't work with SOP Instance UID , they

rescale slope and rescale intercept

笑着哭i 提交于 2019-11-30 09:05:09
I have few questions about the rescale slope and rescale intercept in CT DICOM : Are they used to transfer original data from the scanner to Hounsfield data set, in which water is 0 and air is -1000? I am in the image display group. How can I know the rescale slope and the rescale intercept values? What's the exact meaning of the rescale slope and the rescale intercept? How are they determined? Paolo Brandoli The rescale slope and rescale intercept allow to transform the pixel values to HU or other units, as specified in the tag 0028,1054. For CT images, the unit should be HU (Hounsfield) and

DICOM affine matrix transformation from image space to patient space in Matlab

痴心易碎 提交于 2019-11-30 04:05:38
From the nifti header its easy to get the affine matrix. However in the DICOM header there are lots of entries, but its unclear to me which entries describe the transformation of which parameter to which new space. I have found a tutorial which is quite detailed, but I cant find the entries they refer to. Also, that tutorial is written for Python, not Matlab. It lists these header entries: Entries needed: Image Position (0020,0032) Image Orientation (0020,0037) Pixel Spacing (0028,0030) I cant find these if I load the header with dicominfo() . Maybe they are vendor specific or maybe they are