{
  "id": 207757,
  "title": "dicom to png warning",
  "url": "/competitions/vinbigdata-chest-xray-abnormalities-detection/discussion/207757",
  "author_name": "Awsaf",
  "post_date": "2020-12-31T06:12:58.373000",
  "votes": 6,
  "comment_count": 3,
  "views": 0,
  "content": "<blockquote>\n  <p>/opt/conda/lib/python3.7/site-packages/pydicom/pixel_data_handlers/pillow_handler.py:177: UserWarning: The (0028,0101) 'Bits Stored' value (14-bit) doesn't match the JPEG 2000 data (16-bit). It's recommended that you change the 'Bits Stored' value</p>\n</blockquote>\n<p>Any solution to this warning?</p>",
  "messages": [
    {
      "id": 1133441,
      "postDate": "2020-12-31T08:11:39.073Z",
      "content": "<p>You can simply ignore this, it's just a warning that data type stored does not conform DICOM standard. Other than that it's ok</p>",
      "rawMarkdown": "You can simply ignore this, it's just a warning that data type stored does not conform DICOM standard. Other than that it's ok",
      "votes": 6,
      "replies": [
        {
          "id": 1133447,
          "postDate": "2020-12-31T08:18:32.333Z",
          "content": "<p>thanks <a href=\"https://www.kaggle.com/raddar\" target=\"_blank\">@raddar</a> </p>",
          "rawMarkdown": "thanks @raddar "
        }
      ]
    },
    {
      "id": 1133350,
      "postDate": "2020-12-31T06:12:58.373Z",
      "content": "<blockquote>\n  <p>/opt/conda/lib/python3.7/site-packages/pydicom/pixel_data_handlers/pillow_handler.py:177: UserWarning: The (0028,0101) 'Bits Stored' value (14-bit) doesn't match the JPEG 2000 data (16-bit). It's recommended that you change the 'Bits Stored' value</p>\n</blockquote>\n<p>Any solution to this warning?</p>",
      "rawMarkdown": ">/opt/conda/lib/python3.7/site-packages/pydicom/pixel_data_handlers/pillow_handler.py:177: UserWarning: The (0028,0101) 'Bits Stored' value (14-bit) doesn't match the JPEG 2000 data (16-bit). It's recommended that you change the 'Bits Stored' value\n\nAny solution to this warning?",
      "votes": 6
    },
    {
      "id": 1153410,
      "postDate": "2021-01-14T21:39:53.663Z",
      "content": "<p>Changing the 'Bits Stored' value to 16-bit will stop the warnings, however I don't know whether this will cause unintended side effects:</p>\n<pre><code>elem = dicom_file[0x0028, 0x0101]\nelem.value = 16\n</code></pre>",
      "rawMarkdown": "Changing the 'Bits Stored' value to 16-bit will stop the warnings, however I don't know whether this will cause unintended side effects:\n\n    elem = dicom_file[0x0028, 0x0101]\n    elem.value = 16\n",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 1133441,
      "author_name": "raddar",
      "author_url": "",
      "post_date": "2020-12-31T08:11:39.073000",
      "content": "<p>You can simply ignore this, it's just a warning that data type stored does not conform DICOM standard. Other than that it's ok</p>",
      "votes": 6,
      "replies": [
        {
          "id": 1133447,
          "author_name": "Awsaf",
          "author_url": "",
          "post_date": "2020-12-31T08:18:32.333000",
          "content": "<p>thanks <a href=\"https://www.kaggle.com/raddar\" target=\"_blank\">@raddar</a> </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1153410,
      "author_name": "Anthony Mulcahy",
      "author_url": "",
      "post_date": "2021-01-14T21:39:53.663000",
      "content": "<p>Changing the 'Bits Stored' value to 16-bit will stop the warnings, however I don't know whether this will cause unintended side effects:</p>\n<pre><code>elem = dicom_file[0x0028, 0x0101]\nelem.value = 16\n</code></pre>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1133441": "You can simply ignore this, it's just a warning that data type stored does not conform DICOM standard. Other than that it's ok",
    "1133350": ">/opt/conda/lib/python3.7/site-packages/pydicom/pixel_data_handlers/pillow_handler.py:177: UserWarning: The (0028,0101) 'Bits Stored' value (14-bit) doesn't match the JPEG 2000 data (16-bit). It's recommended that you change the 'Bits Stored' value\n\nAny solution to this warning?",
    "1153410": "Changing the 'Bits Stored' value to 16-bit will stop the warnings, however I don't know whether this will cause unintended side effects:\n\n    elem = dicom_file[0x0028, 0x0101]\n    elem.value = 16\n"
  }
}