Hi everyone,<br><br>This tag cannot be read as an array. I did not know that each value had to be read in seperately. It is sorted now.<br><br>Float64 rowxCos = 0.0;<br>m_dcmFileFormat-&gt;getDataset()-&gt;findAndGetFloat64(
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCM_ImageOrientationPatient, rowxCos);</blockquote><div><br>Float64 rowyCos = 
0.0;<br>m_dcmFileFormat-&gt;getDataset()-&gt;findAndGetFloat64(<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCM_ImageOrientationPatient, rowyCos);</blockquote>
<br>and so on...<br><br>Thanks,<br>Luca<br>&nbsp;</div><br><br><br>So, I had to do..<br><br><div><span class="gmail_quote">On 6/4/07, <b class="gmail_sendername">Luca Pamparana</b> &lt;<a href="mailto:luca.pamparana@gmail.com">
luca.pamparana@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br>I know this is not the best forum for this and I apologize for positing here. However, since many people here have experience with DCMTK, I was wondering if someone could help me.
<br><br>I am trying to read the DCM_ImageOrientationPatient tag (0020, 0037). 
<br><br>I have the following code which should get the pointer to the value arrays:<br><br><br>const Float32 * data = 0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>retval = m_dcmFileFormat-&gt;getDataset()-&gt;findAndGetFloat32Array(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCM_ImageOrientationPatient, data).good();
<br><br>m_dcmFileFormat = DcmFileFormat object pointer.<br><br>I have tried it with float and double array types but the method always returns false.<br><br>If someone can help me find what I am doing wrong, I will be much grateful.
<br><br>Thank you,<br><span class="sg"><br>Luca<br>
</span></blockquote></div><br>