dicom

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

懵懂的女人 提交于 2019-12-19 10:20:18
问题 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

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

牧云@^-^@ 提交于 2019-12-19 09:09:53
问题 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

Decode JPEG2000 bitarray image with Javascript

故事扮演 提交于 2019-12-18 12:21:58
问题 I'm using HTML5 technology with the FileApi. My problem is very simple, but i'm searching since 2 days ago and I have not find anything on the web I have a DicomFile. I use the FileApi from HTML5 to break it down, and get all the information. Finally I get the image data in a byte array. The problem is that I can not decode a JPEG2000 Image and show it in the browser (Chrome, FireFox, any). For example, if the image data is coded in JPEG format, I have no problem at all to show the image in

How to use DCMTK in an iPhone project

ぐ巨炮叔叔 提交于 2019-12-18 03:49:11
问题 I have already successfully used CCmake to compile dcmtk3.6 and build it in an ios environment, but I don't know how to include these compiled file in a new ios project. I have already moved dcmtk after compiling to a new iphone project, and used #include "dcm2xml.h" but there is error about path. 回答1: Try the iiDicom framework in QuickDicom. http://sourceforge.net/projects/quickdicom/ iiDicom provides an ObjC wrapper for DCMTK, but it has not been updated for a while, so only handles DCMTK 3

How to use DCMTK in an iPhone project

青春壹個敷衍的年華 提交于 2019-12-18 03:49:06
问题 I have already successfully used CCmake to compile dcmtk3.6 and build it in an ios environment, but I don't know how to include these compiled file in a new ios project. I have already moved dcmtk after compiling to a new iphone project, and used #include "dcm2xml.h" but there is error about path. 回答1: Try the iiDicom framework in QuickDicom. http://sourceforge.net/projects/quickdicom/ iiDicom provides an ObjC wrapper for DCMTK, but it has not been updated for a while, so only handles DCMTK 3

How to convert dicom file to jpg conversion

前提是你 提交于 2019-12-17 19:37:28
问题 How we can convert a dicom file(.dcm) to a jpeg image using java? Here is my code: import java.io.File; import java.io.IOException; import org.dcm4che2.tool.dcm2jpg.Dcm2Jpg; public class MainClass { public static void main(String[] args) throws IOException{ Dcm2Jpg conv = new Dcm2Jpg(); conv.convert(new File("C:\\Users\\lijo.joseph\\Desktop\\Dicom\\IM-0001-0001.dcm"), new File("C:\\Users\\lijo.joseph\\Desktop\\Dicom\\IM-0001-0001.jpg")); } } and i am getting the following error while running

Is there any N-Delete tool in dcmtk? [closed]

孤街醉人 提交于 2019-12-14 03:31:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . All, Is there any N-delete tools in DCMTK? If there isn't , Could someone please recommend a tool to me . I just want to delete the DICOM file stored in the pacs. Thanks. 回答1: N-DELETE is not for deleting DICOM objects in a PACS. It is e.g. used for the Print Management Service, i.e. for deleting a print job or

read dicom file tags in c#

安稳与你 提交于 2019-12-13 22:05:35
问题 Can you tell me how to read all the dicom tag and its VR in C#? 回答1: You have various .NET open-source libraries for reading DICOM files, but among others: DICOM# mdcm 回答2: This is, of course, totally dependent upon what DICOM library you're using. Using ClearCanvas you'd have something like this: public foo(DicomFile dfile) { DicomAttributeCollection dac; dac = dfile.DataSet; DicomUid uid; bool success; success = dac[DicomTags.SopInstanceUid].TryGetUid(0, out uid); if (success) { // The

ITK library on iOS - Loading DICOM

允我心安 提交于 2019-12-13 19:17:41
问题 I have built the ITK library for the ipad - and it works. Then I tried to make an ITK example - something like that: // Load DICOM files typedef itk::ImageSeriesReader< InputImageType > ReaderType; ReaderType::Pointer reader = ReaderType::New(); typedef itk::GDCMImageIO ImageIOType; typedef itk::GDCMSeriesFileNames NamesGeneratorType; ImageIOType::Pointer gdcmIO = ImageIOType::New(); NamesGeneratorType::Pointer namesGenerator = NamesGeneratorType::New(); namesGenerator->SetInputDirectory( "C:

How to extract/view all frames of a multi-frame DICOM file?

纵然是瞬间 提交于 2019-12-13 14:01:02
问题 I know I can view a dicom file using following code: import dicom from dicom.contrib.pydicom_PIL import show_PIL f = "CT-MONO2-8-abdo.dcm" ds = dicom.read_file(f, force=True) show_PIL(ds) However, how can I extract and view all frames from a multi-frame DICOM file? I tried using above code but got following error: File "/home/auser/.local/lib/python3.5/site-packages/dicom/dataset.py", line 399, in _get_pixel_array raise NotImplementedError("Pixel Data is compressed in a format pydicom does