how to convert image (like ave mpeg ) to dicom sc multiframe
Moderator: Moderator Team
how to convert image (like ave mpeg ) to dicom sc multiframe
how to convert multiframe image (like ave mpeg ) to dicom sc multiframe imae by using dcmtk???
-
- OFFIS DICOM Team
- Posts: 1513
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
most difficult question for me is ?
tks a lot . now the most difficult question for me is how to create a valid multi-frame PixelData element , I write a bmp2dcm program by using dcmtk like
switch(lpbmpInfo->biBitCount)
{
case 8:
cond = dataset->putAndInsertUint8Array(DCM_PixelData, m_outimage, lpbmpInfo->biSizeImage);
if (cond.bad())
loginfo("Put DCM_PixelData8 faild \n");
break;
case 24:
cond = dataset->putAndInsertUint8Array(DCM_PixelData, m_outimage, lpbmpInfo->biSizeImage);
if (cond.bad())
loginfo("Put DCM_PixelData24 faild \n");
break;
default:
break;
}
what will be take place of DCM_PixelData in multiframe sc image by using dcmtk?
switch(lpbmpInfo->biBitCount)
{
case 8:
cond = dataset->putAndInsertUint8Array(DCM_PixelData, m_outimage, lpbmpInfo->biSizeImage);
if (cond.bad())
loginfo("Put DCM_PixelData8 faild \n");
break;
case 24:
cond = dataset->putAndInsertUint8Array(DCM_PixelData, m_outimage, lpbmpInfo->biSizeImage);
if (cond.bad())
loginfo("Put DCM_PixelData24 faild \n");
break;
default:
break;
}
what will be take place of DCM_PixelData in multiframe sc image by using dcmtk?
is it should be like....
is it should be like
for (int i=0; i<iFrameNumber,i++)
{
dataset->putAndInsertUint8Array(DCM_PixelData, m_outimage, lpbmpInfo->biSizeImage);
dataset->insert (FFFE,E000)
}
then
add multi-frame moudle and other moudles (M)
fileformat.savefile()????????????
for (int i=0; i<iFrameNumber,i++)
{
dataset->putAndInsertUint8Array(DCM_PixelData, m_outimage, lpbmpInfo->biSizeImage);
dataset->insert (FFFE,E000)
}
then
add multi-frame moudle and other moudles (M)
fileformat.savefile()????????????
I know what it mean but can anyone tell me how to do this!
I tried this code
dataset->insert (FFFE,E000)
,but it doesn't work , the insert funtion is
virtual OFCondition insert (DcmElement *elem, OFBool replaceOld=OFFalse, OFBool checkInsertOrder=OFFalse)
insert a new element into the list of elements maintained by this item.
but FFFE,E000 is not a Dcmelement* type
and I tried :
dataset->insertEmptyElement(DCM_Item);
it is'nt work too.
Can any one help me ?
thanks very much!
dataset->insert (FFFE,E000)
,but it doesn't work , the insert funtion is
virtual OFCondition insert (DcmElement *elem, OFBool replaceOld=OFFalse, OFBool checkInsertOrder=OFFalse)
insert a new element into the list of elements maintained by this item.
but FFFE,E000 is not a Dcmelement* type
and I tried :
dataset->insertEmptyElement(DCM_Item);
it is'nt work too.
Can any one help me ?
thanks very much!
Love programming!
My Blog is:
http://pacs.coocn.org
My Blog is:
http://pacs.coocn.org
Who is online
Users browsing this forum: Google [Bot] and 1 guest