<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
        {font-family:Helvetica}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Segoe UI"}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style><style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0" vlink="#954F72" link="blue" lang="EN-US">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Hi,</div>
<div><br>
</div>
<div>Sorry for the late answer but the mailing list seemed stuck for a while.</div>
<div><br>
</div>
<div>From your screenshot it seems that your .hdr file is not correct, it does not contain enough information. You can look at the .hdr files generated when reconstructing the benchmarks, to see what fields are missing in your .hdr.</div>
<div><br>
</div>
<div>The interfile format is actually very simple, .img is a simple binary file, though the order of writing elements of a multidimensional matrix should be C-style. In Matlab, the order is not C-style by default I think, but you can find information about
 the writing order on the internet. The .hdr file is a simple text file, you can open it with any text editor and add the required fields and information about the image.</div>
<div><br>
</div>
<div>Hope this helps,</div>
<div><br>
</div>
<div>Marina<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF745518" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>De :</b> Castor-users [castor-users-bounces@lists.castor-project.org] de la part de Ashok Tiwari [tiwarias@yahoo.com]<br>
<b>Envoyé :</b> jeudi 9 avril 2020 20:22<br>
<b>À :</b> castor-users@lists.castor-project.org<br>
<b>Objet :</b> [Castor-users] Attenuation correction using .hdr format?<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Helvetica",sans-serif; color:#1D2228">Dear CASToR users,</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Helvetica",sans-serif; color:#1D2228"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Helvetica",sans-serif; color:#1D2228">I’ve generated an attenuation map of the phantom using DICOM images (CT) in MATLAB. I managed to save the linear attenuation coefficients
 (cm^-1) in interfile (.hdr header and .img data) format. Then, I fed these files in castor reconstruction using ‘-atn atten_map.hdr’ command. But I could not able to perform the attenuation correction correctly. Attached is the screenshot of errors that generated
 during the reconstruction. Do I have to convert the attenuation map data in castor file format?</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Helvetica",sans-serif; color:#1D2228"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Helvetica",sans-serif; color:#1D2228">Any help will be appreciated. Thank you.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Helvetica",sans-serif; color:#1D2228"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Helvetica",sans-serif; color:#1D2228">Regards,</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Helvetica",sans-serif; color:#1D2228">Ashok</span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</body>
</html>