Search found 20 matches

by karatystas
Wed, 2016-03-30, 18:32
Forum: DCMTK - General
Topic: Read DICOM files from a folder
Replies: 1
Views: 2521

Read DICOM files from a folder

Hi there,

I have a folder of 70 DICOM files (slices) for a patient and want to read them all. Is there a simple way of reading the entire sequence of DICOM files from a folder or do I need to read it file by file using, for example, DcmFileFormat?
by karatystas
Mon, 2016-02-29, 08:50
Forum: DCMTK - General
Topic: Linking DCMTK to existing project
Replies: 2
Views: 2750

Re: Linking DCMTK to existing project

Yes, UNICODE was automatically set by Qt project in the Preprocessor Definitions in VS2015. I simply removed it and works now. Thank you.
by karatystas
Sun, 2016-02-28, 09:33
Forum: DCMTK - General
Topic: Linking DCMTK to existing project
Replies: 2
Views: 2750

Linking DCMTK to existing project

I'm using Visual Studio 2015 with Qt plugin for it. I have created a simple Qt GUI project and now I want to add DCMTK libraries. I have added the following to the existing project: Additional Include Libraries: C:\DCMTK\include Additional Library Directories: C:\DCMTK\lib Additional Dependencies: k...
by karatystas
Tue, 2016-02-23, 19:36
Forum: DCMTK - General
Topic: Access uncompressed pixel data
Replies: 10
Views: 9856

Re: Access uncompressed pixel data

I think I have found the solution: DicomImage * image = new DicomImage("test.dcm"); const DiPixel * pix = (image->getInterData()); EP_Representation rep = pix->getRepresentation(); if (rep == EPR_Uint16) { Uint16 * pixelData = (Uint16 *)pix->getData(); } It gives me the right values of pix...
by karatystas
Tue, 2016-02-23, 11:46
Forum: DCMTK - General
Topic: Access uncompressed pixel data
Replies: 10
Views: 9856

Re: Access uncompressed pixel data

But if use getMinMaxValues() it gives me the right values - min = 0 and max = 1991.
by karatystas
Tue, 2016-02-23, 11:27
Forum: DCMTK - General
Topic: Access uncompressed pixel data
Replies: 10
Views: 9856

Re: Access uncompressed pixel data

Tried what you said and got even higher pixel values, over 40k in intensity. The problem is that if I load the image with Sante Dicom viewer and I check the pixel values they are different from what I get here. I have also tried another software to check the pixel values and was same as with Sante D...
by karatystas
Tue, 2016-02-23, 10:49
Forum: DCMTK - General
Topic: Access uncompressed pixel data
Replies: 10
Views: 9856

Re: Access uncompressed pixel data

The transfer syntax is: Little Endian Explit. Does it mean it is compressed? I have also tried to load with DicomImage and use getOutputData() but the values were too high in this case.
by karatystas
Tue, 2016-02-23, 10:05
Forum: DCMTK - General
Topic: Access uncompressed pixel data
Replies: 10
Views: 9856

Access uncompressed pixel data

I want to read raw (uncompressed) pixel data. I have a DICOM image and try this: DcmFileFormat dfile; dfile.loadFile("test.dcm"); DcmDataset * data = dfile.getDataset(); const Uint16 * element = NULL; data->findAndGetUint16Array(DCM_PixelData, element); However, the values extracted from t...
by karatystas
Sat, 2016-02-20, 18:27
Forum: DCMTK - General
Topic: Accessing image pixel values and rendering image
Replies: 1
Views: 2296

Accessing image pixel values and rendering image

I want to access individual pixel values of DICOM image. I tried the following code: #include "dcmtk/config/osconfig.h" #include "dcmtk/dcmdata/dctk.h" #include "dcmtk/dcmimgle/dcmimage.h" #include "dcmtk/dcmimgle/didispfn.h" using namespace std; int main() { ...
by karatystas
Sat, 2016-02-20, 13:05
Forum: DCMTK - Installation
Topic: undefined reference for dcmtk libraries
Replies: 22
Views: 23978

Re: undefined reference for dcmtk libraries

Now I have tried with Qt creator and I get the following error: C:\DCMTK\include\dcmtk\ofstd\offile.h:397: error: cannot convert 'bool' to 'FILE* {aka _iobuf*}' in assignment file_ = _popen(command, modes); If I open the file offile.h and change line file_ = _popen(command, modes) to file_ = ::popen...
by karatystas
Sat, 2016-02-20, 12:02
Forum: DCMTK - Installation
Topic: undefined reference for dcmtk libraries
Replies: 22
Views: 23978

Re: undefined reference for dcmtk libraries

Thank you for your kind help J. Riesmeier. Finally I made it work with VS2013. I needed to change my testapp Runtime Library option from Multi-threaded Debug DLL (/MDd) to Multi-threaded Debug (/MTd) in Property Pages . Actually, I don't really understand what is the difference :D Now I have the pro...
by karatystas
Sat, 2016-02-20, 11:19
Forum: DCMTK - Installation
Topic: undefined reference for dcmtk libraries
Replies: 22
Views: 23978

Re: undefined reference for dcmtk libraries

Now I have tried to build the latest snapshot version with Visual Studio Express 2013 for Desktop and got the following warning: strcloc.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this li...
by karatystas
Fri, 2016-02-19, 20:04
Forum: DCMTK - Installation
Topic: undefined reference for dcmtk libraries
Replies: 22
Views: 23978

Re: undefined reference for dcmtk libraries

Tried snapshot with VS15 and building the example you provided received many errors like: 2>------ Build started: Project: testapp, Configuration: Debug Win32 ------ 2>Build started 2/19/2016 9:02:41 PM. 2> 1> 2>PrepareForBuild: 2> Creating directory "testapp.dir\Debug\testapp.tlog\". 2> I...
by karatystas
Fri, 2016-02-19, 18:35
Forum: DCMTK - Installation
Topic: undefined reference for dcmtk libraries
Replies: 22
Views: 23978

Re: undefined reference for dcmtk libraries

Actually only the Visual Studio 2008 provided me compilation of libraries without any errors or warnings. The versions of 2010, 2013 or later yields some errors and warnings. I will try to run snapshot version with VS2015.
by karatystas
Fri, 2016-02-19, 18:23
Forum: DCMTK - Installation
Topic: undefined reference for dcmtk libraries
Replies: 22
Views: 23978

Re: undefined reference for dcmtk libraries

I have just tried to execute the example app provided in FAQ #40 with Visual Studio 2008. I got the following errors: 1>------ Build started: Project: testapp, Configuration: Debug Win32 ------ 1>Compiling... 1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86 1>Copyrig...