dicom

How to convert JPEG to DICOM image in Matlab?

穿精又带淫゛_ 提交于 2019-12-12 00:31:55
问题 I really need your help. I need to find out how to convert a JPEG image to DICOM in Matlab? Does somebody know how can I do that? Thanks for your help! 回答1: Image Processing Toolbox has a function called dicomwrite . I = imread(inputJpgFilename); dicomwrite(I, outputDicomFilename); 来源: https://stackoverflow.com/questions/8111010/how-to-convert-jpeg-to-dicom-image-in-matlab

Error getting ImageReader parsing DICOM image

老子叫甜甜 提交于 2019-12-11 23:35:25
问题 I try to implement sample piece of code to get image from DicomObject: import java.awt.image.BufferedImage; import java.io.BufferedOutputStream; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.Iterator; import javax.imageio.ImageIO; import javax.imageio.ImageReader; import javax.imageio.stream.ImageInputStream; import org.dcm4che2.data.DicomObject; import org.dcm4che2.imageio.plugins.dcm.DicomImageReadParam; import org

How to read a DICOM file of Dynamic DSA image

不羁岁月 提交于 2019-12-11 22:24:51
问题 I have a Dynamic DSA image of DICOM format, it consists of a header of patient information etc and a series of X-ray image data to show the bone motion in only one file. Is there any method in librarys like VTK, ITK or GDCM can read this data out? 回答1: To load a multiframe DICOM in VTK, simply use GDCM, in particular gdcmviewer: $ gdcmviewer input.dcm 来源: https://stackoverflow.com/questions/19318858/how-to-read-a-dicom-file-of-dynamic-dsa-image

How to read a lot of DICOM files with Matlab?

我的梦境 提交于 2019-12-11 20:11:10
问题 I am using a script which generate a collection of strings in a loop: 'folder1/im1' 'folder1/im2' ... 'folder1/im3' I assign the string to a variable, when I try to execute the img = dicomread(file); function I get the following error: Error using dicomread>newDicomread (line 164) The first input argument must be a filename or DICOM info struct. Error in dicomread (line 80) [X, map, alpha, overlays] = newDicomread(msgname, frames); Error in time (line 14) img = dicomread(file); However, using

OpenDicom code compiling but not executing

浪子不回头ぞ 提交于 2019-12-11 14:13:46
问题 I am using following code (modified from here) to read a dicom file: using System; using System.IO; using openDicom.Registry; using openDicom.File; using openDicom.DataStructure; using openDicom.DataStructure.DataSet; class RnReadDicom{ public static void Main(string[] args){ string fileName = "33141578.dcm"; AcrNemaFile file = null; file = new DicomFile (fileName, false); Sequence sq = file.GetJointDataSets ().GetJointSubsequences (); string tag = string.Empty; string description = string

How to read dicom tag value using openDicom.net in C#?

ⅰ亾dé卋堺 提交于 2019-12-11 13:50:14
问题 I'm reading dicom tags using openDicom.net like this: string tag = ""; string description = ""; string val_rep = ""; foreach (DataElement elementy in sq) { tag = elementy.Tag.ToString(); description = elementy.VR.Tag.GetDictionaryEntry().Description; val_rep = elementy.VR.ToString(); } How can I read dicom tag values? 回答1: I'm assuming that sq is a Sequence... I've not worked with openDicom, but I'm pretty sure what you're doing there isn't going to yield the results you want. You have a

DICOM and DICOM overlay question

≡放荡痞女 提交于 2019-12-11 12:15:18
问题 I have a DICOM image that I am reading using C# and converting it into a 16bit bitmap. The bitmap gets created but the image has DICOM overlays. I want to burn the overlay into the bitmap while creating the final dicom bitmap. I am unable to do that. Any help? One way would be to create a bitmap of overlay data and merge the 2 bitmaps but I can not get the overlay data as bitmap also. I have captured the binary overlay data but how do I burn into a bitmap? Thanks 回答1: There are two types of

Superimpose images MATLAB(grey with color)

折月煮酒 提交于 2019-12-11 09:03:47
问题 I have two matrices, the first is the ROI from an dicom image (grey scale) and the second is a matrix with values between 0-1. In the second matrix I did a thresholding and kept only the values of a range (0.6 -1.0). I would like to superimpose the two matrices-images and show the result as an figure, that means background the grey image and superimposed the color image (in the region of non zero values). Can you provide me with some help? Thanks 回答1: How about figure; imshow( first(:,:,[1 1

ClearCanvas SDK

两盒软妹~` 提交于 2019-12-11 09:00:58
问题 I would like to experiment with the ClearCanvas SDK inside of another project. I am not looking to make any changes to the code whatsoever. So how do I get this code and include it in another project? Do I need to Build it via the Github instructions or can I just download the zip, open in VS and reference the CC solution? Here’s a little detail to what I would like to do. I am looking to use CC to read dicom tags and collect the dat from those tags. Initially, that is all I’d like to do with

DICOM: C-Move without C-Find (Query Retrieve SCU)

荒凉一梦 提交于 2019-12-11 05:49:31
问题 In DICOM, following are the classes defined for C-Find and C-Move at Study Root. Study Root Query/Retrieve Information Model - FIND: 1.2.840.10008.5.1.4.1.2.2.1 Study Root Query/Retrieve Information Model - MOVE: 1.2.840.10008.5.1.4.1.2.2.2 I have implemented Query Retrieve SCP and SCU in multiple applications. In all those cases, I always implemented both the classes. I do C-Find first to get the list of matching data. Then based on result, I do (automatically or manually) C-Move to get the