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