{
  "id": 522176,
  "title": "Preview data",
  "url": "/competitions/rsna-2024-lumbar-spine-degenerative-classification/discussion/522176",
  "author_name": "",
  "post_date": "2024-07-24T19:39:18.011694200Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Can someone explain to me how the data is structured and how to view the data</p>",
  "messages": [
    {
      "id": "2934902",
      "postDate": "07/24/2024 19:39:18",
      "content": "<p>Can someone explain to me how the data is structured and how to view the data</p>",
      "rawMarkdown": "Can someone explain to me how the data is structured and how to view the data",
      "votes": null
    },
    {
      "id": "2935241",
      "postDate": "07/25/2024 05:19:40",
      "content": "<p>Take a look at the <strong>Dataset Description</strong> at <a href=\"https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/data\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/data</a> if you want details on the data.</p>\n<p>If you are asking how to view/extract the array from individual slices, Pydicom and Matplotlib libraries will help:</p>\n<pre><code> pathlib  Path\n\n matplotlib.pyplot  plt\n pydicom  dcmread\n\n\nINPUT_DIR = Path()\ndcm = dcmread(INPUT_DIR / )\nplt.imshow(dcm..pixel_array, )\nplt.show()\n</code></pre>\n<p>Also see the notebooks in <a href=\"https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/code\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/code</a> especially <a href=\"https://www.kaggle.com/code/abhinavsuri/anatomy-image-visualization-overview-rsna-raids\" target=\"_blank\">Anatomy &amp; Image Visualization Overview-RSNA RAIDS</a></p>",
      "rawMarkdown": "Take a look at the **Dataset Description** at https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/data if you want details on the data.\n\nIf you are asking how to view/extract the array from individual slices, Pydicom and Matplotlib libraries will help:\n```python\nfrom pathlib import Path\n\nimport matplotlib.pyplot as plt\nfrom pydicom import dcmread\n\n\nINPUT_DIR = Path(\"/kaggle/input/rsna-2024-lumbar-spine-degenerative-classification\")\ndcm = dcmread(INPUT_DIR / \"[train/test]_images/[study_id]/[series_id]/[instance_number].dcm\")\nplt.imshow(dcm..pixel_array, \"gray\")\nplt.show()\n```\nAlso see the notebooks in https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/code especially [Anatomy & Image Visualization Overview-RSNA RAIDS](https://www.kaggle.com/code/abhinavsuri/anatomy-image-visualization-overview-rsna-raids)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2935241,
      "author_name": "coderrkj",
      "author_url": "",
      "post_date": "07/25/2024 05:19:40",
      "content": "<p>Take a look at the <strong>Dataset Description</strong> at <a href=\"https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/data\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/data</a> if you want details on the data.</p>\n<p>If you are asking how to view/extract the array from individual slices, Pydicom and Matplotlib libraries will help:</p>\n<pre><code> pathlib  Path\n\n matplotlib.pyplot  plt\n pydicom  dcmread\n\n\nINPUT_DIR = Path()\ndcm = dcmread(INPUT_DIR / )\nplt.imshow(dcm..pixel_array, )\nplt.show()\n</code></pre>\n<p>Also see the notebooks in <a href=\"https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/code\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/code</a> especially <a href=\"https://www.kaggle.com/code/abhinavsuri/anatomy-image-visualization-overview-rsna-raids\" target=\"_blank\">Anatomy &amp; Image Visualization Overview-RSNA RAIDS</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2934902": "Can someone explain to me how the data is structured and how to view the data",
    "2935241": "Take a look at the **Dataset Description** at https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/data if you want details on the data.\n\nIf you are asking how to view/extract the array from individual slices, Pydicom and Matplotlib libraries will help:\n```python\nfrom pathlib import Path\n\nimport matplotlib.pyplot as plt\nfrom pydicom import dcmread\n\n\nINPUT_DIR = Path(\"/kaggle/input/rsna-2024-lumbar-spine-degenerative-classification\")\ndcm = dcmread(INPUT_DIR / \"[train/test]_images/[study_id]/[series_id]/[instance_number].dcm\")\nplt.imshow(dcm..pixel_array, \"gray\")\nplt.show()\n```\nAlso see the notebooks in https://www.kaggle.com/competitions/rsna-2024-lumbar-spine-degenerative-classification/code especially [Anatomy & Image Visualization Overview-RSNA RAIDS](https://www.kaggle.com/code/abhinavsuri/anatomy-image-visualization-overview-rsna-raids)"
  },
  "source": "meta"
}