{
  "id": 350792,
  "title": "load JPEG Lossless images with SimpleITK",
  "url": "/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/350792",
  "author_name": "Mersot_C",
  "post_date": "2022-09-07T04:50:24.770000",
  "votes": 5,
  "comment_count": 1,
  "views": 0,
  "content": "<p>With pydicom, we can not convert dicom files to numpy arrays with the meta informatin \"JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])\" .So we just ignore these pictures…<br>\nHowever,SimpleITK could handle these pictures.</p>\n<p><code>img=sitk.ReadImage(path)</code><br>\n<code>data=sitk.GetArrayFromImage(img)</code></p>\n<p>see the notebook:<a href=\"https://www.kaggle.com/code/mersotc/load-jpeg-lossless-images-with-simpleitk\" target=\"_blank\">https://www.kaggle.com/code/mersotc/load-jpeg-lossless-images-with-simpleitk</a></p>",
  "messages": [
    {
      "id": 1929463,
      "postDate": "2022-09-07T04:50:24.770Z",
      "content": "<p>With pydicom, we can not convert dicom files to numpy arrays with the meta informatin \"JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])\" .So we just ignore these pictures…<br>\nHowever,SimpleITK could handle these pictures.</p>\n<p><code>img=sitk.ReadImage(path)</code><br>\n<code>data=sitk.GetArrayFromImage(img)</code></p>\n<p>see the notebook:<a href=\"https://www.kaggle.com/code/mersotc/load-jpeg-lossless-images-with-simpleitk\" target=\"_blank\">https://www.kaggle.com/code/mersotc/load-jpeg-lossless-images-with-simpleitk</a></p>",
      "rawMarkdown": "With pydicom, we can not convert dicom files to numpy arrays with the meta informatin \"JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])\" .So we just ignore these pictures...\nHowever,SimpleITK could handle these pictures.\n\n` img=sitk.ReadImage(path)`\n` data=sitk.GetArrayFromImage(img)`\n\nsee the notebook:https://www.kaggle.com/code/mersotc/load-jpeg-lossless-images-with-simpleitk",
      "votes": 5
    },
    {
      "id": 1939551,
      "postDate": "2022-09-14T19:30:30.070Z",
      "content": "<p>How many images in the training set have this issue?</p>",
      "rawMarkdown": "How many images in the training set have this issue?\n",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 1939551,
      "author_name": "SolverWorld",
      "author_url": "",
      "post_date": "2022-09-14T19:30:30.070000",
      "content": "<p>How many images in the training set have this issue?</p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1929463": "With pydicom, we can not convert dicom files to numpy arrays with the meta informatin \"JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])\" .So we just ignore these pictures...\nHowever,SimpleITK could handle these pictures.\n\n` img=sitk.ReadImage(path)`\n` data=sitk.GetArrayFromImage(img)`\n\nsee the notebook:https://www.kaggle.com/code/mersotc/load-jpeg-lossless-images-with-simpleitk",
    "1939551": "How many images in the training set have this issue?\n"
  }
}