{
  "id": 278936,
  "title": "What is Run Length Encoding (RLE)?",
  "url": "/competitions/sartorius-cell-instance-segmentation/discussion/278936",
  "author_name": "revathip",
  "post_date": "2021-10-16T01:34:27.439000",
  "votes": 31,
  "comment_count": 8,
  "views": 0,
  "content": "<p>Run-length encoding (RLE) is a form of lossless data compression in which runs of data (sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most efficient on data that contains many such runs, for example, simple graphic images such as icons, line drawings, Conway's Game of Life, and animations. For files that do not have many runs, RLE could increase the file size.</p>\n<p>A simple example applied to a text sequence will look like this</p>\n<p>For example if the sequence is : AACCCBBBBBAAAAFFFFFFFF</p>\n<p>Then, using run-length encoding, we can represent it as A2C3B5A4F8</p>\n<p>The 22 length sequence was compressed to a 10 length sequence.</p>",
  "messages": [
    {
      "id": 1546292,
      "postDate": "2021-10-16T01:34:27.440Z",
      "content": "<p>Run-length encoding (RLE) is a form of lossless data compression in which runs of data (sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most efficient on data that contains many such runs, for example, simple graphic images such as icons, line drawings, Conway's Game of Life, and animations. For files that do not have many runs, RLE could increase the file size.</p>\n<p>A simple example applied to a text sequence will look like this</p>\n<p>For example if the sequence is : AACCCBBBBBAAAAFFFFFFFF</p>\n<p>Then, using run-length encoding, we can represent it as A2C3B5A4F8</p>\n<p>The 22 length sequence was compressed to a 10 length sequence.</p>",
      "rawMarkdown": "Run-length encoding (RLE) is a form of lossless data compression in which runs of data (sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most efficient on data that contains many such runs, for example, simple graphic images such as icons, line drawings, Conway's Game of Life, and animations. For files that do not have many runs, RLE could increase the file size.\n\nA simple example applied to a text sequence will look like this\n\nFor example if the sequence is : AACCCBBBBBAAAAFFFFFFFF\n\nThen, using run-length encoding, we can represent it as A2C3B5A4F8\n\nThe 22 length sequence was compressed to a 10 length sequence.",
      "votes": 31
    },
    {
      "id": 1546416,
      "postDate": "2021-10-16T06:12:00.680Z",
      "content": "<p>An intuitive explanation from <a href=\"https://www.kaggle.com/cdeotte\" target=\"_blank\">@cdeotte</a> </p>\n<p><img src=\"https://user-images.githubusercontent.com/17668390/137576003-a887b201-7cc0-4e22-975f-d7727094d1d0.png\" alt=\"QQ20190801163949\"></p>\n<p>Expressing the pixels above (yellow):</p>\n<blockquote>\n  <p>There are 48 pixels. The top left is numbered 1 then you go down that column until you hit number 8. The top of the next column starts number 9, then down to 16, etc.</p>\n  <p>If walk the pixels from 1 to 48, a line of yellow begins at pixel 11 for length 5, then another begins at 19 for length 5, then another begins at 27 for length 5 and the last begins at 37 for length 3.</p>\n  <p>So the RLE is \"11 5 19 5 27 5 37 3\".</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/c/severstal-steel-defect-detection/discussion/102311\" target=\"_blank\">source</a>. </p>",
      "rawMarkdown": "An intuitive explanation from @cdeotte \n\n![QQ20190801163949](https://user-images.githubusercontent.com/17668390/137576003-a887b201-7cc0-4e22-975f-d7727094d1d0.png)\n\nExpressing the pixels above (yellow):\n\n> There are 48 pixels. The top left is numbered 1 then you go down that column until you hit number 8. The top of the next column starts number 9, then down to 16, etc.\n\n> If walk the pixels from 1 to 48, a line of yellow begins at pixel 11 for length 5, then another begins at 19 for length 5, then another begins at 27 for length 5 and the last begins at 37 for length 3.\n\n> So the RLE is \"11 5 19 5 27 5 37 3\".\n\n[source](https://www.kaggle.com/c/severstal-steel-defect-detection/discussion/102311). \n",
      "votes": 23
    },
    {
      "id": 1547146,
      "postDate": "2021-10-16T18:31:32.203Z",
      "content": "<p>Quick question, the pixel indexing starts from 0 or 1 in the given run-length encoding?</p>",
      "rawMarkdown": "Quick question, the pixel indexing starts from 0 or 1 in the given run-length encoding?",
      "votes": 1,
      "replies": [
        {
          "id": 1625972,
          "postDate": "2021-12-22T11:05:41.333Z",
          "content": "<p>As example below, it is beginning by 1</p>",
          "rawMarkdown": "As example below, it is beginning by 1"
        }
      ]
    },
    {
      "id": 1633526,
      "postDate": "2021-12-30T21:30:51.763Z",
      "content": "<p>Annotations are having a digit after a set of 5 or 6 digit sequence. How to interpret this, as in run length coding we have data,number of data format. Also is cell label to be predicted. How many labels are there in the given training dataset ?</p>",
      "rawMarkdown": "Annotations are having a digit after a set of 5 or 6 digit sequence. How to interpret this, as in run length coding we have data,number of data format. Also is cell label to be predicted. How many labels are there in the given training dataset ?"
    },
    {
      "id": 1565655,
      "postDate": "2021-10-30T19:56:17.137Z",
      "content": "<p><a href=\"https://www.kaggle.com/reinheart\" target=\"_blank\">@reinheart</a> please could you show that the index starts from 1 or 0 in the RLE form?</p>",
      "rawMarkdown": "@reinheart please could you show that the index starts from 1 or 0 in the RLE form?"
    },
    {
      "id": 1546718,
      "postDate": "2021-10-16T13:03:28.637Z",
      "content": "<p>check this out <br>\n<a href=\"https://www.kaggle.com/bhargav6031/run-length-decoding-function-beginners\" target=\"_blank\">https://www.kaggle.com/bhargav6031/run-length-decoding-function-beginners</a></p>",
      "rawMarkdown": "check this out \nhttps://www.kaggle.com/bhargav6031/run-length-decoding-function-beginners"
    },
    {
      "id": 1546414,
      "postDate": "2021-10-16T06:11:50.537Z",
      "rawMarkdown": "",
      "votes": 1,
      "isDeleted": true
    },
    {
      "id": 1546311,
      "postDate": "2021-10-16T02:35:17.457Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 1546416,
      "author_name": "Innat",
      "author_url": "",
      "post_date": "2021-10-16T06:12:00.680000",
      "content": "<p>An intuitive explanation from <a href=\"https://www.kaggle.com/cdeotte\" target=\"_blank\">@cdeotte</a> </p>\n<p><img src=\"https://user-images.githubusercontent.com/17668390/137576003-a887b201-7cc0-4e22-975f-d7727094d1d0.png\" alt=\"QQ20190801163949\"></p>\n<p>Expressing the pixels above (yellow):</p>\n<blockquote>\n  <p>There are 48 pixels. The top left is numbered 1 then you go down that column until you hit number 8. The top of the next column starts number 9, then down to 16, etc.</p>\n  <p>If walk the pixels from 1 to 48, a line of yellow begins at pixel 11 for length 5, then another begins at 19 for length 5, then another begins at 27 for length 5 and the last begins at 37 for length 3.</p>\n  <p>So the RLE is \"11 5 19 5 27 5 37 3\".</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/c/severstal-steel-defect-detection/discussion/102311\" target=\"_blank\">source</a>. </p>",
      "votes": 23,
      "replies": []
    },
    {
      "id": 1547146,
      "author_name": "Jawher Ben Abdallah",
      "author_url": "",
      "post_date": "2021-10-16T18:31:32.203000",
      "content": "<p>Quick question, the pixel indexing starts from 0 or 1 in the given run-length encoding?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1625972,
          "author_name": "Tan Phan",
          "author_url": "",
          "post_date": "2021-12-22T11:05:41.333000",
          "content": "<p>As example below, it is beginning by 1</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1633526,
      "author_name": "bogi vinay kumar",
      "author_url": "",
      "post_date": "2021-12-30T21:30:51.763000",
      "content": "<p>Annotations are having a digit after a set of 5 or 6 digit sequence. How to interpret this, as in run length coding we have data,number of data format. Also is cell label to be predicted. How many labels are there in the given training dataset ?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1565655,
      "author_name": "Steven Wong",
      "author_url": "",
      "post_date": "2021-10-30T19:56:17.137000",
      "content": "<p><a href=\"https://www.kaggle.com/reinheart\" target=\"_blank\">@reinheart</a> please could you show that the index starts from 1 or 0 in the RLE form?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1546718,
      "author_name": "Bhargav6031",
      "author_url": "",
      "post_date": "2021-10-16T13:03:28.637000",
      "content": "<p>check this out <br>\n<a href=\"https://www.kaggle.com/bhargav6031/run-length-decoding-function-beginners\" target=\"_blank\">https://www.kaggle.com/bhargav6031/run-length-decoding-function-beginners</a></p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1546414,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-10-16T06:11:50.537000",
      "content": "",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1546311,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-10-16T02:35:17.457000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1546292": "Run-length encoding (RLE) is a form of lossless data compression in which runs of data (sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most efficient on data that contains many such runs, for example, simple graphic images such as icons, line drawings, Conway's Game of Life, and animations. For files that do not have many runs, RLE could increase the file size.\n\nA simple example applied to a text sequence will look like this\n\nFor example if the sequence is : AACCCBBBBBAAAAFFFFFFFF\n\nThen, using run-length encoding, we can represent it as A2C3B5A4F8\n\nThe 22 length sequence was compressed to a 10 length sequence.",
    "1546416": "An intuitive explanation from @cdeotte \n\n![QQ20190801163949](https://user-images.githubusercontent.com/17668390/137576003-a887b201-7cc0-4e22-975f-d7727094d1d0.png)\n\nExpressing the pixels above (yellow):\n\n> There are 48 pixels. The top left is numbered 1 then you go down that column until you hit number 8. The top of the next column starts number 9, then down to 16, etc.\n\n> If walk the pixels from 1 to 48, a line of yellow begins at pixel 11 for length 5, then another begins at 19 for length 5, then another begins at 27 for length 5 and the last begins at 37 for length 3.\n\n> So the RLE is \"11 5 19 5 27 5 37 3\".\n\n[source](https://www.kaggle.com/c/severstal-steel-defect-detection/discussion/102311). \n",
    "1547146": "Quick question, the pixel indexing starts from 0 or 1 in the given run-length encoding?",
    "1633526": "Annotations are having a digit after a set of 5 or 6 digit sequence. How to interpret this, as in run length coding we have data,number of data format. Also is cell label to be predicted. How many labels are there in the given training dataset ?",
    "1565655": "@reinheart please could you show that the index starts from 1 or 0 in the RLE form?",
    "1546718": "check this out \nhttps://www.kaggle.com/bhargav6031/run-length-decoding-function-beginners",
    "1546414": "",
    "1546311": ""
  }
}