Hi, I'm loading images from a directory then doing some processing on each of them, but, some times there are other files in the same directory, so before opening an image I would like to check if it's a DICOM image.
How can I do that with dcmtk?
Thanks in advance,
Leonardo.
Search found 347 matches
- Thu, 2010-11-04, 13:29
- Forum: DCMTK - General
- Topic: Is this a DICOM image?
- Replies: 1
- Views: 2727
- Tue, 2010-10-19, 13:29
- Forum: DCMTK - General
- Topic: Dcmtk and VTK
- Replies: 2
- Views: 4051
Thanks Jörg for answering, 1)Why are you checking the representation of the internal pixel data when you are using the rendered output (with getOutputData())? 2)Why are you using memcpy() instead of rendering the output data directly to the target buffer (using the other variant of getOutputData())?...
- Mon, 2010-10-18, 21:43
- Forum: DCMTK - General
- Topic: Dcmtk and VTK
- Replies: 2
- Views: 4051
Dcmtk and VTK
Hi, I'm using this code to show a DCMTK image on a VTK ImageViewer2, for CR, CT and MR images it works perfectly, but for US. How can I adapt it to work with US (and Color US) also? unsigned long imgWidth = m_qdicomImage->getDicomImage()->getWidth(); imgWidth = imgWidth * (double)m_zoomfactor / 100....
- Mon, 2010-10-04, 14:14
- Forum: DCMTK - General
- Topic: Window Center / Window Width standard values
- Replies: 5
- Views: 9593
Window Center / Window Width standard values
Hi, I'm using dcmj2pnm to create jpeg images from Dicom files. If I use the +Wm parameter, in *most* cases the images are converted correctly, but some images appear too different from the rest (i.e.: too bright or too dark). If I don't use the Wm parameter, and use +Ww instead, using the same value...
- Tue, 2010-09-14, 18:36
- Forum: DCMTK - General
- Topic: getOutputData slow?
- Replies: 5
- Views: 5002
- Tue, 2010-09-14, 16:02
- Forum: DCMTK - General
- Topic: getOutputData slow?
- Replies: 5
- Views: 5002
Thanks Jörg, you are right, is not getOutputData what is causing the slow performance, the bottleneck is loadFromData. I used a QTimer to measure the time loadFromData consumes, an I'm getting 125ms aprox on each call. This is too much while doing W/L transformations, compared to Aeskulap, for examp...
- Mon, 2010-09-13, 20:07
- Forum: DCMTK - General
- Topic: getOutputData slow?
- Replies: 5
- Views: 5002
getOutputData slow?
Hi I'm using this method to show dicom images in Qt, but it is slow when I change the Window Level/Window Width on large images, i.e. CR images. uchar* pixelData = (uchar *)(d->m_dicomImage->getOutputData(QDicomImagePrivate::IMG_DEPTH, p_frame, p_planar)); if (d->m_dicomImage->isMonochrome()) { //Mo...
- Thu, 2010-09-09, 21:59
- Forum: DCMTK - General
- Topic: CreateWindowsDib or similar for GTK
- Replies: 1
- Views: 2380
CreateWindowsDib or similar for GTK
Hi, I'm trying to show a dicom image in a GTK window canvas, by following the code from posts in this forum. My problem is all posts are related to MS Windows and QT, but none for GTK. Does anybody knows which function or method brings similar results of CreateWindowsDIB, but for GTK+ or GTK 2?. An ...
- Wed, 2010-09-08, 18:41
- Forum: DCMTK - General
- Topic: Shared Library problem
- Replies: 2
- Views: 3590
I found the solution. Instead of linking with this: g++ -shared -o libtest.so test.o It's mandatory to include all the .o files needed by the shared library: g++ -pthread -shared -o libtest.so test.o ../../oflog/libsrc/*.o ../../ofstd/libsrc/oflist.o ../../ofstd/libsrc/ofstring.o ../../ofstd/libsrc/...
- Tue, 2010-09-07, 16:04
- Forum: DCMTK - General
- Topic: Shared Library problem
- Replies: 2
- Views: 3590
- Sun, 2010-09-05, 23:08
- Forum: DCMTK - General
- Topic: Shared Library problem
- Replies: 2
- Views: 3590
Shared Library problem
Hi, I'm trying to create a shared object library to use in my FreePascal programs, but I get this error when I call dlopen to my library: libtest.so: undefined symbol: _ZN9log4cplus6Logger11addAppenderENS_7helpers15SharedObjectPtrINS_8AppenderEEE This is what I did to create the library: 1) Go to th...
- Sat, 2010-09-04, 02:20
- Forum: DCMTK - General
- Topic: unsupported value for 'PhotometricInterpretation' (RGB)
- Replies: 3
- Views: 3914
- Fri, 2010-09-03, 21:02
- Forum: DCMTK - General
- Topic: Structured Report in dcmqrscp
- Replies: 1
- Views: 2534
Structured Report in dcmqrscp
Hi, I'm trying to understand some concepts about how a PACS should store a Structured Report into its database.
Is dcmqrscp able to receive Structured Reports?, does a SR should be handled the same way as DICOM images?.
Thanks in advance.
Is dcmqrscp able to receive Structured Reports?, does a SR should be handled the same way as DICOM images?.
Thanks in advance.
- Thu, 2010-09-02, 13:59
- Forum: DCMTK - General
- Topic: unsupported value for 'PhotometricInterpretation' (RGB)
- Replies: 3
- Views: 3914
- Wed, 2010-09-01, 20:42
- Forum: DCMTK - General
- Topic: unsupported value for 'PhotometricInterpretation' (RGB)
- Replies: 3
- Views: 3914
unsupported value for 'PhotometricInterpretation' (RGB)
I'm getting unsupported value for 'PhotometricInterpretation' (RGB) error when I try to store a US RGB image in dcmqrdb.
uname -a:
Linux leonardo-laptop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010 x86_64 GNU/Linux
Any hint?
uname -a:
Linux leonardo-laptop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010 x86_64 GNU/Linux
Any hint?