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
0
votes
0 answers

How to adjust The Gamma value with EmguCv?

i want to adjust gamma value of a Dicomfile. The Dicomfile is in grayscale as you see in the image below. I went through the API, then i found this function public void _GammaCorrect(double gamma);, during the execution the compiler throws this…
Anasse
  • 21
  • 3
0
votes
1 answer

Separate Background and make the edges smooth with EmguCv

im not familiar with EmguCv, i have a Dicomfile which i want to make the background black (0 value) and then make the edges smooth to have a nice shape. I put the raw bytes in a bytes array, and applied Image.ThresholdBinary() as you see in code…
Anasse
  • 21
  • 3
0
votes
1 answer

How To Threshold Raw Byte Image with EmguCV

i am trying to Threshold and also applying the Gaussian Blur on Raw byte image in EmguCV. I have raw array bytes, which are bytes from Dicomfile, i read those bytes and store them in a empty image, once i wanna apply threshold or gaussian blur i get…
Anasse
  • 21
  • 3
0
votes
0 answers

Scale Dicom PixelData or scale DicomImage and convert it to byte array

I'm trying to scale a dicom slice which its resolution, 1024*1024 (row*columns). I can really scale the slice, but my problem is: When I convert the scaling slice to array of bytes and write it to the dicom file, I can see nothing as you see in the…
Anasse
  • 21
  • 3
0
votes
0 answers

how i get some patient or exam info while printing using fo-dicom

am using print scp examples from fo-dicom and i want to get some data like patient name or study id i want to store the film by patient name or study id and print the films as booklet i tried film session label before , but not all medical devices…
Mr.X
  • 1
  • 1
0
votes
1 answer

Invert grayscale using fo-dicom

I'm currently using fo-dicon to build a simple dicom viewer in C#. I am currently increasing or decreasing the brightness and contrast by adjusting window width & center values. How do I invert the grayscale using the InvertLut class? public…
SoothingMusic
  • 107
  • 1
  • 13
0
votes
0 answers

Create Dicom Video from mp4

I'am trying to create a dicom video from mp4 file and add my own tags. I can create it but when I try to reproduce the video with DICOM viewer like MicroDicom i can only see a black image. public async void VideoToDicom(string srcFilePath, string…
Willy
  • 9
  • 3
0
votes
0 answers

Implement CancellationToken in Fo-Dicom

I need to implement a Cancellation token in a fo-dicom but didn't find any proper solution or example, based on that I can get an idea or help, So if anyone has implemented or has any example please post here. Thank you very much, …
Uttam
  • 35
  • 1
  • 9
0
votes
1 answer

Is "Pixel Value" to get Hounsfield value the IPixelData data resulting from the PixelDataFactory.Create using Fellow Oak Dicom Lib?

I could only find a reference explaining how to get the Hounsfield value using the Fellow Oak library which says it's determined by formula Hounsfield units = (Rescale Slope * Pixel Value) + Rescale Intercept Is "Pixel Value" in this formula above…
Sergio Solorzano
  • 476
  • 9
  • 29
0
votes
1 answer

How to set dicomfile encoding

fo-dicom 4.0.6. netcore5 I create dicom files based on existing one. Only adding few tags in cyrillic As I understand when I open dicomfile, tag SpecificCharacterSet is used to define tag's value encoding. Bu as I understand I can change this…
vitm
  • 473
  • 1
  • 3
  • 12
0
votes
0 answers

DICOM file generated does not open

DICOM file generated on SCP print does not open! I'm just trying to save an image in DICOM format. I tried in many ways. Thanks for the contribution! fo-dicom 4.0.7 string receivingFolder = Path.Combine(Environment.CurrentDirectory,…
0
votes
2 answers

How to remove a file from DICOMDIR using fo-dicom

I have created the the DICOMDIR using fo-dicom as follows. var dicomDir = new DicomDirectory(); var dicomFile = Dicom.DicomFile.Open(dicomFilePath); dicomDir.AddFile(dicomFile, filePathForDicomDir); DicomWriteOptions options =…
0
votes
1 answer

Cannot access DICOM image stream when loading from a resource

I am using fo-Dicom to access image streams. I have unit tests that call a method to load test DICOM files. To automate the process in the build pipeline, I switched from using the image path to loading a resource. I now load my test DICOM file like…
Tim
  • 2,731
  • 9
  • 35
  • 72
0
votes
1 answer

Getting PixelData of Multiframe (PaletteColor) Dicom File. fo-dicom

Currently when I'm grabbing the pixel data from this dicom file, it seems to not match the provided image resolution. As an example, the image width and height might be: W: 600, H:430 which would make me think that the expected total size would be…
atarng
  • 11
  • 3
0
votes
1 answer

How to add structured report to DicomDirectory in fo dicom?

For Fo-Dicom in C#, I am trying to add a structured report to DicomDirectory object using AddFile API. But the report is getting added as an image, is there any way to correct this? If at all it is not possible how to do it by manually adding…