{
  "id": 369592,
  "title": "Notebook to pad images to square",
  "url": "/competitions/rsna-breast-cancer-detection/discussion/369592",
  "author_name": "David Roberts",
  "post_date": "2022-11-30T15:50:42.957000",
  "votes": 7,
  "comment_count": 1,
  "views": 0,
  "content": "<p>I've noticed a few public datasets with images that are stretched to be square which distorts the anatomy.</p>\n<p>I wanted to share a method to determine which side of a mammography image to pad, and then to pad without distortion. There are other methods, but this is a pretty simple one.</p>\n<p>Notebook-&gt; <a href=\"https://www.kaggle.com/code/davidbroberts/mammography-pad-to-square\" target=\"_blank\">https://www.kaggle.com/code/davidbroberts/mammography-pad-to-square</a></p>",
  "messages": [
    {
      "id": 2050241,
      "postDate": "2022-11-30T15:50:42.957Z",
      "content": "<p>I've noticed a few public datasets with images that are stretched to be square which distorts the anatomy.</p>\n<p>I wanted to share a method to determine which side of a mammography image to pad, and then to pad without distortion. There are other methods, but this is a pretty simple one.</p>\n<p>Notebook-&gt; <a href=\"https://www.kaggle.com/code/davidbroberts/mammography-pad-to-square\" target=\"_blank\">https://www.kaggle.com/code/davidbroberts/mammography-pad-to-square</a></p>",
      "rawMarkdown": "I've noticed a few public datasets with images that are stretched to be square which distorts the anatomy.\n\nI wanted to share a method to determine which side of a mammography image to pad, and then to pad without distortion. There are other methods, but this is a pretty simple one.\n\nNotebook-> https://www.kaggle.com/code/davidbroberts/mammography-pad-to-square",
      "votes": 6
    },
    {
      "id": 2051148,
      "postDate": "2022-12-01T08:48:42.380Z",
      "content": "<p>Looks great! 🙌 Would be also very useful to find a way to extract just the part of the image that has information, there is a lot of blank pace there where a lot of compute is being wasted during model training 🤔</p>",
      "rawMarkdown": "Looks great! 🙌 Would be also very useful to find a way to extract just the part of the image that has information, there is a lot of blank pace there where a lot of compute is being wasted during model training 🤔",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 2051148,
      "author_name": "Radek Osmulski",
      "author_url": "",
      "post_date": "2022-12-01T08:48:42.380000",
      "content": "<p>Looks great! 🙌 Would be also very useful to find a way to extract just the part of the image that has information, there is a lot of blank pace there where a lot of compute is being wasted during model training 🤔</p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2050241": "I've noticed a few public datasets with images that are stretched to be square which distorts the anatomy.\n\nI wanted to share a method to determine which side of a mammography image to pad, and then to pad without distortion. There are other methods, but this is a pretty simple one.\n\nNotebook-> https://www.kaggle.com/code/davidbroberts/mammography-pad-to-square",
    "2051148": "Looks great! 🙌 Would be also very useful to find a way to extract just the part of the image that has information, there is a lot of blank pace there where a lot of compute is being wasted during model training 🤔"
  }
}