{"id":58,"date":"2005-03-23T20:25:37","date_gmt":"2005-03-24T03:25:37","guid":{"rendered":"\/?p=58"},"modified":"2006-05-06T08:48:31","modified_gmt":"2006-05-06T15:48:31","slug":"video-coding-concepts-mean-removal","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/","title":{"rendered":"Video Coding Concepts: Mean Removal"},"content":{"rendered":"<p><em>This article is now maintained as a Wiki page at <a href=\"http:\/\/wiki.multimedia.cx\/index.php?title=Mean_Removal\">http:\/\/wiki.multimedia.cx\/index.php?title=Mean_Removal<\/a>.<\/em><\/p>\n<p>Mean removal is another one of those concepts&#8211; <a href=\"http:\/\/multimedia.cx\/eggs\/index.php?p=50\">like differential coding<\/a>&#8212; that sounds like it would be difficult to understand. It&#8217;s not.<\/p>\n<p><!--more--><\/p>\n<p>What is a mean? It&#8217;s an average. It&#8217;s the sum of n items divided by n. Not difficult. Removal in this context is just mathematical subtraction. To remove a mean from, say, a vector of numbers, sum the numbers, divide the sum by the number of elements in the vector, and subtract that number from each element in the vector. An example vector:<\/p>\n<pre>\r\n17 24 18 16\r\n11 25 20 17\r\n12 20 22 19\r\n15 19 23 21\r\n<\/pre>\n<p>Add the elements and divide by the number of elements to obtain the vector mean:<\/p>\n<p>(17 + 24 + 18 + 16 + 11 + 25 + 20 + 17 + 12 + 20 + 22 + 19 + 15 + 19 + 23 + 21) \/ 16 = 299 \/ 16 = 18<\/p>\n<p>For the mean removal part, subtract the mean of 18 from each element in the vector:<\/p>\n<pre>\r\n-1  6  0 -2\r\n-7  7  2 -1\r\n-6  2  4  1\r\n-3  1  5  3\r\n<\/pre>\n<p>This is the mean-removed vector. Just as with differential coding, the primary purpose is to make the numbers small. From here, the video codec needs to figure out efficient ways to transmit the mean-removed vector (also called the residual) as well as the vector mean. Encoding the residual will often result in information loss. However, the most significant number is the mean of the whole vector which should be transmitted losslessly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to remove a mean<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,16],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-codec-technology","category-video-codecs"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"How to remove a mean\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Multimedia Mike\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Breaking Eggs And Making Omelettes | Topics On Multimedia Technology and Reverse Engineering\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes\" \/>\n\t\t<meta property=\"og:description\" content=\"How to remove a mean\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2005-03-24T03:25:37+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2006-05-06T15:48:31+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes\" \/>\n\t\t<meta name=\"twitter:description\" content=\"How to remove a mean\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#article\",\"name\":\"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes\",\"headline\":\"Video Coding Concepts: Mean Removal\",\"author\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/author\\\/multimedia-mike\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/#organization\"},\"datePublished\":\"2005-03-23T20:25:37-08:00\",\"dateModified\":\"2006-05-06T08:48:31-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#webpage\"},\"articleSection\":\"Codec Technology, Video Codecs\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/multimedia.cx\\\/eggs\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/category\\\/codec-technology\\\/#listItem\",\"name\":\"Codec Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/category\\\/codec-technology\\\/#listItem\",\"position\":2,\"name\":\"Codec Technology\",\"item\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/category\\\/codec-technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/category\\\/codec-technology\\\/video-codecs\\\/#listItem\",\"name\":\"Video Codecs\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/category\\\/codec-technology\\\/video-codecs\\\/#listItem\",\"position\":3,\"name\":\"Video Codecs\",\"item\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/category\\\/codec-technology\\\/video-codecs\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#listItem\",\"name\":\"Video Coding Concepts: Mean Removal\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/category\\\/codec-technology\\\/#listItem\",\"name\":\"Codec Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#listItem\",\"position\":4,\"name\":\"Video Coding Concepts: Mean Removal\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/category\\\/codec-technology\\\/video-codecs\\\/#listItem\",\"name\":\"Video Codecs\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/#organization\",\"name\":\"Breaking Eggs And Making Omelettes\",\"description\":\"Topics On Multimedia Technology and Reverse Engineering\",\"url\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/author\\\/multimedia-mike\\\/#author\",\"url\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/author\\\/multimedia-mike\\\/\",\"name\":\"Multimedia Mike\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2eb93f7cada658f7986b5092062849fa255779eada3342c8f6b9a40764b95fdd?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Multimedia Mike\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#webpage\",\"url\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/\",\"name\":\"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes\",\"description\":\"How to remove a mean\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/video-coding-concepts-mean-removal\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/author\\\/multimedia-mike\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/author\\\/multimedia-mike\\\/#author\"},\"datePublished\":\"2005-03-23T20:25:37-08:00\",\"dateModified\":\"2006-05-06T08:48:31-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/#website\",\"url\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/\",\"name\":\"Breaking Eggs And Making Omelettes\",\"description\":\"Topics On Multimedia Technology and Reverse Engineering\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/multimedia.cx\\\/eggs\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes","description":"How to remove a mean","canonical_url":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#article","name":"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes","headline":"Video Coding Concepts: Mean Removal","author":{"@id":"https:\/\/multimedia.cx\/eggs\/author\/multimedia-mike\/#author"},"publisher":{"@id":"https:\/\/multimedia.cx\/eggs\/#organization"},"datePublished":"2005-03-23T20:25:37-08:00","dateModified":"2006-05-06T08:48:31-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#webpage"},"isPartOf":{"@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#webpage"},"articleSection":"Codec Technology, Video Codecs"},{"@type":"BreadcrumbList","@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs#listItem","position":1,"name":"Home","item":"https:\/\/multimedia.cx\/eggs","nextItem":{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/#listItem","name":"Codec Technology"}},{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/#listItem","position":2,"name":"Codec Technology","item":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/video-codecs\/#listItem","name":"Video Codecs"},"previousItem":{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/video-codecs\/#listItem","position":3,"name":"Video Codecs","item":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/video-codecs\/","nextItem":{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#listItem","name":"Video Coding Concepts: Mean Removal"},"previousItem":{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/#listItem","name":"Codec Technology"}},{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#listItem","position":4,"name":"Video Coding Concepts: Mean Removal","previousItem":{"@type":"ListItem","@id":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/video-codecs\/#listItem","name":"Video Codecs"}}]},{"@type":"Organization","@id":"https:\/\/multimedia.cx\/eggs\/#organization","name":"Breaking Eggs And Making Omelettes","description":"Topics On Multimedia Technology and Reverse Engineering","url":"https:\/\/multimedia.cx\/eggs\/"},{"@type":"Person","@id":"https:\/\/multimedia.cx\/eggs\/author\/multimedia-mike\/#author","url":"https:\/\/multimedia.cx\/eggs\/author\/multimedia-mike\/","name":"Multimedia Mike","image":{"@type":"ImageObject","@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/2eb93f7cada658f7986b5092062849fa255779eada3342c8f6b9a40764b95fdd?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Multimedia Mike"}},{"@type":"WebPage","@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#webpage","url":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/","name":"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes","description":"How to remove a mean","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/multimedia.cx\/eggs\/#website"},"breadcrumb":{"@id":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/#breadcrumblist"},"author":{"@id":"https:\/\/multimedia.cx\/eggs\/author\/multimedia-mike\/#author"},"creator":{"@id":"https:\/\/multimedia.cx\/eggs\/author\/multimedia-mike\/#author"},"datePublished":"2005-03-23T20:25:37-08:00","dateModified":"2006-05-06T08:48:31-07:00"},{"@type":"WebSite","@id":"https:\/\/multimedia.cx\/eggs\/#website","url":"https:\/\/multimedia.cx\/eggs\/","name":"Breaking Eggs And Making Omelettes","description":"Topics On Multimedia Technology and Reverse Engineering","inLanguage":"en-US","publisher":{"@id":"https:\/\/multimedia.cx\/eggs\/#organization"}}]},"og:locale":"en_US","og:site_name":"Breaking Eggs And Making Omelettes | Topics On Multimedia Technology and Reverse Engineering","og:type":"article","og:title":"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes","og:description":"How to remove a mean","og:url":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/","article:published_time":"2005-03-24T03:25:37+00:00","article:modified_time":"2006-05-06T15:48:31+00:00","twitter:card":"summary","twitter:title":"Video Coding Concepts: Mean Removal | Breaking Eggs And Making Omelettes","twitter:description":"How to remove a mean"},"aioseo_meta_data":{"post_id":"58","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-31 21:43:31","updated":"2025-12-31 18:12:04","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/multimedia.cx\/eggs\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/\" title=\"Codec Technology\">Codec Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/video-codecs\/\" title=\"Video Codecs\">Video Codecs<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tVideo Coding Concepts: Mean Removal\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/multimedia.cx\/eggs"},{"label":"Codec Technology","link":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/"},{"label":"Video Codecs","link":"https:\/\/multimedia.cx\/eggs\/category\/codec-technology\/video-codecs\/"},{"label":"Video Coding Concepts: Mean Removal","link":"https:\/\/multimedia.cx\/eggs\/video-coding-concepts-mean-removal\/"}],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":0,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}