Me again,
The code should be: cond = DS.putAndInsertString(New DcmTag(Dcm.RescaleIntercept), CStr(CT2HUintercept)) That seems to work. Please ignore my previous post. :-) Iryna _____ From: Iryna Gordon [mailto:[EMAIL PROTECTED] Sent: Thursday, November 23, 2006 4:52 PM To: [EMAIL PROTECTED]; [email protected] Subject: PutAndInsertFloat64 in ClearCanvas.Dicom Hi, I'm running into problems with the call to DcmDataset.PutAndInsertFloat64, so I was wondering if anyone can help me figure this out. My code loads a dicom image, performs some conversion operations on it and saves a copy of it as a new dicom image. Part of the conversion involves generating and saving a new rescale intercept in the header. Here's the snippet of my VB code (DS is the DcmDataset): Dim testval As F64 Dim cond As OFCondition cond = DS.putAndInsertFloat64(New DcmTag(Dcm.RescaleIntercept), CT2HUintercept) DS.findAndGetFloat64(Dcm.RescaleIntercept, testval) Debug.Assert(CT2HUintercept = testval) Unfortunately, PutAndInsertFloat64 fails, with condition being "Illegal call, perhaps wrong parameters". Any ideas what may be wrong? Thanks in advance, Iryna
_______________________________________________ dev mailing list [email protected] http://clearcanvas.ca/mailman/listinfo/dev_clearcanvas.ca
