dicom

how to resolve index exceeds matrix dimensions in matlab?

孤街醉人 提交于 2019-12-31 06:21:01
问题 I am trying to read series of dicom images from a folder named as series 8.below is code to read series of dicom images from a particular folder.i am getting error index exceeds matrix dimensions at info = dicominfo(fullfile(fileFolder,fileNames{1})) . clear all; close all; clc; fileFolder = fullfile(pwd, 'series 8'); files = dir ( fullfile (fileFolder, '*.dcm')); fileNames = {files.name}; %examine file header (metadata , from dicom stack) info = dicominfo(fullfile(fileFolder,fileNames{1}))

Parse DICOM files in native Python

て烟熏妆下的殇ゞ 提交于 2019-12-30 00:54:46
问题 What is the simplest and most-pythonic way to parse a DICOM file? A native Python implementation without the use of non-Python libraries would be much preferred. DICOM is the standard file format in digital medical imaging (look here for more information). There are some C/C++ libraries that support reading (a subset) of DICOM files. Two or three of them even have Python bindings. A native Python parser would serve two purposes for me: No need to build any external C/C++ libraries. Learn

Finding the coordinates (mm) of identical slice locations for two MR datasets acquired in the same scanning session

可紊 提交于 2019-12-28 06:53:25
问题 I have two MR acquisitions where the first one is a 3D acquisition (1x1x1 mm3) and the second is a 2D acquisition (2.24 x 2.24 x 5.00 mm, axial slices). The high resolution dataset is a full head 3D acquisition that gives 176 slices if resliced in the axial direction (orientation was initially saggital in the acquisition). The 2D acquisition only contains 3 axial slices that were selected to target specific regions in the brain and were acquired continuously. Is it possible to know, which

How can I add metadata to a dicom file?

风流意气都作罢 提交于 2019-12-25 18:17:32
问题 This is in continuation with other question. I am trying to obtained a dicom file from a jpg image and some metadata I writte myself in the java program. I have this code for adding metadata but it seems to be incomplete, so I don´t know what else I need to include. I tried a simple code adding some attributes but I get some errors, so I found that there are some mandatory tags. Attributes attribs = new Attributes(); attribs.setString(Tag.StudyDate, VR.DA, "20110404"); attribs.setString(Tag

Enhanced SR SOP Class“1.2.840.10008.5.1.4.1.1.88.22” Is useful to draw Region of Interest

烂漫一生 提交于 2019-12-25 04:45:59
问题 SOP Class UID :- "1.2.840.10008.5.1.4.1.1.88.22" of Enhanced SR SOP Class Name In this SR Modality having various dicom tags from these various tag I want to draw the "Region of Interest"(ROI) on the MR Modality. this is my SR Dicom file SR DICOM So help me to know which SR Modality Tag I use to draw the marker on MR Modality or which referential tag I use to get ROI and MR reference SOP Instance UID with respect to SR Modality 回答1: I have been doing a large amount of work with mammography SR

How to get raw ecg data from DICOM file?

ぃ、小莉子 提交于 2019-12-24 19:43:11
问题 I would like to obtain raw ecg data (time - voltage) from a dcm file I have. I would like to do that in MATLAB, hovever if there is any other way, please let me know. Thank you 回答1: The following code will get the elements. Not sure if the values are Big Endian or Little Endian so the bytes may need to be swapped. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ConsoleApplication51 { class Program { const string FILENAME = @"c:

Problems with new module in Python (x,y) 2.7

北慕城南 提交于 2019-12-24 19:23:48
问题 I'm trying to use Python(x,y) version 2.7 to deal with some compressed DICOM data. I've installed the mudicom module using pip install and that worked fine. However, I also need the gdcm 2.6 module and I had to jump some hoops to install that using its .exe file and get it added to my PATH. I then added gdcm.py and gdcmswig.py to my site packages folder and added _gdcmswig.pyd to my DLLs folder as per instructions on another forum I found. Now Python at least seems to see that I have gdcm,

How to store and retrieve DICOM files in SQL Server using C#

夙愿已清 提交于 2019-12-24 13:52:31
问题 My objective is to store DICOM files in SQL Server with some ID, and when user wants that DICOM file he can download from the SQL Server using its corresponding ID. The file should not change its originality while storing into the server and also when retrieving from the SQL Server. I am using Varbinary(max) data-type to store the byte array of the DICOM file in SQL Server. I am converting the memory stream of the DICOM file into byte array and then storing into the SQL server as mentioned

DICOM image to BufferedImage on Windows 64

末鹿安然 提交于 2019-12-24 11:29:56
问题 I need a way to convert a DICOM file into a BufferedImage (or if the dicom file is mult-frame then a set of BufferedImages) on Windows 64. I am currently using dcm4che to do this, but am running into a problem because dcm4che uses JAI which thunks down to a native dll clib_jiio.dll which is not complied, and will not be compiled for Windows 64 (see here). Does anyone know of an open source library that can do this for me? Thanks 回答1: Several DICOM plugins are available for ImageJ. Addendum:

libjpeg and lossless JPEG

旧巷老猫 提交于 2019-12-24 01:37:17
问题 I have a question regarding DICOM standard and libjpeg library. In the DICOM standard, there are, among others, Transfer Syntax: JPEG Lossless, Nonhierarchical, First- Order Prediction (Processes 14 [Selection Value 1]): Default Transfer Syntax for Lossless JPEG Image Compression As far as I know, this Transfer Syntax corresponds with JPEG-1 Lossles format. I started researching libjpeg library and I found out that it doesn't support (?) Lossless JPEG, as stated here: JPEG Lossless in DICOM