Thursday, February 09, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: tchlee
New Today New Today: 16
New Yesterday New Yesterday: 26
User Count Overall: 20579

People Online People Online:
Visitors Visitors: 16
Members Members: 4
Total Total: 20

Online Now Online Now:
01: jbluks
02: jnewman
03: munir24hr
04: bjvail

ClearCanvas Community Forums

Print DICOM using FujiFilm DryPix 4000, (Timeout Expired for remote host)
Last Post 2010-03-19 12:15 AM by jasper.yeh. 8 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
omar@peridotec.com
New Member
New Member
Posts:8

--
2010-03-01 04:42 PM  

My Application needs to send Printout to DICOM Printer FujiFilm DryPix 4000. Application giving me this error message "Timeout Expired for remote host DTYPIX, aborting connection"
DTYPIX is my printer's AE Title

PrinterStatusScu shows printer status is NORMAL and VarifcationScu return the verification result and that is SUCCESS but when i call print method i get error
here.

following are the parameters i am passing on to Print function

("my computer name", "printer AE title", "printer IP address", 104, "Complete dcm file path");
 

If some body can help me with the problem.

 

Tags: DICOM File Printing, DryPix 4000, Timeout Expired for Remote Host
dblanchard
Senior Member
Senior Member
Posts:185

--
2010-03-02 01:26 AM  
how long does it take to timeout? are you setting the Read and WriteTimeout properties? I believe they are in MS so you should set them to at least 5-10 seconds (ie, set those properties to 10000)

HTH

dan
omar@peridotec.com
New Member
New Member
Posts:8

--
2010-03-17 03:14 PM  

Ok Printing Problem is partially solved , and now sending printout to DryPix 4000 Printer, (I did some settings in DryPix Printer, Specially disabled warning comming from printer) which let my code send print out to printer, but the print comming out is blank film.

I tried to open the same DICOM file in eFilm and it is showing very dark imgage hardly visible by human eye. While in Clear Canvas Workstation it shows fine.

My Source JPG Image is 24bit RGB Image , can somebody suggest me Header Tag settings for my image type

these are settings what i used

(0028, 0002) Samples Per Pixel: 3

(0028,0004) Photometric Interpertation : RGB

(0028,0010) Rows: 2912

(0028,0011) Columns : 3704

(0028,0100) Bits Allocated: 8

(0028,0101) Bits Stored: 8

(0028,0102) High Bit: 7

So can somebody suggest me values for Samples Per Pixel, Bits allocated, Bits Stored and High bit

Also how do i Add this Tag Element (0002,0016) Source Application Entity Title.

Which is required by DICOM Printer

 

jasper.yeh
Senior Member
Senior Member
Posts:521
Avatar

--
2010-03-17 06:28 PM  
Hi Omar,

Source Application Entity Title (0002,0016) has a tag group of 0002, so it belongs in the MetaInfo instead of the DataSet. The procedure to set the value is the same as the DataSet - dicomFile.MetaInfo[DicomTags.SourceApplicationEntityTitle].SetStringValue("AETITLE");

Hope this helps,
// Jasper
jasper.yeh
Senior Member
Senior Member
Posts:521
Avatar

--
2010-03-17 06:34 PM  
As for your other question...

You are outputting 24-bit RGB pixel data, so the values must be Samples Per Pixel = 3, Bits Allocated = 8, Bits Stored = 8 and High Bit = 7. There are no other valid values. Does the image appear correct as far as the anatomy is concerned (i.e. other than the window/levelling issue)?
// Jasper
omar@peridotec.com
New Member
New Member
Posts:8

--
2010-03-17 07:47 PM  

thanks but can you also tell me what should be values of Greyscale 16 bit and 8 bit images for Samples Per Pixel, Bits Allocated, Bits Stored and High Bit?

jasper.yeh
Senior Member
Senior Member
Posts:521
Avatar

--
2010-03-18 10:24 AM  

Hi Omar,

For n-bit greyscale data, you should have Samples Per Pixel = 1, Bits Allocated = 8 or 16 (whichever is greater than or equal to n), Bits Stored = n, and High Bit = n-1. You will also need Pixel Representation (0028,0103) for a greyscale image, either 0 for unsigned pixel values, or 1 for signed pixel values.

Thus, if you have 16-bit unsigned data, you should use SPP=1, BA=16, BS=16, HB=15, PR=0, and for 8-bit unsigned, use SPP=1, BA=8, BS=8, HB=7, PR=0.

Hope this helps,

(Edit: As a check, you pixel data length in bytes should be exactly NumberOfFrames*SamplesPerPixel*Rows*Columns*BitsAllocated/8)

// Jasper
omar@peridotec.com
New Member
New Member
Posts:8

--
2010-03-18 02:17 PM  

ok so this mean for 24 bits per pixel source image , we do not need to inlcude header Tag: Pixel Representation (0028,0103) ?
 

jasper.yeh
Senior Member
Senior Member
Posts:521
Avatar

--
2010-03-19 12:15 AM  
That's right, colour data should not have Pixel Representation.
// Jasper
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.