https://wiki.multimedia.cx/api.php?action=feedcontributions&user=Xd7Au2&feedformat=atomMultimediaWiki - User contributions [en]2022-09-27T04:52:56ZUser contributionsMediaWiki 1.37.2https://wiki.multimedia.cx/index.php?title=Mean_Removal&diff=7645Mean Removal2007-04-11T02:50:41Z<p>Xd7Au2: </p>
<hr />
<div>Mean removal is another one of those concepts -- like [[Differential Coding|differential coding]] -- that sounds like it would be difficult to understand. It’s not.<br />
__TOC__<br />
== Theory ==<br />
What is a mean? It’s an average. It’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:<br />
<br />
17 24 18 16<br />
11 25 20 17<br />
12 20 22 19<br />
15 19 23 21<br />
<br />
Add the elements and divide by the number of elements to obtain the vector mean (only use the integer portion of the quotient, i.e., round towards 0):<br />
<br />
(17 24 18 16 11 25 20 17 12 20 22 19 15 19 23 21) / 16 = 299 / 16 = 18<br />
<br />
For the mean removal part, subtract the mean of 18 from each element in the vector:<br />
<br />
-1 6 0 -2<br />
-7 7 2 -1<br />
-6 2 4 1<br />
-3 1 5 3<br />
<br />
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.<br />
<br />
== What A Multimedia Hacker Needs To Know ==<br />
Mean removal seems to be pretty rare in production video codecs. One known codec that employs the technique is [[Sorenson Video 1]].<br />
<br />
[[Category:Compression Theory]]</div>Xd7Au2