ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 RT dose
 New Topic  Reply to Topic
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

xequte

38615 Posts

Posted - Jun 21 2016 :  18:49:20  Show Profile  Reply
Sorry, I'm not sure what you are trying to achieve.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Jun 23 2016 :  11:58:10  Show Profile  Reply
i need read dataset of recod $7FE0,$0010
sample code in cpp
you know how convert below code in delphi


unsigned long count;
const Uint16* pixelData;
status = _dataSet->findAndGetUint16Array(DcmTagKey(0x7fe0, 0x0010), pixelData, &count);

if (status.good())
{
for (unsigned int i = 0; i < static_cast<unsigned int>(this->_geoInfo.getNumberOfVoxels()); i++)
{
this->doseData.push_back(pixelData[i]);
}

return true;
}
else
{
throw io::dicom::DcmrtException("Read Pixel Data (7FE0,0010) failed!");
}
Go to Top of Page

xequte

38615 Posts

Posted - Jun 26 2016 :  20:27:25  Show Profile  Reply
Hi Hamid

Can you tell me what you are trying to do with this raw data? The pixel data ($7FE0,$0010) is the image within the DICOM file, so why access it via the tag rather than just using the image that ImageEn returns?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Jun 30 2016 :  06:01:57  Show Profile  Reply
hi
please you first open my file () and read tag until you know what i wanted

the tag 7FE0:0010] on my file in 68 frame that contain points of iso dose
similar to below

[7FE0:0010](PixelData)OW_OB=<68>Pixel[b] Data 68 frame

---
please send me code for read data tag of my file that i have send to you (RD.1.2.410.200018....dcm)



Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Jul 01 2016 :  08:52:11  Show Profile  Reply
in the tag of 7FE0,$0010 contain several frame that show isodose in the radiotherapy i need need read than and convert to text for read it

thanks
Go to Top of Page

xequte

38615 Posts

Posted - Jul 02 2016 :  02:49:09  Show Profile  Reply
Hi Hamid

It should be something like:

var
  atag: PIEDicomTag;
  aMemStream : TMemoryStream;
begin
  atag := MainForm.ImageEnMView1.MIO.Params[0].DICOM_FindTag($7FE0,$0010);
  if atag = nil then
    raise Exception.create( 'Invalid Tag' );

  aMemStream := TMemoryStream.Create();
  aMemStream.Write( atag^.Data, atag^.DataLen );
  aMemStream.Position := 0;
  // Do something with aMemStream
  aMemStream.Free;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
Jump To: