Search found 10 matches

by malf
Mon, 2011-11-28, 16:01
Forum: DCMTK - General
Topic: Pixel Spacing
Replies: 3
Views: 16718

malf wrote:What is PixelSpacing?
The first value is the row spacing in mm, that is the spacing between the centers of adjacent rows, or vertical spacing. The second value is the column spacing in mm, that is the spacing between the centers of adjacent columns, or horizontal spacing.
by malf
Mon, 2011-11-28, 14:04
Forum: DCMTK - General
Topic: Pixel Spacing
Replies: 3
Views: 16718

What is PixelSpacing?
by malf
Fri, 2011-10-21, 19:40
Forum: DCMTK - General
Topic: error loading dicom image
Replies: 7
Views: 13734

I am getting the same error with another file. But using dcmj2pnm is ok!


>dcmj2pnm.exe +oj -v in.dcm out.jpg
I: reading DICOM file: in.dcm
I: preparing pixel data
I: disabling VOI window computation
I: writing frame 1 to out.jpg
I: cleaning up memory


Ideas?
by malf
Fri, 2011-10-21, 14:19
Forum: DCMTK - General
Topic: Segmentation Fault at the creation of a DicomImage
Replies: 10
Views: 11242

I can't right now because I am using DCMTK as an external lib (VC9 MD). My creation of the DcmFileFormat and DicomImage are OK ?
by malf
Fri, 2011-10-21, 14:02
Forum: DCMTK - General
Topic: Segmentation Fault at the creation of a DicomImage
Replies: 10
Views: 11242

Some file examples for the first stack seg. fault: - MR-MONO2-12-shoulder (SINGLE FRAME) DICOM JPEG (57) MR MONOCHROME2 1024x1024 [12, 16 | 11], PR=0 Philips Med. Syst. Gyroscan NT (RTNC1) - US-RGB-8-epicard (SINGLE FRAME) DICOM Explicit Big US RGB (byplane) 640x480 [8, 8 | 7], PR=0 G.E. Med. Syst. ...
by malf
Fri, 2011-10-21, 13:52
Forum: DCMTK - General
Topic: Segmentation Fault at the creation of a DicomImage
Replies: 10
Views: 11242

This other file "CR-MONO1-10-chest" the segmentation fault happened with the stack like this: msvcr90d.dll!memmove(unsigned char * dst=0x03528a00, unsigned char * src=0x0000000f, unsigned long count=1) Line 348 Asm OFString::assign() + 0x5a bytes C++ OFString::OFString() + 0x23 bytes C++ I...
by malf
Fri, 2011-10-21, 13:39
Forum: DCMTK - General
Topic: Segmentation Fault at the creation of a DicomImage
Replies: 10
Views: 11242

Ok. I've check my generation of the OFString and the MACRO USE_NULL_SAFE_OFSTRING was there. So, I am using this! Other idea?
by malf
Fri, 2011-10-21, 13:18
Forum: DCMTK - General
Topic: Segmentation Fault at the creation of a DicomImage
Replies: 10
Views: 11242

Right! Some useful information:

1) My DcmFileFormat is created like this:

Code: Select all

dicomfile->loadFile(filepath, EXS_Unknown, EGL_withoutGL, DCM_MaxReadLength, ERM_autoDetect);
2) Dcmtk version 3.6.0 compiled as VC9 MD lib
3) Compiler VC9
4) USE_NULL_SAFE_OFSTRING is defined!
by malf
Fri, 2011-10-21, 13:08
Forum: DCMTK - General
Topic: Segmentation Fault at the creation of a DicomImage
Replies: 10
Views: 11242

Hum, I don't think that the problem is the memory. I used the original binary "dcmj2pnm.exe" to convert this dicom file to a image and worked well. Besides that the file that I am using is quite small, like 300KB. It's probably some programming error of mine. I am trying to use this datase...
by malf
Fri, 2011-10-21, 12:48
Forum: DCMTK - General
Topic: Segmentation Fault at the creation of a DicomImage
Replies: 10
Views: 11242

Segmentation Fault at the creation of a DicomImage

Hi guys! I've noted that sometimes when I load a dicom file my program gets a segmentation fault at the creation of a DicomImage. Debugging the stack it's always at the constructor of a OFString. The stack at this point looks like: OFString::OFString() + 0x30 bytes C++ [SEGMENTATION FAULT] DiDocumen...