Search found 2067 matches

by Michael Onken
Wed, 2023-05-31, 09:02
Forum: DCMTK - General
Topic: dcmcjpeg quality parameter
Replies: 11
Views: 13004

Re: dcmcjpeg quality parameter

Hm, this sounds like a weird problem. Using a DCMTK tool to re-write the file (dcmconv, or dcmcjpeg+dcmdjpeg, or dcmscale) should rule out any simple encoding errors (like odd length) already. Maybe you need to talk to the vendor support of the target location or get better logs from the server. BR,...
by Michael Onken
Tue, 2023-05-30, 21:01
Forum: DCMTK - General
Topic: dcmcjpeg quality parameter
Replies: 11
Views: 13004

Re: dcmcjpeg quality parameter

Nope, good idea, I never used dcmscale myself actually :D
by Michael Onken
Tue, 2023-05-30, 20:32
Forum: DCMTK - General
Topic: dcmcjpeg quality parameter
Replies: 11
Views: 13004

Re: dcmcjpeg quality parameter

Hey Jörg, the issue was not whether it is appropriate or not but that it might be reason that the PACS does not digest it. Also OP noted that the PACS only supports LEE and JPEG Baseline. Cmerrick: You understood correctly, I dont have any other tool in mind. But, since Jörg brought this up, I also ...
by Michael Onken
Tue, 2023-05-30, 15:42
Forum: DCMTK - General
Topic: dcmcjpeg quality parameter
Replies: 11
Views: 13004

Re: dcmcjpeg quality parameter

Hi, yes the OW/OB issues points at some unusual pixel data setup used. You can try the following to fix it: Use dcmcjpeg <input_file> <output_file> to create JPEG lossless, and then dcmdjpeg <output_file> <result_file> to decompress it again (thus not loosing quality). IIRC DCMTK will then use only ...
by Michael Onken
Tue, 2023-05-30, 14:02
Forum: DCMTK - General
Topic: dcmcjpeg quality parameter
Replies: 11
Views: 13004

Re: dcmcjpeg quality parameter

Hi, setting quality factor to 100 will not make JPEG Baseline lossless. Probably it's better to fix the source image. Also maybe the problem in the image is just disguised by applying JPEG Baseline transfer syntax, so you might store "garbage" to your PACS as well. Does dcmcjpeg gives some...
by Michael Onken
Tue, 2023-05-23, 15:10
Forum: DCMTK - General
Topic: Memory Mapped file support
Replies: 7
Views: 8033

Re: Memory Mapped file support

P.S: Well, I tried this and actually in dcmodify this does not work (loads fully into memory instead). Anyway, maybe Jörg or Marco know the best way to handle your problem.
by Michael Onken
Tue, 2023-05-23, 14:56
Forum: DCMTK - General
Topic: Memory Mapped file support
Replies: 7
Views: 8033

Re: Memory Mapped file support

Hi, unfortunately there is no such class in DCMTK. However, I think you could use DcmElement::createValueFromTempFile() in order to insert pixel data from a pixel data file stored on disk. This means you would write all your pixel data to disk in the format that it will later have inside the Pixel D...
by Michael Onken
Tue, 2023-05-09, 09:06
Forum: DCMTK - General
Topic: Encapsulate ZIP file in DICOM file
Replies: 5
Views: 6955

Re: Encapsulate ZIP file in DICOM file

Hi,

no, there is no specific IOD for this task. In DICOM there is so far: Encapsulated PDF, Enc. CDA, Enc. STL, Enc. OBJ and Enc. MTL. The only way to encapsulate a ZIP file would be private data, and/or using the Raw Data IOD.

Best regards,
Michael
by Michael Onken
Mon, 2023-05-08, 08:47
Forum: DCMTK - General
Topic: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?
Replies: 14
Views: 28147

Re: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?

As Jörg said, it is all "said" in dcm2pnm. By including diregist.h support of color images is automatically enabled. The API calls stay the same as without diregist.h.

You only have to follow the lines dcm2pnm::905 ff.
by Michael Onken
Mon, 2023-05-08, 08:40
Forum: DCMTK - General
Topic: Encapsulate ZIP file in DICOM file
Replies: 5
Views: 6955

Re: Encapsulate ZIP file in DICOM file

Hi Jingkun,

some general info how to insert private data can be found in our Howtos: https://support.dcmtk.org/redmine/proje ... rivateData

Best regards,
Michael
by Michael Onken
Fri, 2023-05-05, 08:38
Forum: DCMTK - General
Topic: Download the MR image from a PACS server and save it in jpeg format.
Replies: 22
Views: 42017

Re: Download the MR image from a PACS server and save it in jpeg format.

Hi,

Mh, hard to say, looks like a network problem or problem with dicomserver.co.uk. Probably you should check the server logs here: https://dicomserver.co.uk/logs/ when doing this request.

BR,
Michael
by Michael Onken
Tue, 2023-05-02, 14:05
Forum: DCMTK - General
Topic: Download the MR image from a PACS server and save it in jpeg format.
Replies: 22
Views: 42017

Re: Download the MR image from a PACS server and save it in jpeg format.

Yes, look into dcmnet/apps/getscu.cc how to do that.

BR, Michael
by Michael Onken
Tue, 2023-05-02, 11:37
Forum: DCMTK - General
Topic: Download the MR image from a PACS server and save it in jpeg format.
Replies: 22
Views: 42017

Re: Download the MR image from a PACS server and save it in jpeg format.

That means that movescu has never been connected to the PACS or (in your case if you could retrieve the images) that the server hung up the connection to movescu. Maybe you can see the reason using --debug on movescu but probably its an error in the server.
by Michael Onken
Tue, 2023-05-02, 10:27
Forum: DCMTK - General
Topic: Download the MR image from a PACS server and save it in jpeg format.
Replies: 22
Views: 42017

Re: Download the MR image from a PACS server and save it in jpeg format.

Hi, storescp per default only accepts uncompressed images. However, all images > 4 GB cannot be sent uncompressed. Try the following to also allow the sender to send in JPEG Lossless: --prefer-lossless If this does not work, try (not together, just one after another): --prefer-rle --prefer-mpeg2 --p...
by Michael Onken
Tue, 2023-05-02, 09:41
Forum: DCMTK - General
Topic: Download the MR image from a PACS server and save it in jpeg format.
Replies: 22
Views: 42017

Re: Download the MR image from a PACS server and save it in jpeg format.

Hi,

use --debug option on storescp which might show more details on what goes wrong.

BR,
Michael