Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rcd on github.
  • I am rcd (https://keybase.io/rcd) on keybase.
  • I have a public key ASCs7jt8x0wsrKWuPUYN3CmerU5jx1kZGEtr816PowvP8wo

To claim this, I am signing this object:

@rcd
rcd / gist:3956701
Created October 26, 2012 03:30
[fo-dicom] DICOM C-Move SCU
var client = new DicomClient();
client.AddRequest(new DicomCMoveRequest("DEST_AE", studyInstanceUid));
client.Send("127.0.0.1", 11211, false, "CALLING_AE", "CALLED_AE");
@rcd
rcd / gist:3956696
Created October 26, 2012 03:28
[fo-dicom] DICOM C-Find SCU
var request = DicomCFindRequest.CreateStudyQuery(patientId: "12345");
request.OnResponseReceived += (DicomCFindRequest req, DicomCFindResponse rsp) => {
Console.WriteLine("C-Find Response:\n" + rsp.Dataset.WriteToString());
};
var client = new DicomClient();
client.AddRequest(request);
client.Send("127.0.0.1", 11211, false, "CALLING_AE", "CALLED_AE");
@rcd
rcd / Example.cs
Created November 2, 2010 20:32
basic DICOM file operations
using Dicom;
using Dicom.Data;
namespace Dicom.Examples {
static void Main() {
Debug.InitializeConsoleDebugLogger();
// register compression codecs
DicomCodec.RegisterCodecs();
DicomCodec.RegisterExternalCodecs(".", "Dicom.Codec.*.dll");