Search found 329 matches

by martinrame
Wed, 2016-07-13, 20:30
Forum: DCMTK - General
Topic: DcmSCPPool's AETitle
Replies: 7
Views: 4836

DcmSCPPool's AETitle

Hi, I created an inherited DcmThreadSCP class called DicomSCP I instantiate in a pool this way: DcmSCPPool<DicomSCP> pool; DcmSCPConfig& config = pool.getConfig(); config.setAETitle(lAETitle); config.setPort(lPort); config.setConnectionBlockingMode(DUL_NOBLOCK); // more configs pool.listen() Now, if...
by martinrame
Mon, 2016-02-08, 16:08
Forum: DCMTK - General
Topic: DCMJ2PNM and GE Vingmed Ultrasound
Replies: 2
Views: 2236

Re: DCMJ2PNM and GE Vingmed Ultrasound

That's weird, apparently Synapse PACS is the only able to display correctly those images, or it is mangling them when exporting/sending to an external PACS.
by martinrame
Mon, 2016-02-08, 13:35
Forum: DCMTK - General
Topic: DCMJ2PNM and GE Vingmed Ultrasound
Replies: 2
Views: 2236

DCMJ2PNM and GE Vingmed Ultrasound

Hi, I'm trying to convert an GE Vingmed Ultrasound image (JPEGLossless:Non-hierarchical-1stOrderPrediction), but I'm getting a wrong result. This is the 1nst time dcmj2pnm cannot convert an image, what can be wrong with this image?. This is the resulting image: http://45.63.8.72/tests/SYN00001.jpg P...
by martinrame
Mon, 2016-01-11, 20:00
Forum: DCMTK - General
Topic: DcmFileFormat as shared library function parameter
Replies: 0
Views: 6911

DcmFileFormat as shared library function parameter

Hi, I'm passing a DcmFileFormat instance to a shared libary function, but aparently it is getting corrupted after calling getDataset() from inside the function. Here's the caller: void* lhandle = dlopen("./libmylibrary.so", RTLD_NOW); if (lhandle) { typedef void (* processDataset)(DcmFileFormat *); ...
by martinrame
Mon, 2016-01-11, 11:03
Forum: DCMTK - General
Topic: DcmSCPPool please add a setConfig method
Replies: 1
Views: 1996

DcmSCPPool please add a setConfig method

I'm using DcmSCPPool and found it has a getConfig method, I understand it returns the DcmSCPConfig instance of the DcmThreadSCP instance, am I right?.

If this is true, I would like to set a custom DcmSCPConfig and can't find a method to do this.
by martinrame
Sat, 2016-01-09, 21:25
Forum: DCMTK - General
Topic: DcmThreadSCP
Replies: 2
Views: 3544

Re: DcmThreadSCP

Thank you very much Jörg for this answer, I'll try to implement it in my own SCP.
by martinrame
Fri, 2016-01-08, 18:38
Forum: DCMTK - General
Topic: DcmThreadSCP
Replies: 2
Views: 3544

DcmThreadSCP

Hi, I'm trying to understand how DcmThreadSCP works. I've updated an example based on DcmSCP by replacing DcmSCP class to DcmThreadSCP, it compiled and worked out of the box, by "worked" I mean it receives the images I send, but It looks like I cannot send two images simultaneously from two differen...
by martinrame
Thu, 2015-11-05, 11:26
Forum: DCMTK - General
Topic: DcmSCP methods removed in 3.6.1
Replies: 3
Views: 2989

Re: DcmSCP methods removed in 3.6.1

Ok. My app implements the handleIncomingCommand method for handling requests, should I still use this method?. Also, in the former version I implemented a ConnectToDb method in my DcmSCP inherited constructor and disconnect in the destructor, this way I had a database connection on every association...
by martinrame
Thu, 2015-11-05, 00:09
Forum: DCMTK - General
Topic: DcmSCP methods removed in 3.6.1
Replies: 3
Views: 2989

DcmSCP methods removed in 3.6.1

Hi, I'm upgrading an app which was compiled against 3.6.0 and now I'm moving to 3.6.1, in this app I used this code: if(m_scp.enableMultiProcessMode(argc, argv) == EC_Normal) { if(lForkedChild == true) { if(m_scp.markAsForkedChild() == EC_Normal) { DCMNET_DEBUG("forked child"); } } } As you can see ...
by martinrame
Wed, 2015-05-06, 12:15
Forum: DCMTK - General
Topic: Conversion from XCode to Linux
Replies: 1
Views: 2181

Conversion from XCode to Linux

Hi, I'm wondering if DCMTK has a methods/classes to convert from different image formats, like these supported by XCode: vImageConvert_Planar8toPlanarF vImageConvert_16SToF vDSP_minv vDSP_maxv Here is the description of these functions: https://developer.apple.com/library/mac/documentation/Performan...
by martinrame
Fri, 2015-04-10, 16:26
Forum: DCMTK - General
Topic: C-FIND for 1nst InstanceNumber
Replies: 1
Views: 2978

C-FIND for 1nst InstanceNumber

Hi, I'm developing an app that requires accessing only one image (for example the first in a series) to create a thumbnail using WADO. I can get the list of all SOPInstanceUIDs by issuing a C-FIND similar to this: findscu -aet MYAET -aec PACSAET --study -k "0008,0052=IMAGE" -k "0020,000D=1.3.46.6705...
by martinrame
Thu, 2015-02-19, 21:53
Forum: DCMTK - General
Topic: Follow PACS communications
Replies: 3
Views: 2559

Re: Follow PACS communications

I never used it, but worth taking a look: http://dicom.dvtk.org/modules/wiwimod/i ... =downloads
by martinrame
Fri, 2015-01-16, 20:03
Forum: DCMTK - General
Topic: Write file to stream truncated?
Replies: 3
Views: 2628

Re: Write file to stream truncated?

BTW, the out buffer I was using (an array of char) had a limit, so I had to replace it to a char * and malloc:

Code: Select all

char * buffer;
buffer = (char *) malloc(buffer_length);
by martinrame
Fri, 2015-01-16, 20:02
Forum: DCMTK - General
Topic: Write file to stream truncated?
Replies: 3
Views: 2628

Re: Write file to stream truncated?

I found the solution:

After loadFile I needed to set the representation as this:

Code: Select all

fileFormat.loadFile(argv[1]);
DcmDataset * ds = fileFormat.getDataset();
ds->chooseRepresentation(EXS_LittleEndianExplicit ,NULL);
fileFormat.loadAllDataIntoMemory();
by martinrame
Fri, 2015-01-16, 18:50
Forum: DCMTK - General
Topic: Write file to stream truncated?
Replies: 3
Views: 2628

Write file to stream truncated?

Hi, I'm trying to do something similar to dcmdjpeg (load JpegLossless file and return ExplicidLittleEndian), but instead of output to file I want to output to stdout. So far I came up with this snippet: // Create FileFormat and load file DcmFileFormat fileFormat; fileFormat.loadFile(argv[1]); fileFo...