{
  "id": 510068,
  "title": "How to align the axial and sagittal xyz coordinates?",
  "url": "/competitions/rsna-2024-lumbar-spine-degenerative-classification/discussion/510068",
  "author_name": "",
  "post_date": "2024-06-04T20:12:21.255621100Z",
  "votes": 13,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I think it would be easier to create a multi-input model by using dicom metadata to associate the xyz coordinates of the two axes, but I don't know how to handle the metadata. <br>\nIf anyone has any ideas please let me know</p>",
  "messages": [
    {
      "id": "2855487",
      "postDate": "06/04/2024 20:12:21",
      "content": "<p>I think it would be easier to create a multi-input model by using dicom metadata to associate the xyz coordinates of the two axes, but I don't know how to handle the metadata. <br>\nIf anyone has any ideas please let me know</p>",
      "rawMarkdown": "I think it would be easier to create a multi-input model by using dicom metadata to associate the xyz coordinates of the two axes, but I don't know how to handle the metadata. \nIf anyone has any ideas please let me know",
      "votes": null
    },
    {
      "id": "2855797",
      "postDate": "06/05/2024 03:32:50",
      "content": "<p>I am not sure if this will help in associating the xyz coordinates of the two axes, but I am able to group slices inside of a series folder such that I am able to create a volume and an affine matrix using <code>combine_slices</code> function from <code>dicom-numpy</code> package.</p>\n<p>This affine can be used to get the orientation, origin and spacing of the volume generated. Will that help your case? If so, I can make my draft notebook publicly available (the slice grouping code is too long to fit inside a single comment).</p>",
      "rawMarkdown": "I am not sure if this will help in associating the xyz coordinates of the two axes, but I am able to group slices inside of a series folder such that I am able to create a volume and an affine matrix using `combine_slices` function from `dicom-numpy` package.\n\nThis affine can be used to get the orientation, origin and spacing of the volume generated. Will that help your case? If so, I can make my draft notebook publicly available (the slice grouping code is too long to fit inside a single comment).",
      "votes": null
    },
    {
      "id": "2858826",
      "postDate": "06/06/2024 16:49:56",
      "content": "<p>I made a notebook showing how to cross-reference sagittal and axial images using <code>ImagePositionPatient</code> in the DICOM metadata: </p>\n<p><a href=\"https://www.kaggle.com/code/vaillant/cross-reference-images-in-different-mri-planes?scriptVersionId=181874384\" target=\"_blank\">https://www.kaggle.com/code/vaillant/cross-reference-images-in-different-mri-planes?scriptVersionId=181874384</a></p>\n<p>However, this doesn't seem to be totally accurate in my experience when mapping axial to sagittal images (the example in my notebook shows a gap which I do not think is correct). </p>",
      "rawMarkdown": "I made a notebook showing how to cross-reference sagittal and axial images using `ImagePositionPatient` in the DICOM metadata: \n\nhttps://www.kaggle.com/code/vaillant/cross-reference-images-in-different-mri-planes?scriptVersionId=181874384\n\nHowever, this doesn't seem to be totally accurate in my experience when mapping axial to sagittal images (the example in my notebook shows a gap which I do not think is correct).",
      "votes": null
    },
    {
      "id": "2858866",
      "postDate": "06/06/2024 17:26:09",
      "content": "<p>Is it possible to align them because scans of different orientation are taken at different time with different posture?</p>",
      "rawMarkdown": "Is it possible to align them because scans of different orientation are taken at different time with different posture?",
      "votes": null
    },
    {
      "id": "2862087",
      "postDate": "06/08/2024 14:48:49",
      "content": "<p>Thanks for sharing! It is true that some axial images are mapped to areas other than L1~S1, and it seems impossible to make the correspondence as is.</p>",
      "rawMarkdown": "Thanks for sharing! It is true that some axial images are mapped to areas other than L1~S1, and it seems impossible to make the correspondence as is.",
      "votes": null
    },
    {
      "id": "2866449",
      "postDate": "06/11/2024 10:53:17",
      "content": "<p>if you could make this available that would be fantastic</p>",
      "rawMarkdown": "if you could make this available that would be fantastic",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2855797,
      "author_name": "coderrkj",
      "author_url": "",
      "post_date": "06/05/2024 03:32:50",
      "content": "<p>I am not sure if this will help in associating the xyz coordinates of the two axes, but I am able to group slices inside of a series folder such that I am able to create a volume and an affine matrix using <code>combine_slices</code> function from <code>dicom-numpy</code> package.</p>\n<p>This affine can be used to get the orientation, origin and spacing of the volume generated. Will that help your case? If so, I can make my draft notebook publicly available (the slice grouping code is too long to fit inside a single comment).</p>",
      "votes": null,
      "replies": [
        {
          "id": 2866449,
          "author_name": "homiecal",
          "author_url": "",
          "post_date": "06/11/2024 10:53:17",
          "content": "<p>if you could make this available that would be fantastic</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2858826,
      "author_name": "vaillant",
      "author_url": "",
      "post_date": "06/06/2024 16:49:56",
      "content": "<p>I made a notebook showing how to cross-reference sagittal and axial images using <code>ImagePositionPatient</code> in the DICOM metadata: </p>\n<p><a href=\"https://www.kaggle.com/code/vaillant/cross-reference-images-in-different-mri-planes?scriptVersionId=181874384\" target=\"_blank\">https://www.kaggle.com/code/vaillant/cross-reference-images-in-different-mri-planes?scriptVersionId=181874384</a></p>\n<p>However, this doesn't seem to be totally accurate in my experience when mapping axial to sagittal images (the example in my notebook shows a gap which I do not think is correct). </p>",
      "votes": null,
      "replies": [
        {
          "id": 2858866,
          "author_name": "manaidu",
          "author_url": "",
          "post_date": "06/06/2024 17:26:09",
          "content": "<p>Is it possible to align them because scans of different orientation are taken at different time with different posture?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 2862087,
          "author_name": "abebe9849",
          "author_url": "",
          "post_date": "06/08/2024 14:48:49",
          "content": "<p>Thanks for sharing! It is true that some axial images are mapped to areas other than L1~S1, and it seems impossible to make the correspondence as is.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2855487": "I think it would be easier to create a multi-input model by using dicom metadata to associate the xyz coordinates of the two axes, but I don't know how to handle the metadata. \nIf anyone has any ideas please let me know",
    "2855797": "I am not sure if this will help in associating the xyz coordinates of the two axes, but I am able to group slices inside of a series folder such that I am able to create a volume and an affine matrix using `combine_slices` function from `dicom-numpy` package.\n\nThis affine can be used to get the orientation, origin and spacing of the volume generated. Will that help your case? If so, I can make my draft notebook publicly available (the slice grouping code is too long to fit inside a single comment).",
    "2858826": "I made a notebook showing how to cross-reference sagittal and axial images using `ImagePositionPatient` in the DICOM metadata: \n\nhttps://www.kaggle.com/code/vaillant/cross-reference-images-in-different-mri-planes?scriptVersionId=181874384\n\nHowever, this doesn't seem to be totally accurate in my experience when mapping axial to sagittal images (the example in my notebook shows a gap which I do not think is correct).",
    "2858866": "Is it possible to align them because scans of different orientation are taken at different time with different posture?",
    "2862087": "Thanks for sharing! It is true that some axial images are mapped to areas other than L1~S1, and it seems impossible to make the correspondence as is.",
    "2866449": "if you could make this available that would be fantastic"
  },
  "source": "meta"
}