95 questions
0
votes
1
answer
48
views
How do I delete all items except the first (index 0) and the last (index 299) using fo-dicom?
I would much appreciate your time to review this. I have a nested sequence that contains 300 items.
How do I delete all items except the first (index 0) and the last (index will change but in this ...
0
votes
1
answer
37
views
fo-dicom c-store requst is ignored, but same file can be uploaded to pacs by dcmtk tool
I use fo-dicom to send a DCM file to PACS (PROPACS) via C-STORE. However, the PACS ignores my sending request and there is no response. I captured the packet by Wireshark, found that the DCM data ...
0
votes
1
answer
43
views
Why is failing to retrieve DICOM tag values?
I am using the following code to retrieve values from a DICOM file. All values contained string data types:
var item1 = dicomDataset.GetSingleValueOrDefault<string>(DicomTag....
-1
votes
1
answer
153
views
How to remove one Item from nested tag sequence using fo-dicom?
DICOM files contain many group of tags defined as (fffe,e000).
The “Reference Beam Sequence” contains 3 Items; (item#1, Item#2, Item#3).
All Items have the tag (fffe,e000).
Each Item (fffe,e000) ...
1
vote
1
answer
143
views
Update Dicom Tags in a nested sequence
I would like to update (300A,004A) and (300A,00B8) dicom tags both are type string strings.
The challenge is that these tags are in a nested sequence and multiple instances exist.
Need to ensure I ...
0
votes
0
answers
88
views
A basic C-ECHO SCP sample code which would work with FO-DICOM v.5
I need a very basic code snippet implementing C-ECHO SCP with FO-DICOM 5. All examples I was able to find so far do not work, since, as far as I understand, the signatures of the major routines ...
0
votes
0
answers
68
views
Delete a group of Dicom tags at once
I have a dicom sequence that contains several “Item” (fffe,e000).
Each item contains two tags (300a,004a) & (300a,00b8)
One of the tags (type string -has a value of “xyz”) I want to remove ...
0
votes
1
answer
209
views
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 ...
-2
votes
1
answer
335
views
Why these dicom files exported by GDCM cannot be recongnized correctly by 3D Slicer?
I exported multiple slices of the same series (and the same study) using GDCM in C++. The data is attached here.
But it seems that 3D Slicer cannot recognize these files correctly:
Each dcm file was ...
0
votes
1
answer
168
views
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 ...
0
votes
1
answer
205
views
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, ...
1
vote
1
answer
150
views
resizing PixelData of DicomData using EmguCV(C#)
i have issue with cv2.resize as you see in the example below. it seems that i use the api in the wrong way, or i missed some declarations.
According to the API, the are InputArray, OutPutArray, which ...
0
votes
0
answers
438
views
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 ...
0
votes
1
answer
257
views
Window width and Center and Hounsfield units [closed]
I am currently adjusting the brightness and contrast of a grayscale image using fo-dicom.
Loading the image:
_dicomFile = DicomFile.Open(GetImageFileName());
_dicomImage = new DicomImage(...
0
votes
1
answer
472
views
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 ...
1
vote
0
answers
596
views
fo-dicom how to set the default logging level
With the latest version of fo-dicom, how do you change the logging level to be > [DEBUG]?
Do you need to include the Dicom.Log from fo-dicom.Desktop? I've tried that and setting the LogManager to ...
2
votes
1
answer
788
views
Fo-dicom: How to add "empty, if unknown" integer string type 2 attribute
There is a tag which is of type 2 ("required, empty if unknown"), with value representation Integer String which I would like to leave empty. I have tried creating the attribute like so:
var ...
1
vote
1
answer
684
views
With Fo-Dicom, how do you make a case-insensitive MWL CFindRequest?
I can make these great worklist queries like this one...
//Worklist MWL PATIENTID query
var cf = DicomCFindRequest.CreateWorklistQuery();
cf.Dataset.AddOrUpdate(DicomTag.PatientID, szPatientIDsearch);
...
0
votes
0
answers
173
views
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 ...
0
votes
1
answer
507
views
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 ...
0
votes
1
answer
772
views
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 ...
1
vote
1
answer
571
views
Unable to save DICOM from PACS using fodicom
I'm working with the QueryRetrieve SCU project in the FoDicom sample solution...
FoDicom Samples
The code never hits the SaveImage method. I'm querying www.dicomserver.co.uk for sample images...I'm ...
1
vote
1
answer
126
views
The number of frames tag appears in the dataset but is not in the DICOMDIR C#
I add dicom files using the AddFile(dicomFile,name) method but the number of frames tag does not appear.
var sourcePath = Path.Combine(tempDirectory, "DICOM", $"PATIENT{i + 1}", $&...
0
votes
0
answers
123
views
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 =...
0
votes
2
answers
506
views
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);
...
2
votes
1
answer
895
views
Can I query the MWL (Modality Worklist) by accession number in FO-DICOM?
How can I query the MWL using FO-DICOM by accession number? When I call the CreateWorklistQuery method accession number is not one of the parameters i can use.
0
votes
1
answer
1k
views
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 ...
1
vote
1
answer
3k
views
fo-Dicom - How do I extract image frames from the DicomFile
I need to extract all image frames from a DICOM SC using fo-DICOM. I have a test app that extracts and displays the images, which works fine. However, I need to save the individual images to a ...
2
votes
1
answer
663
views
fo-dicom C-Move Query does not call CStoreRequestCallback
var client = new DicomClient();
var pcs = DicomPresentationContext.GetScpRolePresentationContextsFromStorageUids(
DicomStorageCategory.Image,
DicomTransferSyntax....
0
votes
1
answer
961
views
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 ...
3
votes
2
answers
3k
views
How can I remove or update a private tag using fo-DICOM?
I have a lot of DICOM data sets that have a private tag in them that contain information that I do not want to keep in the header. The value for this tag changes for each dataset, so I do not know the ...
2
votes
2
answers
904
views
fo-DICOM: How to specify the local outgoing port in DicomClient?
There is way for TcpClient to assign local outgoing port as described here.
Is it possible to have the same functionality for fo-DICOM DicomClient?
This is necessary because the server is listening ...
0
votes
1
answer
617
views
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 ...
1
vote
1
answer
2k
views
How do I set the AE Title on a server I'm creating?
I'm making a very simple STORE server, that isn't intended to do anything DICOM-like other than echo and take in data. I'm inheriting from DicomCEchoProvider and letting the parent class do most of ...
0
votes
1
answer
2k
views
Error connecting PACS server Dicom.Network.DicomAssociationRejectedException: "[reason: CallingAENotRecognized]'
I'm very new to deal with DICOM, I was trying to get some patient related dicom file(s) from a public remote server:
https://www.dicomserver.co.uk. using fo-dicom and it works fine, but when I ...
1
vote
1
answer
1k
views
Using Grayscale Softcopy Presentation State with fo-dicom
I would like to add markings to a DICOM image (for example, drawings or textual comments) using Grayscale Softcopy Presentation State IOD.
I have created a DICOM image object like this:
Bitmap ...
2
votes
1
answer
377
views
Is there a built in way to reject certain SOP Classes on a fo-DICOM server?
I want to run a fo-DICOM server that returns the DicomStatus SOPClassNotSupported if for instance I try doing a CStoreRequest on it with the SOP class for Encapsulated PDF documents. Can I define the ...
5
votes
2
answers
2k
views
How to determine if single frame DICOM is actually slice of MRI?
I'm writing an application to count medical records. The application will count pages and divide it by 20 to determine the number of films needed to print the records for the client. I have a closet ...
0
votes
1
answer
1k
views
Not able to see Dicom Image on OHIF viewer
I am trying to integrate my own local server with OHIF viewer and it's sending a response to OHIF viewer till instances but it doesn't display images on Viewer and gives an error
Error Occurred ...
1
vote
2
answers
593
views
Not able to access JsonDicomConverter in .net core project
I am trying to extract data from Dicom files in JSON format using fo-Dicom but currently suffering from this error:
The type or namespace name 'JsonDicomConverter' could not be found (are you ...
0
votes
2
answers
2k
views
Data parsing and sending from DICOM image in .net core
I am currently working on a complete DICOM Web application based on .net core + Postgresql and OHIF viewer ( to render DICOM images).
I've built a database with tables as Patient, Study, etc. and the ...
3
votes
1
answer
4k
views
How to Modify Dicom Tags Using fo-dicom
I am creating a console application that will modify dicom tags. I will load up a single dicom file and update the PatientID tag.
I can not seem to to get anything to modify. I am able to read tags, ...
1
vote
1
answer
2k
views
Decoding dataset with transfer syntax: JPEG 2000 Image Compression is not supported
I know this problem already handled below link
Render JPEG 2000 Image Compression Dicom with Fo-Dicom
However, to change building x86 or x64 from Any CPU, didn't work to my problem.
it seems ...
6
votes
2
answers
2k
views
.NET CORE ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor
I am using VS2019 and .NET CORE 2.2 I am getting the warning AL1073
ALINK warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor
I know this is close to the question as: ...
0
votes
1
answer
865
views
How to dump a single dicom tag specified my user input
I am setting up a DICOM reader that I will be using to process CT scanner configurations. I am writing the application so that I can easily view DICOM either by dumping all tags or I would like to ...
2
votes
1
answer
3k
views
fo-dicom JPEG Image Compression from MemoryStream
I am looking to load a dicom image and save it to a jpeg, as seen in the below code from fo-dicom documentation:
var image = new DicomImage(@"test.dcm");
image.RenderImage().AsBitmap().Save(@"test....
2
votes
1
answer
2k
views
Creating Dicom file out of video
I'm new to DICOM and to fo-dicom library. I'm trying to create a DICOM file out of an OCT eye scan video. First I'm extracting of the frames of the video and then create a DICOM file using fo-dicom.
...
2
votes
1
answer
1k
views
Fo-dicom code throwing "Object reference not set to an instance of an object" on execution
I am trying following code to convert a dicom file to jpeg:
using System;
using System.IO;
using System.Drawing;
using Dicom.Imaging;
class RnReadDicom{
public static void Main(string[] args){...
1
vote
1
answer
1k
views
How to setup certificate for Client in Fellow-Oak Dicom?
Deak folks, I'm trying to setup a Dicom Client using the Fellow Oak Dicom library. I succesfully do all the queries, using the DicomClient class, as indicated in their github page https://github.com/...
7
votes
1
answer
3k
views
CFind fails on Study level - SOP Class not supported or No accepted presentation context found for abstract syntax
The application tries to do a CFind on patient level, get the studies, for a study, get the series and in the end, the images.
The code is working when querying two different PACS implementation but ...