Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
461 views

How to convert a DicomImage(Dcmtk) with depth=17 to a Mat(Opencv) object?

When using this code I don't get the result that I want (see the picture). DicomImage *image = new DicomImage("/home/000001.dcm"); cv::Mat inputImage(int(image->getHeight()), int(image->...
ZSmain's user avatar
  • 390
1 vote
2 answers
1k views

How to properly convert dicom image to opencv

I have problems converting .dcm image from dcmtk format to opencv. My code: DicomImage dcmImage(in_file.c_str()); int depth = dcmImage.getDepth(); std::cout << "bit-depth: " << depth <&...
user7428910's user avatar
1 vote
1 answer
1k views

Dicom Toolkit (DCMTK) - How to get Window Centre and Width

I am currently using DCMTK in C++. I am quite new to this toolkit but, as I understand it, I should be able to read the window centre and width for normalisation purposes. I have a DicomImage ...
user3126802's user avatar
0 votes
3 answers
8k views

Read DICOM in C++ and convert to OpenCV

I would like to read DICOM images in C++ and manipulate them using opencv. I managed to read a dicom image using DCMTK however, I am unsure how to convert it to an opencv Mat. The following is what ...
user3126802's user avatar