Thursday, February 09, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: VMCCNY
New Today New Today: 18
New Yesterday New Yesterday: 26
User Count Overall: 20581

People Online People Online:
Visitors Visitors: 10
Members Members: 0
Total Total: 10

Online Now Online Now:

ClearCanvas Community Forums

Dicom File Save Or Upload
Last Post 2010-06-29 10:13 PM by stewart. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
aung
Basic Member
Basic Member
Posts:26

--
2010-06-20 09:25 PM  

Dear friends,

I'm new in ClearCanvas API. Currently I'm trying to write a small program that will save  dicom files from disk.i can't find any example on forum and also don't know dicom files could save whether imageserver or my own database.please help me with some examples if you have.

Thank you!

 

sberkowi
Veteran Member
Veteran Member
Posts:60
Avatar

--
2010-06-21 10:28 AM  

 Dear Friend,

The solution that I have used in my plugins is th find the source image directory and then 'copy' the dicom file from the Clearcanvas directory to my own.  

An example of the code would be:

 

ImageSop imageSop = ((IImageSopProvider)image).ImageSop;

                        ILocalSopDataSource localsource = (ILocalSopDataSource)imageSop.DataSource;

                        File.Copy(localsource.Filename, path + "\\" + imageSop[DicomTags.SopInstanceUid] + ".dcm");

 

If you want a more detailed example, or perhaps even a solution to the problem you are trying to solve, you could take a look at some of my plugins. Clipboard Dicom Tools' has a tool to save files to a directory from the clipboard.  If you are interested in a study level copy, you could use the 'RenameStudy' plugin as a starting point to grab the ImageSOPs and then copy them.

Good luck,

Seth

 

aung
Basic Member
Basic Member
Posts:26

--
2010-06-22 11:46 PM  
Dear friends,

I'm new in ClearCanvas API. Currently I'm trying to write a small project like below.
for example,
DiCom files will get from my program for saving to ImageServer and also
retrieve from ImageServer to my program for view.I don't find any examples,so,please help me with examples or links.

Thank you!
stewart
Senior Member
Senior Member
Posts:2032

--
2010-06-29 10:13 PM  
Aung, for what you are trying to do, the best example I can give you is in the CC source code. If you download it, have a look in the ImageViewer project ClearCanvas.ImageViewer.Shreds, in the DicomServer sub-namespace.
Real-time support available to Clinical Edition and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.