{
  "id": 267239,
  "title": "Image order intra-series",
  "url": "/competitions/rsna-miccai-brain-tumor-radiogenomic-classification/discussion/267239",
  "author_name": "",
  "post_date": "2021-08-22T11:18:58.428147Z",
  "votes": 2,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I wonder what information we can rely on to ensure the order of images in each series. Firstly, I have used filename convention, but after googling for awhile, it's not the DICOM standard to use the filename to order images. <br>\nI've noticed InstanceNumber info as well. Though DICOM standard lists this tag as Type 2: \"Required, Empty if Unknown\", I've checked the training data and seen no missing data in this field. <br>\nCan we be sure that this information is readily available in the private test as well ?</p>\n<p><a href=\"https://www.kaggle.com/cdcarr\" target=\"_blank\">@cdcarr</a> , can you answer this ?</p>",
  "messages": [
    {
      "id": "1485726",
      "postDate": "08/22/2021 11:18:58",
      "content": "<p>I wonder what information we can rely on to ensure the order of images in each series. Firstly, I have used filename convention, but after googling for awhile, it's not the DICOM standard to use the filename to order images. <br>\nI've noticed InstanceNumber info as well. Though DICOM standard lists this tag as Type 2: \"Required, Empty if Unknown\", I've checked the training data and seen no missing data in this field. <br>\nCan we be sure that this information is readily available in the private test as well ?</p>\n<p><a href=\"https://www.kaggle.com/cdcarr\" target=\"_blank\">@cdcarr</a> , can you answer this ?</p>",
      "rawMarkdown": "I wonder what information we can rely on to ensure the order of images in each series. Firstly, I have used filename convention, but after googling for awhile, it's not the DICOM standard to use the filename to order images. \nI've noticed InstanceNumber info as well. Though DICOM standard lists this tag as Type 2: \"Required, Empty if Unknown\", I've checked the training data and seen no missing data in this field. \nCan we be sure that this information is readily available in the private test as well ?\n\n@cdcarr , can you answer this ?",
      "votes": null
    },
    {
      "id": "1485831",
      "postDate": "08/22/2021 13:05:10",
      "content": "<p>You shouldn't use the instance number to order images. It may not always be accurate, and as you noted, it's a required tag, but can be empty or out of order. Likewise there is another tag (SliceLocation 0020,1041) that can be used, but it is optional and may not be present at all.</p>\n<p>The correct way to order slices is to use the ImagePositionPatient (0020,0032) and ImageOrientationPatient (0020,0037) to calculate the orientation and location.</p>",
      "rawMarkdown": "You shouldn't use the instance number to order images. It may not always be accurate, and as you noted, it's a required tag, but can be empty or out of order. Likewise there is another tag (SliceLocation 0020,1041) that can be used, but it is optional and may not be present at all.\n\nThe correct way to order slices is to use the ImagePositionPatient (0020,0032) and ImageOrientationPatient (0020,0037) to calculate the orientation and location.",
      "votes": null
    },
    {
      "id": "1487948",
      "postDate": "08/24/2021 01:43:11",
      "content": "<p>Can you answer this ?  <a href=\"https://www.kaggle.com/ujjwalbaid\" target=\"_blank\">@ujjwalbaid</a> </p>",
      "rawMarkdown": "Can you answer this ?  @ujjwalbaid",
      "votes": null
    },
    {
      "id": "1489624",
      "postDate": "08/25/2021 06:27:18",
      "content": "<p>I found this example handy for accessing the slices and ordering…<br>\n<a href=\"https://pydicom.github.io/pydicom/stable/auto_examples/image_processing/reslice.html#sphx-glr-auto-examples-image-processing-reslice-py\" target=\"_blank\">https://pydicom.github.io/pydicom/stable/auto_examples/image_processing/reslice.html#sphx-glr-auto-examples-image-processing-reslice-py</a></p>",
      "rawMarkdown": "I found this example handy for accessing the slices and ordering...\nhttps://pydicom.github.io/pydicom/stable/auto_examples/image_processing/reslice.html#sphx-glr-auto-examples-image-processing-reslice-py",
      "votes": null
    },
    {
      "id": "1489735",
      "postDate": "08/25/2021 08:21:46",
      "content": "<p>The example you've given uses SliceLocation as the ordering information. In DICOM standard, this attribute is optional. Relying on this tag seems to be risky.</p>",
      "rawMarkdown": "The example you've given uses SliceLocation as the ordering information. In DICOM standard, this attribute is optional. Relying on this tag seems to be risky.",
      "votes": null
    },
    {
      "id": "1490001",
      "postDate": "08/25/2021 12:39:37",
      "content": "<p>Here's a notebook I made that uses ImagePositionPatient to sort slice order -&gt; <a href=\"https://www.kaggle.com/davidbroberts/determining-dicom-image-order\" target=\"_blank\">https://www.kaggle.com/davidbroberts/determining-dicom-image-order</a></p>",
      "rawMarkdown": "Here's a notebook I made that uses ImagePositionPatient to sort slice order -> https://www.kaggle.com/davidbroberts/determining-dicom-image-order",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1485831,
      "author_name": "davidbroberts",
      "author_url": "",
      "post_date": "08/22/2021 13:05:10",
      "content": "<p>You shouldn't use the instance number to order images. It may not always be accurate, and as you noted, it's a required tag, but can be empty or out of order. Likewise there is another tag (SliceLocation 0020,1041) that can be used, but it is optional and may not be present at all.</p>\n<p>The correct way to order slices is to use the ImagePositionPatient (0020,0032) and ImageOrientationPatient (0020,0037) to calculate the orientation and location.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1487948,
      "author_name": "namgalielei",
      "author_url": "",
      "post_date": "08/24/2021 01:43:11",
      "content": "<p>Can you answer this ?  <a href=\"https://www.kaggle.com/ujjwalbaid\" target=\"_blank\">@ujjwalbaid</a> </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1489624,
      "author_name": "adamwigg",
      "author_url": "",
      "post_date": "08/25/2021 06:27:18",
      "content": "<p>I found this example handy for accessing the slices and ordering…<br>\n<a href=\"https://pydicom.github.io/pydicom/stable/auto_examples/image_processing/reslice.html#sphx-glr-auto-examples-image-processing-reslice-py\" target=\"_blank\">https://pydicom.github.io/pydicom/stable/auto_examples/image_processing/reslice.html#sphx-glr-auto-examples-image-processing-reslice-py</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 1489735,
          "author_name": "tungvs",
          "author_url": "",
          "post_date": "08/25/2021 08:21:46",
          "content": "<p>The example you've given uses SliceLocation as the ordering information. In DICOM standard, this attribute is optional. Relying on this tag seems to be risky.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1490001,
      "author_name": "davidbroberts",
      "author_url": "",
      "post_date": "08/25/2021 12:39:37",
      "content": "<p>Here's a notebook I made that uses ImagePositionPatient to sort slice order -&gt; <a href=\"https://www.kaggle.com/davidbroberts/determining-dicom-image-order\" target=\"_blank\">https://www.kaggle.com/davidbroberts/determining-dicom-image-order</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1485726": "I wonder what information we can rely on to ensure the order of images in each series. Firstly, I have used filename convention, but after googling for awhile, it's not the DICOM standard to use the filename to order images. \nI've noticed InstanceNumber info as well. Though DICOM standard lists this tag as Type 2: \"Required, Empty if Unknown\", I've checked the training data and seen no missing data in this field. \nCan we be sure that this information is readily available in the private test as well ?\n\n@cdcarr , can you answer this ?",
    "1485831": "You shouldn't use the instance number to order images. It may not always be accurate, and as you noted, it's a required tag, but can be empty or out of order. Likewise there is another tag (SliceLocation 0020,1041) that can be used, but it is optional and may not be present at all.\n\nThe correct way to order slices is to use the ImagePositionPatient (0020,0032) and ImageOrientationPatient (0020,0037) to calculate the orientation and location.",
    "1487948": "Can you answer this ?  @ujjwalbaid",
    "1489624": "I found this example handy for accessing the slices and ordering...\nhttps://pydicom.github.io/pydicom/stable/auto_examples/image_processing/reslice.html#sphx-glr-auto-examples-image-processing-reslice-py",
    "1489735": "The example you've given uses SliceLocation as the ordering information. In DICOM standard, this attribute is optional. Relying on this tag seems to be risky.",
    "1490001": "Here's a notebook I made that uses ImagePositionPatient to sort slice order -> https://www.kaggle.com/davidbroberts/determining-dicom-image-order"
  },
  "source": "meta"
}