dicom

SimpleITK保存mhd+raw和mha文件

…衆ロ難τιáo~ 提交于 2019-12-07 18:24:34
1.使用SimpleITK将同一个序列的dicom保存为mhd+raw文件时,需要将dicom图像的InstanceNumber当做索引来存储, 不能按照SliceLocation属性的大小来存储(会出错) 。 2.吐过dicom图像的InstanceNumber,那么取InstanceNumber的相对值当做索引来存储,就可以生成正确的mhd+raw文件。 来源: CSDN 作者: 抬头仰望-y 链接: https://blog.csdn.net/moshiyaofei/article/details/89429851

Sending dicom file to a remote AE using c# in visual studio 2010

 ̄綄美尐妖づ 提交于 2019-12-07 17:40:15
问题 My goal is to send a dicom file to a remote AE using c# in visual studio 2010, I plan to implement the clearcanvas library, I have divided the task into 5 parts: // //1 initiate tcp\ip connection // //2 negotiate the association parameters to agree what can be done // //3 send the dicom object // //4 close the association // //5 close the TCP/IP connection I know storagescu will be involved in the sending part3), I tried looking things up on clearcanvas forum, the codes do not make much sense

How to read a multiple frames DICOM file by c++ library?

风格不统一 提交于 2019-12-07 17:31:36
问题 How do you read a multiple frame DICOM file that is a single file contains many 2D XA images (for example, barre.nom.fr/medical/samples). I know the software (dicom2), java library (dcm4che2) and matlab method( dicomread ) can do this, but is there any method in c++ libraries like VTK, ITK or GDCM can read this type of data out? 回答1: If you want to use GDCM, simply check out the Examples/Cxx directory, in particurar the HelloVizWorld dummy example. 回答2: Please use dcmtk . Its a open source c+

How can I do a Query/Retrieve in JAVA?

僤鯓⒐⒋嵵緔 提交于 2019-12-07 16:53:26
I need to acces to the DicomObjects that are stored in a DCM4CHEE PACS using JAVA (NetBeans) . So far, I think that I have to use the class DCMqr from DCM4CHE library, but I can't find any example and I don't know how to use it. Danny D'Amours The dcm4che toolkit usage doc for dcmqr is available here The toolkit has a dcmqr class which provides all of the functionality to do a C-FIND or C-MOVE from a DCM4CHEE PACS (or any other DICOM compliant PACS). Simply pass the AE Title, host and port and possibly other options to the DcmQR main method. GGK You have to include the dcm4che jar-files in

Storage Commitment Service: why I really need a what is the real purpose?

☆樱花仙子☆ 提交于 2019-12-07 11:03:50
问题 I'm wondering why I really need of commitment after a c-store command; I can understand the commit is a sort of assurance about the fact the message was actually taken in charge by the storage and the storage takes the responsibility of it, but I wonder why is not safe enough to rely on the response status ? I read some explanations about that but none convinced me all the way. As far as I understood a commit can be required or better desirable basically because you can not totally trust the

how to open .dcm images in ios app using Objective C [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-06 15:09:26
This question already has answers here : How do I extract pixel data from DICOM files on iOS? (4 answers) Closed 2 years ago . I want to create app in which .dcm images are open in ios. can anyone tell me how to open .dcm images in ios app.its like a images viewer that only open .dcm images. You anyone have any idea about it ??? your help should be appreciated. thanks, dcmtk can also be built for ios. I have tested some sample apps and ported my own build to ios. Also, you can just build your own dicom parser. You can open .dcm files like any other file on a computer and process the bytes with

Understanding DICOM image attributes to get axial/coronal/sagittal cuts

只谈情不闲聊 提交于 2019-12-06 14:52:49
问题 I have to write a program in c# able to parse DICOM and display axial, coronal and sagittal cuts. Seems like it's a lot of work, but I have to do it so ! Big first step would be to understand DICOM files I guess. I've been reading this tutorial http://dicomiseasy.blogspot.ru/ but he's using this RZDCX library that I'm not allowed to buy. There are still some good explanations about DICOM attributes and I've also been reading some parts of the standard (part 3 above all) But I'm having big

Storage Commitment Service (push model): how i get the result back to my SCU?

心已入冬 提交于 2019-12-06 13:29:26
I planned to implement a Storage Commitment Service to verify if files previously sent to the storage were safely stored. My architecture is very simple and straightforward my SCU sends some secondary capture images to the storage and I want to be sure they are safely stored before delete them. I am going to adopt push model and I wonder what steps/features I need to implement to accomplish the service What I understood is I need to issue a N-ACTION request with SOP Class UID 1.2.840.10008.1.20.1 and add to the request a transaction identifier together with a list of Referenced SOP Class UID –

DICOM dimensions in matlab array (all frames end up in last dimension of array)

蓝咒 提交于 2019-12-06 12:58:59
In one of my GUIs I load DICOM images. Sometimes they are just a volume and another dimension and when I load them in Matlab everything ends up where I want it. handles.inf = dicominfo([filepath filename]); handles.dat = dicomread(handles.inf); size(handles.dat) ans = 128 128 128 512 For an 128 by 128 by 128 volume at 512 timepoints for example (actually the third dimension would not even be 128, the third dimension is stacks, of which I don't know what it is). However sometimes There are more dimensions in the dicom, but the reader just puts all of them in the fourth dimension. handles.inf =

converting 12 bit DICOM image to 8 bit jpeg

无人久伴 提交于 2019-12-06 09:29:32
I am trying to load DICOM files into python using the dicom library. I have done the following ds=dicom.read_file(r"C:\Users\Z003SPFR.AD005\ML\GLCM AND SVM\data\NECT\1.IMA") # # store the raw image data DicomImage = ds.pixel_array This gives me values that appear to be 12 bit, since the highest value obtained was around 3047 and lowest value was 0. Then i made my own mapping function to bring it to the range 0-255. I used the following code: leftMin = 0 leftMax = np.amax(DicomImage) rightMin = 0 rightMax = 255 def translate(value, leftMin, leftMax, rightMin, rightMax): # Figure out how 'wide'