Questions tagged [fo-dicom]

The Fellow Oak DICOM library provides extensive coverage of the DICOM standard to applications using the .NET Framework and .Net Core.

Fellow Oak DICOM (fo-dicom) is a .NET library that provides extensive coverage of the DICOM standard used for the storage and transfer of medical images.

96 questions
1
vote
1 answer

How to replace the Pixel Data of DICOM file using fo-DICOM?

I want to replace the pixel data of a DICOM file with another one. I used this code: public bool ImportImage(string imageFile, string newFilePah, string oldDicomFile) { try { Bitmap bitmap = new Bitmap(imageFile); bitmap =…
1
vote
1 answer

Add jpg image as jpg image to DICOM file

Good day, I am reading a jpg image and trying to storing it in the DICOM file as jpg. I want as little manipulation as possible to prevent any loss or ICC profile changes. I've tried: ... data.Add(DicomTag.TransferSyntaxUID,…
Gina Marano
  • 1,773
  • 4
  • 22
  • 42
1
vote
1 answer

Render JPEG 2000 Image Compression Dicom with Fo-Dicom

I'm try to create a simple WinForms viewer to show DICOM files generated in a NOVARAD PACS system. I'm using the following code from their GitHub page: var image = new DicomImage(@"C:\myDicom.dcm"); …
bumble_bee_tuna
  • 3,533
  • 7
  • 43
  • 83
1
vote
1 answer

How to load Dicom image from server (path contains https://)

How to load Dicom image from server (path contains https://) Am using fo-Diocm library. var image = new DicomImage(filePath); if filePath is from local directory its working fine. if filePath is from server (like https://example.com/filepath.dcm),…
Shawn
  • 19
  • 4
1
vote
1 answer

Fo-Dicom CMove SCP good implementation

I've implemented a super fast PACS server with fo-dicom, my only real problem at this point is handling a CMove request. The IDicomCMoveProvider has one method IEnumerable OnCMoveRequest(DicomCMoveRequest request); however the…
Ravenheart
  • 147
  • 6
1
vote
1 answer

How to write Chinese value into Institution Name with fo-dicom?

I was trying to write into DICOM tag (0008,0080) with Chinese words by fo-dicom. But found the Tag value just show the messy code in the result file. Please help to review it . The C# code is below: var file =…
Joe.wang
  • 11,537
  • 25
  • 103
  • 180
1
vote
1 answer

C# Dicom file is to big, how do i slim down?

Trying to embed a pdf into a dcm file by following the below gist. Our viewers don't support embedded pdf yet. The pdf is converted to an image by ghostscript and is 1000k on the disk (multi pages, 150…
William
  • 1,375
  • 12
  • 27
1
vote
1 answer

Log4net event logging integration with Fellow Oak Dicom dicom.log4net

I'm trying to use log4net to write to the Windows Event log. I'm using the Fellow Oak DICOM log4net connector I have setup log4net as I would in any service: the XmlConfigurator in AssemblyInfo, the *exe.logger is Copy to output, Copy Always. I…
WhatWhat
  • 11
  • 1
1
vote
1 answer

Fellow oak dicom C-Find response

i have a question regarding the c-find Operation in the fellow oak dicom. I have developed a Service wich implements a c-find operation and should send the found patients back tot he ultrasound machine. I’m testing currently with the 4d view…
Andreas
  • 9
  • 1
  • 4
1
vote
2 answers

Rendering DICOM image using Fellow Oak DICOM

I need to extract a DICOM image from a file and convert it to a standard bitmap. This is the code I have, using fo-dicom: Bitmap bmp; try { var image = new DicomImage(Context.Server.MapPath("~/IM-0001-0000.dcm")); bmp =…
Maciej Stachowski
  • 1,708
  • 10
  • 19
1
vote
1 answer

How to get Hounsfield units in Dicom File using Fellow Oak Dicom Library in c#

When i get a Drawing.image from Dicom.imaging.DicomImage.RenderImage() using fellow oak Dicom, that image has just RGB values but i need hounsfield units. How to get hounsfield units? I need a sample code plz. Thank you.
Chani
  • 13
  • 4
0
votes
0 answers

FO-Dicom: How to set extended negotiations?

We are trying to set TimezoneQueryAdjustment to true, but cannot figure out how to make it work. This is what we have tried: setting it on the request request.ApplicationInfo = DicomCFindApplicationInfo.CreateForWorklistQuery(false,…
Ynv
  • 1,824
  • 3
  • 20
  • 29
0
votes
1 answer

I can't read original DICOM file name as sent by a Remote AE to C-STORE SCP using fo-dicom

I have C-STORE SCP app (modified from the example provided by fo-dicom contributors) that can receive and save the DICOM file sent from remote AE. The original C-STORE SCP app saves DICOM file with a different name derived from tag value, that's ok…
0
votes
0 answers

installing fo-Dicom package in vb.net 20014

by installing fo-dicom v. 5.0.3 package from "Manage NuGet Packages" in vb.net 2014 from i encounter following error: Could not install package 'fo-dicom 5.0.3'. You are trying to install this package into a project that targets…
Alireza
  • 9
  • 1
0
votes
0 answers

Issue with loading dicom images in WADO loader

I am working on a web based OHIF Dicom viewer. I am using clear canvas as my PACs server. So I developed one broker application in .net core which works like WADO-RS and supply information to OHIF viewer from clear canvas. In my broker application…
Karthick Rajan
  • 394
  • 2
  • 17