<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Xinjie,</p>
    <p>Yes indeed this is the same issue. Interfile header can come in
      several format and CASToR can't open the one you provided. I
      couldn't open it with a text editor either.</p>
    <p>If you didn't do that already, one quick work-around could be to
      create an interfile header for your binary file from one
      compatible header. I attached one to this mail, you just have to
      change the name of data file as well as voxel dimensions/size. The
      <i>'total number of images</i>' key must correspond to the number
      of axial slices (as<i> matrix size [3]</i>), 211 in your case.</p>
    <p>Hope this helps,<br>
      Thibaut<br>
    </p>
    <div class="moz-cite-prefix">On 29/04/2022 17:56, Xinjie Cao wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADNPND=hETdGE-EAWV1Oa2-2iVzCu29yWY8C_EPEFN6UzHo2hA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Dear all,
        <div><br>
        </div>
        <div>I generated an attenuation map and wanted to apply it to my
          reconstruction. But when I apply it in <i
            style="font-weight:bold">Castor-recon</i>, the error
          popped up as follows,</div>
        <div>=======================</div>
        <div>Error: some mandatory keys not initialized. Cannot read the
          interfile image!<br>
          Error when trying to read path to image data<br>
          Error when trying to read matrix size (image dimensions) : x=
          0, y= 0, z= 1<br>
        </div>
        <div>=======================</div>
        <div><br>
        </div>
        <div>I searched the CASToR archive, and found the following
          thread,</div>
        <div><a
href="https://lists.castor-project.org/pipermail/castor-users/Week-of-Mon-20210426/000529.html"
            moz-do-not-send="true">https://lists.castor-project.org/pipermail/castor-users/Week-of-Mon-20210426/000529.html</a>.<br>
        </div>
        <div><br>
        </div>
        <div>However, it looks like the issue hasn't been solved yet. I
          generated the original <b><i>.nii</i></b> file in Matlab and
          converted it to analyze format using XMedcon. I have attached
          the header file and image file to this email, any response
          will be highly appreciated!</div>
        <div><br>
        </div>
        <div>Best,</div>
        <div>Xinjie</div>
        <div class="gmail_chip gmail_drive_chip"
style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;font-size:13px;border:1px
          solid rgb(221,221,221);line-height:1"><a
href="https://drive.google.com/file/d/1l0QZXPGKw7HtGrHyr30XeTtfRF9kXAEc/view?usp=drive_web"
            target="_blank"
style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration-line:none;padding:1px
            0px;border:none" aria-label="IQTest.hdr"
            moz-do-not-send="true"><img style="vertical-align: bottom;
              border: none;"
src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"
              moz-do-not-send="true"> <span dir="ltr"
              style="vertical-align:bottom;text-decoration:none">IQTest.hdr</span></a><img
            src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png"
            style="opacity: 0.55; cursor: pointer; float: right;
            position: relative; top: -1px; display: none;"
            moz-do-not-send="true"></div>
        <div class="gmail_chip gmail_drive_chip"
style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;font-size:13px;border:1px
          solid rgb(221,221,221);line-height:1"><a
href="https://drive.google.com/file/d/1L2Q01W3WZWn8SZG1KWoH3vud00GHJUvq/view?usp=drive_web"
            target="_blank"
style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration-line:none;padding:1px
            0px;border:none" aria-label="IQTest.img"
            moz-do-not-send="true"><img style="vertical-align: bottom;
              border: none;"
src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"
              moz-do-not-send="true"> <span dir="ltr"
              style="vertical-align:bottom;text-decoration:none">IQTest.img</span></a><img
            src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png"
            style="opacity: 0.55; cursor: pointer; float: right;
            position: relative; top: -1px; display: none;"
            moz-do-not-send="true"></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Castor-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Castor-users@lists.castor-project.org">Castor-users@lists.castor-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.castor-project.org/mailman/listinfo/castor-users">https://lists.castor-project.org/mailman/listinfo/castor-users</a>

To look for something in the mailing-list archives, use the search box at:
<a class="moz-txt-link-freetext" href="https://castor-project.org/mailing-list">https://castor-project.org/mailing-list</a></pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Thibaut MERLIN -- PhD

Docteur en Imagerie Médicale au Laboratoire de Traitement de l'Information Medicale (LaTIM - INSERM UMR 1101)
Institut Brestois de recherche en Bio-Santé (IBRBS)
12 Avenue Foch, 29200 Brest, FRANCE
Tel: 06.75.12.24.90</pre>
  </body>
</html>