- changed status to invalid
issue with loading a dicom file
Unhandled exception at 0x00007FF931EC9E08 in xViewer.DICOM.exe: Microsoft C++ exception: imebra::StreamOpenError at memory location 0x000000E24DBCEE18.
with sample code as recommended:
std::unique_ptr<imebra::DataSet> loadedDataSet(imebra::CodecFactory::load("D:\Development C++\DICOM\Data\Sample Echo 2\2.1\DICOM\TOSHIBA\20170519\120856\1209010020.dcm",2048));
I am using VS 2015
I tried multiple files. Your help will be appreciated
Comments (9)
-
repo owner -
reporter I copy the wrong example. I did the second slash for escape as shown here. I also tried different files form different vendors.
std::unique_ptr<imebra::DataSet> loadedDataSet(imebra::CodecFactory::load("D:\Development C++\DICOM\Data\Sample Echo 2\2.1\DICOM\TOSHIBA\20170519\120856\1209010020.dcm",2048));
any other suggestion
-
repo owner Is there a double backslash also between DICOM and Data? In the comments I see only the markdown rendered text (always one backslash, even when there are 2)
-
reporter this is what I have so far. error is happening at this line FileStreamInput file(fileName); in codeFactory.cpp
-
repo owner The DICOM\Data should be DICOM\\Data
-
reporter Sorry showing the wrong sample. my original try was less deep folder (at root). I fix the slash and I am 100% sure it is not the slash.
I move a file to temp and tried it still not working. I am sorry again I was keep showing you the wrong sample.
This is my current folder std::unique_ptr<imebra::DataSet> loadedDataSet(imebra::CodecFactory::load("D:\TEMP\1209130687.dcm", 2048));
-
repo owner Will investigate this further
-
reporter After I downloaded latest version my loading issue is no longer there. I have a question. I can see how to read each data value by supplying the imebra::TagId, then checking if tag exist and after that retrieve data.
is it possible to loop through dataset/groups and then check each item in each group, check type by getDataType, if it is sequence go deep, otherwise read the value and description of that tag?
Sorry my ignorance, but I can only see how to get data tag by tag.
I am looking how this will help us which may lead acquiring a licence
Thanks for your help
-
repo owner The function outputDatasetTags in the example dicom2jpeg shows how to scan through all the tags and sequences and output their values: https://bitbucket.org/binarno/imebra/src/300690ce8d92dca93b6d88c34cadd28f2e49ecef/examples/dicom2jpeg/dicom2jpeg.cpp?at=default&fileviewer=file-view-default#dicom2jpeg.cpp-36
- Log in to comment
The backslash after D: should be escaped by another backslash