<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tracking | Étienne Peillard</title><link>https://www.etiennepeillard.com/tag/tracking/</link><atom:link href="https://www.etiennepeillard.com/tag/tracking/index.xml" rel="self" type="application/rss+xml"/><description>Tracking</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><image><url>https://www.etiennepeillard.com/media/sharing.png</url><title>Tracking</title><link>https://www.etiennepeillard.com/tag/tracking/</link></image><item><title>Course — Tracking in mixed reality</title><link>https://www.etiennepeillard.com/slides/tracking-for-xr/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.etiennepeillard.com/slides/tracking-for-xr/</guid><description>&lt;h1 id="tracking-in-mixed-reality">Tracking in Mixed Reality&lt;/h1>
&lt;h3 id="from-cameras-to-robust-visual-tracking">From Cameras to Robust Visual Tracking&lt;/h3>
&lt;p>&lt;strong>Étienne Peillard – IMT Atlantique&lt;/strong>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image_hu657c80607dcafc9239866240ac93961f_2088632_bba09c0bf0dd64793df9611737e73e2d.webp 400w,
/slides/tracking-for-xr/image_hu657c80607dcafc9239866240ac93961f_2088632_22b59958a943684254f2a7765d0621a8.webp 760w,
/slides/tracking-for-xr/image_hu657c80607dcafc9239866240ac93961f_2088632_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image_hu657c80607dcafc9239866240ac93961f_2088632_bba09c0bf0dd64793df9611737e73e2d.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="-course-objectives">🎯 Course Objectives&lt;/h2>
&lt;p>By the end of this lecture, you should be able to:&lt;/p>
&lt;ul>
&lt;li>Explain what &lt;strong>tracking&lt;/strong> means in Mixed Reality&lt;/li>
&lt;li>Understand how cameras form digital images&lt;/li>
&lt;li>Connect image processing to feature detection&lt;/li>
&lt;li>Understand how features enable 6DoF tracking&lt;/li>
&lt;li>See the link with the practical lab (feature detection for tracking)&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h1 id="part-a--why-tracking-in-mixed-reality">PART A — Why Tracking in Mixed Reality?&lt;/h1>
&lt;hr>
&lt;h2 id="what-is-tracking-in-mixed-reality">What is Tracking in Mixed Reality?&lt;/h2>
&lt;p>Tracking = continuous estimation of &lt;strong>pose&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>Position (x, y, z)&lt;/li>
&lt;li>Orientation (roll, pitch, yaw)&lt;/li>
&lt;/ul>
&lt;p>This applies to:&lt;/p>
&lt;ul>
&lt;li>The &lt;strong>camera/headset&lt;/strong>&lt;/li>
&lt;li>The &lt;strong>user’s body&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Objects&lt;/strong> in the environment&lt;/li>
&lt;li>Sometimes the &lt;strong>entire scene (SLAM)&lt;/strong>&lt;/li>
&lt;/ul>
&lt;!-- ILLUSTRATION: 6DoF pose visualization (axes + rotation) -->
&lt;hr>
&lt;h2 id="why-is-tracking-critical-in-mr">Why is Tracking Critical in MR?&lt;/h2>
&lt;p>Because MR requires &lt;strong>spatial alignment&lt;/strong> between:&lt;/p>
&lt;ul>
&lt;li>The real world (captured by sensors)&lt;/li>
&lt;li>The virtual world (rendered by the engine)&lt;/li>
&lt;/ul>
&lt;p>If tracking is wrong:&lt;/p>
&lt;ul>
&lt;li>Virtual objects drift&lt;/li>
&lt;li>Registration breaks&lt;/li>
&lt;li>The experience feels “fake” or unstable&lt;/li>
&lt;/ul>
&lt;!-- ILLUSTRATION: misaligned virtual object vs correctly aligned one -->
&lt;hr>
&lt;h2 id="the-registration-problem">The Registration Problem&lt;/h2>
&lt;p>Core question:&lt;/p>
&lt;blockquote>
&lt;p>Given an image from a moving camera, how do we estimate its 6DoF pose in the real world?&lt;/p>
&lt;/blockquote>
&lt;p>Conceptual pipeline:&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-1_hud7404c4a0de520c1916d1bf548343208_645972_15728914e37f7b475e8c7e28efd9d992.webp 400w,
/slides/tracking-for-xr/image-1_hud7404c4a0de520c1916d1bf548343208_645972_5ebc9a3a3b8cd7f10f57f10c8512a798.webp 760w,
/slides/tracking-for-xr/image-1_hud7404c4a0de520c1916d1bf548343208_645972_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-1_hud7404c4a0de520c1916d1bf548343208_645972_15728914e37f7b475e8c7e28efd9d992.webp"
width="760"
height="266"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="three-families-of-tracking-in-xr">Three Families of Tracking in XR&lt;/h2>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-2_huefa86478be04d1bd2f11c52245bfe6f5_1599205_95b8442883e42ef981f6011dce9234f8.webp 400w,
/slides/tracking-for-xr/image-2_huefa86478be04d1bd2f11c52245bfe6f5_1599205_b91e05387fb9fa90bd7f5d9d0a3de5c8.webp 760w,
/slides/tracking-for-xr/image-2_huefa86478be04d1bd2f11c52245bfe6f5_1599205_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-2_huefa86478be04d1bd2f11c52245bfe6f5_1599205_95b8442883e42ef981f6011dce9234f8.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="tracking-and-latency">Tracking and Latency&lt;/h2>
&lt;p>Good tracking must be:&lt;/p>
&lt;ul>
&lt;li>Accurate&lt;/li>
&lt;li>Low-latency&lt;/li>
&lt;li>Robust to occlusion&lt;/li>
&lt;li>Stable over time&lt;/li>
&lt;/ul>
&lt;p>Why? Because MR rendering depends on it in real time.&lt;/p>
&lt;!-- ILLUSTRATION: latency pipeline from sensor to render -->
&lt;hr>
&lt;h1 id="part-b--from-camera-to-digital-image">PART B — From Camera to Digital Image&lt;/h1>
&lt;hr>
&lt;h2 id="cameras-as-sensors-in-xr">Cameras as Sensors in XR&lt;/h2>
&lt;p>A camera is a physical sensor that:&lt;/p>
&lt;ul>
&lt;li>Captures light from the environment&lt;/li>
&lt;li>Converts it into a digital image&lt;/li>
&lt;li>Introduces limitations that affect tracking&lt;/li>
&lt;/ul>
&lt;p>Key issues:&lt;/p>
&lt;ul>
&lt;li>Discretization&lt;/li>
&lt;li>Aliasing&lt;/li>
&lt;li>Noise&lt;/li>
&lt;li>Limited dynamic range&lt;/li>
&lt;/ul>
&lt;!-- ILLUSTRATION: pinhole camera diagram + pixel grid -->
&lt;hr>
&lt;h2 id="discretization-of-images">Discretization of Images&lt;/h2>
&lt;p>The real world is continuous.&lt;br>
A digital image is &lt;strong>sampled on a grid of pixels&lt;/strong>.&lt;/p>
&lt;p>This creates:&lt;/p>
&lt;ul>
&lt;li>Loss of detail&lt;/li>
&lt;li>Potential aliasing&lt;/li>
&lt;li>Dependence on resolution&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-4_hue1583c921f588d4fec2b13b4c0664d2e_893837_0b952a856c728f5e50a6b18c49552330.webp 400w,
/slides/tracking-for-xr/image-4_hue1583c921f588d4fec2b13b4c0664d2e_893837_f450d5fd7409a9afebf221ec787eb318.webp 760w,
/slides/tracking-for-xr/image-4_hue1583c921f588d4fec2b13b4c0664d2e_893837_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-4_hue1583c921f588d4fec2b13b4c0664d2e_893837_0b952a856c728f5e50a6b18c49552330.webp"
width="760"
height="222"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h3 id="interpolation">Interpolation&lt;/h3>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-3_hue9bd438842195196530f7360e983aaf5_85187_f38899486762f901d0c69e163dfe304e.webp 400w,
/slides/tracking-for-xr/image-3_hue9bd438842195196530f7360e983aaf5_85187_454e64510a0b2021718835ad170cb09d.webp 760w,
/slides/tracking-for-xr/image-3_hue9bd438842195196530f7360e983aaf5_85187_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-3_hue9bd438842195196530f7360e983aaf5_85187_f38899486762f901d0c69e163dfe304e.webp"
width="760"
height="226"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="aliasing-and-moiré">Aliasing and Moiré&lt;/h2>
&lt;p>If sampling is too coarse:&lt;/p>
&lt;ul>
&lt;li>High-frequency patterns create artifacts (moiré)&lt;/li>
&lt;li>Edges look jagged (aliasing)&lt;/li>
&lt;/ul>
&lt;p>This matters for tracking:&lt;/p>
&lt;ul>
&lt;li>Artifacts can confuse feature detectors&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="aliasing">Aliasing&lt;/h3>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-6_hu05dee16ec3e6bfba1728dd2fe542cb2e_1549695_758596f852c1bdccbdcdddc24206ce0c.webp 400w,
/slides/tracking-for-xr/image-6_hu05dee16ec3e6bfba1728dd2fe542cb2e_1549695_2fd6c60c856af75a95a48944b42c9324.webp 760w,
/slides/tracking-for-xr/image-6_hu05dee16ec3e6bfba1728dd2fe542cb2e_1549695_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-6_hu05dee16ec3e6bfba1728dd2fe542cb2e_1549695_758596f852c1bdccbdcdddc24206ce0c.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h3 id="moiré">Moiré&lt;/h3>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-5_hucf154de5a2869db60081862a9b5ffdf0_670909_37468ae921139edeabac1e247a933111.webp 400w,
/slides/tracking-for-xr/image-5_hucf154de5a2869db60081862a9b5ffdf0_670909_192ef8db0565c10884251fa592ae7f52.webp 760w,
/slides/tracking-for-xr/image-5_hucf154de5a2869db60081862a9b5ffdf0_670909_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-5_hucf154de5a2869db60081862a9b5ffdf0_670909_37468ae921139edeabac1e247a933111.webp"
width="760"
height="458"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;a href="../../moire/index.html">Demo: effect of downsampling on camera&lt;/a>&lt;/p>
&lt;hr>
&lt;h2 id="nyquistshannon-theorem">Nyquist–Shannon Theorem&lt;/h2>
&lt;p>To properly sample a signal:
Sampling frequency ≥ 2 × highest frequency in the signal&lt;/p>
&lt;p>If violated → aliasing appears.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/Image1.gif"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;section data-noprocess data-shortcode-slide
class="img-right"
>
&lt;h2 id="color-quantization">Color Quantization&lt;/h2>
&lt;p>Real light is continuous.&lt;br>
Digital images use a &lt;strong>finite number of values&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>Typically 8-bit per channel (0–255)&lt;/li>
&lt;li>RGB representation&lt;/li>
&lt;/ul>
&lt;p>This limits precision in low-light conditions.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-7_hu45500e1b474c536d6ba0f3539e3c6b65_65082_4e0bc2f5a693fe621095adac0ba2fa75.webp 400w,
/slides/tracking-for-xr/image-7_hu45500e1b474c536d6ba0f3539e3c6b65_65082_ccc09920525539b1af529fc3bfc91b2d.webp 760w,
/slides/tracking-for-xr/image-7_hu45500e1b474c536d6ba0f3539e3c6b65_65082_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-7_hu45500e1b474c536d6ba0f3539e3c6b65_65082_4e0bc2f5a693fe621095adac0ba2fa75.webp"
width="760"
height="392"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;section data-noprocess data-shortcode-slide
class="img-right"
>
&lt;h2 id="from-rgb-to-perception">From RGB to Perception&lt;/h2>
&lt;p>Different color spaces exist:&lt;/p>
&lt;ul>
&lt;li>RGB (device-oriented)&lt;/li>
&lt;li>HSV (more aligned with human perception)
&lt;ul>
&lt;li>Hue&lt;/li>
&lt;li>Saturation&lt;/li>
&lt;li>Value (brightness)&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;p>Useful in some tracking pipelines.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-8_hu2e62c38cd59d57cd9492ac70b6c3eefd_77187_e7aab376e72c0a0816c1021ac6517824.webp 400w,
/slides/tracking-for-xr/image-8_hu2e62c38cd59d57cd9492ac70b6c3eefd_77187_c25ccd1f7ee6db1a9a8b8c532ea6587b.webp 760w,
/slides/tracking-for-xr/image-8_hu2e62c38cd59d57cd9492ac70b6c3eefd_77187_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-8_hu2e62c38cd59d57cd9492ac70b6c3eefd_77187_e7aab376e72c0a0816c1021ac6517824.webp"
width="651"
height="380"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h1 id="part-c--projective-geometry-core-for-tracking">PART C — Projective Geometry (Core for Tracking)&lt;/h1>
&lt;hr>
&lt;h2 id="why-geometry-matters-for-tracking">Why Geometry Matters for Tracking&lt;/h2>
&lt;p>Tracking is fundamentally &lt;strong>projective geometry&lt;/strong>.&lt;/p>
&lt;p>We need to model:&lt;/p>
&lt;ul>
&lt;li>How 3D points project onto a 2D image&lt;/li>
&lt;li>How camera motion affects this projection&lt;/li>
&lt;/ul>
&lt;hr>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-10_hu5314e135fcaa442bcf82ef6a15083de4_137754_3d29f2b00ff730b7b40b3e4d5f4d5cad.webp 400w,
/slides/tracking-for-xr/image-10_hu5314e135fcaa442bcf82ef6a15083de4_137754_95bfd16f4c9b685d2d73df9af7b8d652.webp 760w,
/slides/tracking-for-xr/image-10_hu5314e135fcaa442bcf82ef6a15083de4_137754_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-10_hu5314e135fcaa442bcf82ef6a15083de4_137754_3d29f2b00ff730b7b40b3e4d5f4d5cad.webp"
width="760"
height="358"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;section data-noprocess data-shortcode-slide
class="img-right"
>
&lt;h2 id="intrinsic-parameters-k">Intrinsic Parameters (K)&lt;/h2>
&lt;p>Describe the &lt;strong>internal properties of the camera&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>Focal length&lt;/li>
&lt;li>Principal point&lt;/li>
&lt;li>Pixel aspect ratio&lt;/li>
&lt;/ul>
&lt;p>Fixed for a calibrated camera.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-11_hu30dc3435330829e47cee8f7a615bfd5b_289449_9da94dd0b60c7ba9189edb23db1db8d4.webp 400w,
/slides/tracking-for-xr/image-11_hu30dc3435330829e47cee8f7a615bfd5b_289449_1af63bf6653e7ddcf1cf0c5e9e62e363.webp 760w,
/slides/tracking-for-xr/image-11_hu30dc3435330829e47cee8f7a615bfd5b_289449_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-11_hu30dc3435330829e47cee8f7a615bfd5b_289449_9da94dd0b60c7ba9189edb23db1db8d4.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="extrinsic-parameters-r-t">Extrinsic Parameters (R, t)&lt;/h2>
&lt;p>Describe the &lt;strong>pose of the camera in the world&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>Rotation matrix R&lt;/li>
&lt;li>Translation vector t&lt;/li>
&lt;/ul>
&lt;p>👉 This is what tracking estimates.&lt;/p>
&lt;!-- ILLUSTRATION: world frame vs camera frame -->
&lt;hr>
&lt;h2 id="the-projection-model-simplified">The Projection Model (Simplified)&lt;/h2>
&lt;p>The core equation:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">u = K [R | t] X
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Where:&lt;/p>
&lt;ul>
&lt;li>X = 3D point in the world&lt;/li>
&lt;li>u = 2D pixel in the image&lt;/li>
&lt;li>K = intrinsics&lt;/li>
&lt;li>[R|t] = camera pose (tracking result)&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-12_hub0ee1241b3d2691d0908aef3a4f8db61_97706_b03ca28a57617f0134e691d9ca08b437.webp 400w,
/slides/tracking-for-xr/image-12_hub0ee1241b3d2691d0908aef3a4f8db61_97706_edd916804235d08ab9a6a835d8889b29.webp 760w,
/slides/tracking-for-xr/image-12_hub0ee1241b3d2691d0908aef3a4f8db61_97706_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-12_hub0ee1241b3d2691d0908aef3a4f8db61_97706_b03ca28a57617f0134e691d9ca08b437.webp"
width="760"
height="125"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="intuition-of-the-projection">Intuition of the Projection&lt;/h2>
&lt;ol>
&lt;li>Transform 3D point from world to camera space (R, t)&lt;/li>
&lt;li>Project onto image plane (K)&lt;/li>
&lt;li>Obtain pixel coordinates (u)&lt;/li>
&lt;/ol>
&lt;p>This is the mathematical backbone of visual tracking.&lt;/p>
&lt;!-- ILLUSTRATION: step-by-step transformation diagram -->
&lt;hr>
&lt;h1 id="part-d--image-processing-as-a-precursor-to-tracking">PART D — Image Processing as a Precursor to Tracking&lt;/h1>
&lt;hr>
&lt;h2 id="why-image-processing-for-tracking">Why Image Processing for Tracking?&lt;/h2>
&lt;p>Three main goals:&lt;/p>
&lt;ol>
&lt;li>Reduce noise → more stable features&lt;/li>
&lt;li>Enhance structures → clearer edges/corners&lt;/li>
&lt;li>Normalize images → robustness across lighting changes&lt;/li>
&lt;/ol>
&lt;!-- ILLUSTRATION: raw vs processed image side by side -->
&lt;hr>
&lt;h2 id="grayscale-conversion">Grayscale Conversion&lt;/h2>
&lt;p>Most feature detectors work on grayscale images.&lt;/p>
&lt;p>Classic formula:&lt;/p>
&lt;blockquote>
&lt;p>Y = 0.299R + 0.587G + 0.114B&lt;/p>
&lt;/blockquote>
&lt;p>Reduces complexity while preserving structure.&lt;/p>
&lt;!-- ILLUSTRATION: RGB image vs grayscale -->
&lt;hr>
&lt;h2 id="histogram-equalization">Histogram Equalization&lt;/h2>
&lt;p>Improves contrast:&lt;/p>
&lt;ul>
&lt;li>Makes details more visible&lt;/li>
&lt;li>Helps feature detection in low-contrast images&lt;/li>
&lt;/ul>
&lt;p>Useful in challenging lighting conditions.&lt;/p>
&lt;hr>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-13_hu202ef62196320da610a9b7eedb497450_1129609_37d48ba4484fd84bca70ea24a47ea9dd.webp 400w,
/slides/tracking-for-xr/image-13_hu202ef62196320da610a9b7eedb497450_1129609_5681538d5cf6688688e9f72488387006.webp 760w,
/slides/tracking-for-xr/image-13_hu202ef62196320da610a9b7eedb497450_1129609_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-13_hu202ef62196320da610a9b7eedb497450_1129609_37d48ba4484fd84bca70ea24a47ea9dd.webp"
width="760"
height="611"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="contrast-and-brightness-adjustment">Contrast and Brightness Adjustment&lt;/h2>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-14_hu73f0806c12cb1a02ee9c3f4b489e95cb_373181_4b0db2b08f6fce0f9f097b44c01f1f32.webp 400w,
/slides/tracking-for-xr/image-14_hu73f0806c12cb1a02ee9c3f4b489e95cb_373181_3b4449ef2f242129840b9116d865d063.webp 760w,
/slides/tracking-for-xr/image-14_hu73f0806c12cb1a02ee9c3f4b489e95cb_373181_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-14_hu73f0806c12cb1a02ee9c3f4b489e95cb_373181_4b0db2b08f6fce0f9f097b44c01f1f32.webp"
width="760"
height="421"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;section data-noprocess data-shortcode-slide
class="img-right"
>
&lt;h2 id="convolution--the-key-tool">Convolution — The Key Tool&lt;/h2>
&lt;p>A sliding kernel is applied over the image.&lt;/p>
&lt;p>Each pixel becomes a weighted sum of its neighbors.&lt;/p>
&lt;p>This enables:&lt;/p>
&lt;ul>
&lt;li>Blurring&lt;/li>
&lt;li>Edge detection&lt;/li>
&lt;li>Feature enhancement&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-15_hu1b222c9679880a6b7de5b5c53d3dec50_391704_9a51e055e417a4ff110e08c9e4097892.webp 400w,
/slides/tracking-for-xr/image-15_hu1b222c9679880a6b7de5b5c53d3dec50_391704_2c1cc332b54606765651cbd9d9d96e9b.webp 760w,
/slides/tracking-for-xr/image-15_hu1b222c9679880a6b7de5b5c53d3dec50_391704_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-15_hu1b222c9679880a6b7de5b5c53d3dec50_391704_9a51e055e417a4ff110e08c9e4097892.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-16_hu7cdc8b7257ce23ca4546193596f477af_367077_032336f8f054891b173e3d05140f2d11.webp 400w,
/slides/tracking-for-xr/image-16_hu7cdc8b7257ce23ca4546193596f477af_367077_d9fd3c591c21e11795eb669f6448484f.webp 760w,
/slides/tracking-for-xr/image-16_hu7cdc8b7257ce23ca4546193596f477af_367077_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-16_hu7cdc8b7257ce23ca4546193596f477af_367077_032336f8f054891b173e3d05140f2d11.webp"
width="760"
height="667"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="simple-blur">Simple Blur&lt;/h2>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-17_huac5ff651651a557ccd732f69812d421d_150881_c426515d9ddc54063dfa7f4a8de0b9d6.webp 400w,
/slides/tracking-for-xr/image-17_huac5ff651651a557ccd732f69812d421d_150881_7b93634bfdd8a5cec75e37f3a44bcb1a.webp 760w,
/slides/tracking-for-xr/image-17_huac5ff651651a557ccd732f69812d421d_150881_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-17_huac5ff651651a557ccd732f69812d421d_150881_c426515d9ddc54063dfa7f4a8de0b9d6.webp"
width="760"
height="212"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="gaussian-blur">Gaussian Blur&lt;/h2>
&lt;p>Used to:&lt;/p>
&lt;ul>
&lt;li>Reduce high-frequency noise&lt;/li>
&lt;li>Smooth the image before detecting features&lt;/li>
&lt;/ul>
&lt;p>Important for robust tracking.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-18_hu764831d096603a639571f2bcb5ae824e_185452_b71540038cc8251b4f254da8bd109984.webp 400w,
/slides/tracking-for-xr/image-18_hu764831d096603a639571f2bcb5ae824e_185452_eb9c5225c8b641cc8b7ad8808c9ba169.webp 760w,
/slides/tracking-for-xr/image-18_hu764831d096603a639571f2bcb5ae824e_185452_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-18_hu764831d096603a639571f2bcb5ae824e_185452_b71540038cc8251b4f254da8bd109984.webp"
width="720"
height="592"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-19_hua335938fb1a761bee4ac2631d7807c30_435878_af4f83d8ae1db64e9f74aa347fda37c0.webp 400w,
/slides/tracking-for-xr/image-19_hua335938fb1a761bee4ac2631d7807c30_435878_f953b7f90fea42d55bee8ce71c50fa50.webp 760w,
/slides/tracking-for-xr/image-19_hua335938fb1a761bee4ac2631d7807c30_435878_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-19_hua335938fb1a761bee4ac2631d7807c30_435878_af4f83d8ae1db64e9f74aa347fda37c0.webp"
width="760"
height="271"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;section data-noprocess data-shortcode-slide
class="img-right"
>
&lt;h2 id="gradients-and-edges">Gradients and Edges&lt;/h2>
&lt;p>Edges correspond to strong intensity changes.&lt;/p>
&lt;p>We compute gradients using filters such as:&lt;/p>
&lt;ul>
&lt;li>Sobel&lt;/li>
&lt;li>Prewitt&lt;/li>
&lt;/ul>
&lt;p>Edges help locate meaningful structures.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-20_hu42daa86ba0c0ff338b3af58e58d958ed_116173_ee6696aaa6d6df8b8d39c574aaaaa733.webp 400w,
/slides/tracking-for-xr/image-20_hu42daa86ba0c0ff338b3af58e58d958ed_116173_6d3c773ffd4217602102796f0a611fad.webp 760w,
/slides/tracking-for-xr/image-20_hu42daa86ba0c0ff338b3af58e58d958ed_116173_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-20_hu42daa86ba0c0ff338b3af58e58d958ed_116173_ee6696aaa6d6df8b8d39c574aaaaa733.webp"
width="760"
height="477"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h3 id="sobel-filter">Sobel Filter&lt;/h3>
&lt;p>$f&amp;rsquo;(i)=\frac{f_{i+1}-f_{i-1}}{2}\ \text{is equivalent to}\ [\tfrac12,\ 0,\ -\tfrac12]$&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-21_hu3aef5e31b1908706f6a0a881b693d361_527012_661d9e11729388fea3a487297e2763d0.webp 400w,
/slides/tracking-for-xr/image-21_hu3aef5e31b1908706f6a0a881b693d361_527012_6b275bc90d6ba75b507c11f8ebe40281.webp 760w,
/slides/tracking-for-xr/image-21_hu3aef5e31b1908706f6a0a881b693d361_527012_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-21_hu3aef5e31b1908706f6a0a881b693d361_527012_661d9e11729388fea3a487297e2763d0.webp"
width="760"
height="272"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="laplacian-second-order-derivative">Laplacian (Second-Order Derivative)&lt;/h2>
&lt;p>Detects regions of rapid change:&lt;/p>
&lt;ul>
&lt;li>Useful for feature detection&lt;/li>
&lt;li>Highlights corners and fine details&lt;/li>
&lt;/ul>
&lt;p>The standard discrete Laplacian is written:&lt;/p>
&lt;p>$\nabla^2 f(i,j)=f_{i+1,j}+f_{i-1,j}+f_{i,j+1}+f_{i,j-1}-4f_{i,j}$&lt;/p>
&lt;p>This corresponds to the kernel:&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-22_hu8a4239d24eb6ed64e40e3c4847c0abef_5470_368abeffe7538496f366650903cd2469.webp 400w,
/slides/tracking-for-xr/image-22_hu8a4239d24eb6ed64e40e3c4847c0abef_5470_a457838eed85b93dd4f82b19f9f73548.webp 760w,
/slides/tracking-for-xr/image-22_hu8a4239d24eb6ed64e40e3c4847c0abef_5470_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-22_hu8a4239d24eb6ed64e40e3c4847c0abef_5470_368abeffe7538496f366650903cd2469.webp"
width="246"
height="226"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-23_hu0dcb2f66358540590e1dac26c8a13113_449718_affa82907961493d70f881d2d39f3cbc.webp 400w,
/slides/tracking-for-xr/image-23_hu0dcb2f66358540590e1dac26c8a13113_449718_56b2b5d26310e4e402b0fa8970f8bf3f.webp 760w,
/slides/tracking-for-xr/image-23_hu0dcb2f66358540590e1dac26c8a13113_449718_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-23_hu0dcb2f66358540590e1dac26c8a13113_449718_affa82907961493d70f881d2d39f3cbc.webp"
width="760"
height="270"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="from-image-processing-to-features">From Image Processing to Features&lt;/h2>
&lt;p>At this stage, we have a cleaned and enhanced image.&lt;/p>
&lt;p>Next step:
👉 Detect meaningful points for tracking.&lt;/p>
&lt;!-- ILLUSTRATION: pipeline arrow to feature detection -->
&lt;hr>
&lt;h1 id="part-e--feature-detection-for-visual-tracking">PART E — Feature Detection for Visual Tracking&lt;/h1>
&lt;hr>
&lt;h2 id="what-is-a-feature">What is a Feature?&lt;/h2>
&lt;p>A feature is a distinctive image pattern that can be reliably detected and matched across frames.&lt;/p>
&lt;p>Examples:&lt;/p>
&lt;ul>
&lt;li>Corners&lt;/li>
&lt;li>Blobs&lt;/li>
&lt;li>Edges&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-24_hu2c03cf802abf55c03cdc45fdf3799af5_819145_cdbd9a80852df622813699d05c15bf42.webp 400w,
/slides/tracking-for-xr/image-24_hu2c03cf802abf55c03cdc45fdf3799af5_819145_42e8d365a75a9d5917c6ea1802da6d44.webp 760w,
/slides/tracking-for-xr/image-24_hu2c03cf802abf55c03cdc45fdf3799af5_819145_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-24_hu2c03cf802abf55c03cdc45fdf3799af5_819145_cdbd9a80852df622813699d05c15bf42.webp"
width="760"
height="289"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="what-makes-a-good-feature">What Makes a Good Feature?&lt;/h2>
&lt;p>A good feature should be:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Local&lt;/strong> (robust to occlusion)&lt;/li>
&lt;li>&lt;strong>Invariant&lt;/strong> (to translation, rotation, scale)&lt;/li>
&lt;li>&lt;strong>Robust&lt;/strong> (to noise, lighting changes)&lt;/li>
&lt;li>&lt;strong>Distinctive&lt;/strong> (easy to match)&lt;/li>
&lt;li>&lt;strong>Repeatable&lt;/strong> (found again in next frame)&lt;/li>
&lt;/ul>
&lt;!-- ILLUSTRATION: same feature across frames -->
&lt;hr>
&lt;h2 id="why-corners-are-ideal">Why Corners are Ideal&lt;/h2>
&lt;p>Corners are:&lt;/p>
&lt;ul>
&lt;li>Stable across viewpoints&lt;/li>
&lt;li>Well-localized in both x and y&lt;/li>
&lt;li>Highly informative for motion estimation&lt;/li>
&lt;/ul>
&lt;!-- ILLUSTRATION: corner vs edge vs flat region -->
&lt;hr>
&lt;h2 id="moravec-corner-detector-1977">Moravec Corner Detector (1977)&lt;/h2>
&lt;p>Idea:&lt;/p>
&lt;ul>
&lt;li>Measure how much intensity changes when shifting a small window in different directions.&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-25_hufd181cc1059df49c29f2c918c90a2986_158196_39d68f741106fd94e1a05f773a4e39ee.webp 400w,
/slides/tracking-for-xr/image-25_hufd181cc1059df49c29f2c918c90a2986_158196_faa3d7276e0053b27bb2169172f8bdc5.webp 760w,
/slides/tracking-for-xr/image-25_hufd181cc1059df49c29f2c918c90a2986_158196_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-25_hufd181cc1059df49c29f2c918c90a2986_158196_39d68f741106fd94e1a05f773a4e39ee.webp"
width="760"
height="379"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>&lt;strong>Average intensity variation for a small displacement ((u,v))&lt;/strong>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-26_hu89c5e361050d6b068d1bb185ec39fd4c_356435_b45ecefb3b86015627af3b0c4881fc8d.webp 400w,
/slides/tracking-for-xr/image-26_hu89c5e361050d6b068d1bb185ec39fd4c_356435_2ccea3210c8fe33161927fe605d6305a.webp 760w,
/slides/tracking-for-xr/image-26_hu89c5e361050d6b068d1bb185ec39fd4c_356435_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-26_hu89c5e361050d6b068d1bb185ec39fd4c_356435_b45ecefb3b86015627af3b0c4881fc8d.webp"
width="760"
height="372"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>$E(u,v)=\sum_{x,y} w(x,y),(I(x+u,y+v)-I(x,y))^2$&lt;/p>
&lt;ul>
&lt;li>(w) specifies the considered neighborhood (value 1 inside the window and 0 outside);&lt;/li>
&lt;li>(I(x,y)) is the intensity at pixel ((x,y)).&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="results">Results&lt;/h3>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-27_hu041e8836f49700a9a8ec23a7018c3a62_2392743_3390a0e7f7b7fb1caccdcfa3cef08b16.webp 400w,
/slides/tracking-for-xr/image-27_hu041e8836f49700a9a8ec23a7018c3a62_2392743_86b54a9a38e8b0cb247407d6468e111e.webp 760w,
/slides/tracking-for-xr/image-27_hu041e8836f49700a9a8ec23a7018c3a62_2392743_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-27_hu041e8836f49700a9a8ec23a7018c3a62_2392743_3390a0e7f7b7fb1caccdcfa3cef08b16.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>&lt;strong>Limitation:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Not rotation invariant.&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-28_hu6715a3123e952a77c984b7c44a631658_788025_a88e67894cb89ad7359b952d14b71031.webp 400w,
/slides/tracking-for-xr/image-28_hu6715a3123e952a77c984b7c44a631658_788025_8a39e6351fad087a60f2b3ee1c9e2ed0.webp 760w,
/slides/tracking-for-xr/image-28_hu6715a3123e952a77c984b7c44a631658_788025_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-28_hu6715a3123e952a77c984b7c44a631658_788025_a88e67894cb89ad7359b952d14b71031.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="harris-corner-detector-1988">Harris Corner Detector (1988)&lt;/h2>
&lt;p>Improvement over Moravec:&lt;/p>
&lt;ul>
&lt;li>Uses image gradients&lt;/li>
&lt;li>More robust&lt;/li>
&lt;li>Rotation invariant&lt;/li>
&lt;/ul>
&lt;p>Widely used in vision-based tracking.&lt;/p>
&lt;!-- ILLUSTRATION: Harris response map -->
&lt;hr>
&lt;h2 id="average-intensity-variation-for-a-small-displacement-uv">Average intensity variation for a small displacement $(u,v)$&lt;/h2>
&lt;p>$E(x,y)=\sum_{u,v} w(u,v),|I(x+u,y+v)-I(x,y)|^2$&lt;/p>
&lt;ul>
&lt;li>$w$ specifies the considered neighborhood (value 1 inside the window, 0 outside);&lt;/li>
&lt;li>$I(x,y)$ is the intensity at pixel $(x,y)$.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="taylor-expansion">Taylor expansion&lt;/h2>
&lt;p>$I(x+u,y+v)=I(x,y)+u\frac{\partial I}{\partial x}(x,y)+v\frac{\partial I}{\partial y}(x,y)+o(u^2,v^2)$&lt;/p>
&lt;p>Neglecting $o(u^2,v^2)$:&lt;/p>
&lt;p>$E(x,y)=\sum_{u,v} w(u,v)\left|u\frac{\partial I}{\partial x}(x,y)+v\frac{\partial I}{\partial y}(x,y)\right|^2$&lt;/p>
&lt;hr>
&lt;h2 id="quadratic-form">Quadratic form&lt;/h2>
&lt;p>Average intensity variation for a small displacement ((u,v)):&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-29_hufa990c6ae1c53170e765c8ab77ff424a_116888_1e4b3dcc6a63fd84af8e4933bd6c1723.webp 400w,
/slides/tracking-for-xr/image-29_hufa990c6ae1c53170e765c8ab77ff424a_116888_ca58cd68b0e7f4b92d59b3e1d0cea07a.webp 760w,
/slides/tracking-for-xr/image-29_hufa990c6ae1c53170e765c8ab77ff424a_116888_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-29_hufa990c6ae1c53170e765c8ab77ff424a_116888_1e4b3dcc6a63fd84af8e4933bd6c1723.webp"
width="760"
height="291"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="for-small-displacements-uv">For small displacements $(u,v)$&lt;/h2>
&lt;p>$E(x,y)=[u\ v]M[u\ v]^T$&lt;/p>
&lt;p>$M$: symmetric, positive definite $\Rightarrow$ eigenvalue decomposition possible.&lt;/p>
&lt;hr>
&lt;h2 id="structure-of-the-second-moment-matrix">Structure of the second-moment matrix&lt;/h2>
&lt;p>$M=\begin{pmatrix}A,C;C,B\end{pmatrix}$&lt;/p>
&lt;p>with:&lt;/p>
&lt;p>$A=\left(\frac{\partial I}{\partial x}\right)^2 \otimes w ;
B=\left(\frac{\partial I}{\partial y}\right)^2 \otimes w ;
C=\left(\frac{\partial I}{\partial x}\frac{\partial I}{\partial y}\right)\otimes w$&lt;/p>
&lt;p>$w$: Gaussian window (isotropic).&lt;/p>
&lt;p>A corner is characterized by a large variation of $E$ in all directions of $(x,y)$.&lt;/p>
&lt;p>$\Rightarrow$ Compute the eigenvalues of $M$.&lt;/p>
&lt;hr>
&lt;h2 id="corner-response">Corner response&lt;/h2>
&lt;p>Instead of computing the eigenvalues, we can compute:&lt;/p>
&lt;p>$\det(M)=AB-C^2=\lambda_1\lambda_2$&lt;/p>
&lt;p>$\text{trace}(M)=A+B=\lambda_1+\lambda_2$&lt;/p>
&lt;p>and define the response:&lt;/p>
&lt;p>$R=\det(M)-k,\text{trace}(M)^2$&lt;/p>
&lt;p>Values of $R$:&lt;/p>
&lt;ul>
&lt;li>positive near corners,&lt;/li>
&lt;li>negative near edges,&lt;/li>
&lt;li>small in flat regions ($k=0.04$).&lt;/li>
&lt;/ul>
&lt;p>$\Rightarrow$ corners / interest points = local maxima of $R$.&lt;/p>
&lt;hr>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-30_hu216dce15d0fcc5f3a3ac63f86d2c87b5_1465677_04cc79c0d9b3e2122e7e450400051e48.webp 400w,
/slides/tracking-for-xr/image-30_hu216dce15d0fcc5f3a3ac63f86d2c87b5_1465677_632b3e9c6ab25321e98e16ae1cee9568.webp 760w,
/slides/tracking-for-xr/image-30_hu216dce15d0fcc5f3a3ac63f86d2c87b5_1465677_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-30_hu216dce15d0fcc5f3a3ac63f86d2c87b5_1465677_04cc79c0d9b3e2122e7e450400051e48.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-31_hu01d83725ecb01e7e0119ce4278fc5b6d_1422286_bfa6ee86f07956c29e9cc249f87642cd.webp 400w,
/slides/tracking-for-xr/image-31_hu01d83725ecb01e7e0119ce4278fc5b6d_1422286_a04aaea4607eff91882be0e1099bbef8.webp 760w,
/slides/tracking-for-xr/image-31_hu01d83725ecb01e7e0119ce4278fc5b6d_1422286_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-31_hu01d83725ecb01e7e0119ce4278fc5b6d_1422286_bfa6ee86f07956c29e9cc249f87642cd.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>&lt;strong>Invariant by rotation&lt;/strong>: even after rotation, the matrix shape is unchanged, so the eigenvalues and the response $R$ are unchanged.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-32_hu166b3c8e49f5cf05dc477f1d9792aa51_23769_e833c05298c5c8d79d5d6e1a5af33085.webp 400w,
/slides/tracking-for-xr/image-32_hu166b3c8e49f5cf05dc477f1d9792aa51_23769_8cbf1c5d4a7468ef4cb4b040a51b41a2.webp 760w,
/slides/tracking-for-xr/image-32_hu166b3c8e49f5cf05dc477f1d9792aa51_23769_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-32_hu166b3c8e49f5cf05dc477f1d9792aa51_23769_e833c05298c5c8d79d5d6e1a5af33085.webp"
width="375"
height="200"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>&lt;strong>Not invariant by scale&lt;/strong>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-33_hu2b5a5fcfa7f457b6db52c3fedb019d43_17621_b0e6c8c91c47bc3da98da9a7bd37d895.webp 400w,
/slides/tracking-for-xr/image-33_hu2b5a5fcfa7f457b6db52c3fedb019d43_17621_4f2a97792138e78b6b44e6028088dcb9.webp 760w,
/slides/tracking-for-xr/image-33_hu2b5a5fcfa7f457b6db52c3fedb019d43_17621_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-33_hu2b5a5fcfa7f457b6db52c3fedb019d43_17621_b0e6c8c91c47bc3da98da9a7bd37d895.webp"
width="698"
height="211"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Potential solution: compute Harris response at multiple scales (Harris–Laplace).&lt;/p>
&lt;hr>
&lt;h1 id="part-f--from-features-to-tracking">PART F — From Features to Tracking&lt;/h1>
&lt;hr>
&lt;h2 id="feature-based-tracking-pipeline">Feature-Based Tracking Pipeline&lt;/h2>
&lt;p>Frame t:&lt;/p>
&lt;ol>
&lt;li>Detect features&lt;/li>
&lt;li>Describe features&lt;/li>
&lt;li>Match with previous frame&lt;/li>
&lt;li>Estimate motion (R, t)&lt;/li>
&lt;/ol>
&lt;p>Repeat continuously.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-36_hu2ecf3a01792a4c095e141c34810564a3_536273_52afa4995f3527fd7bcb9c90034658ec.webp 400w,
/slides/tracking-for-xr/image-36_hu2ecf3a01792a4c095e141c34810564a3_536273_cb9d311e1df382c5170842f3b80f9e32.webp 760w,
/slides/tracking-for-xr/image-36_hu2ecf3a01792a4c095e141c34810564a3_536273_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-36_hu2ecf3a01792a4c095e141c34810564a3_536273_52afa4995f3527fd7bcb9c90034658ec.webp"
width="760"
height="305"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="feature-matching">Feature Matching&lt;/h2>
&lt;p>Features are compared using descriptors.&lt;/p>
&lt;p>Goal:&lt;/p>
&lt;ul>
&lt;li>Find correspondences between frames&lt;/li>
&lt;/ul>
&lt;p>This enables motion estimation.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-34_hu75cc9a76e069fc95dfd44a765d966e62_819434_782fafe89a575ba71442d5c3712bfc3b.webp 400w,
/slides/tracking-for-xr/image-34_hu75cc9a76e069fc95dfd44a765d966e62_819434_510e13e5972a07818f1cf3bd3ff6d674.webp 760w,
/slides/tracking-for-xr/image-34_hu75cc9a76e069fc95dfd44a765d966e62_819434_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-34_hu75cc9a76e069fc95dfd44a765d966e62_819434_782fafe89a575ba71442d5c3712bfc3b.webp"
width="760"
height="289"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="example-sift-scale-invariant-feature-transform">Example: SIFT (Scale-Invariant Feature Transform)&lt;/h2>
&lt;p>SIFT provides:&lt;/p>
&lt;ul>
&lt;li>Scale invariance&lt;/li>
&lt;li>Rotation invariance&lt;/li>
&lt;li>Robust descriptors&lt;/li>
&lt;/ul>
&lt;p>Widely used in classical computer vision.&lt;/p>
&lt;hr>
&lt;h2 id="sift-pipeline">SIFT Pipeline&lt;/h2>
&lt;ol>
&lt;li>Build Gaussian pyramid (multi-scale representation)&lt;/li>
&lt;li>Compute Difference of Gaussians (DoG)&lt;/li>
&lt;li>Detect keypoints&lt;/li>
&lt;li>Assign orientation&lt;/li>
&lt;li>Compute &lt;strong>descriptor&lt;/strong> from local gradients&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h3 id="build-gaussian-pyramid-compute-dog-and-detect-keypoints">Build Gaussian pyramid, compute DoG and detect keypoints&lt;/h3>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-38_hufab470e83955287a8e08859ba977dd24_118860_d214533751c4b4704cb35b59df501602.webp 400w,
/slides/tracking-for-xr/image-38_hufab470e83955287a8e08859ba977dd24_118860_ca41e855db90fde5d5b1476b55eca26a.webp 760w,
/slides/tracking-for-xr/image-38_hufab470e83955287a8e08859ba977dd24_118860_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-38_hufab470e83955287a8e08859ba977dd24_118860_d214533751c4b4704cb35b59df501602.webp"
width="754"
height="344"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>To obtain scale-independent descriptors, the image is resampled multiple times (building a &amp;ldquo;pyramid&amp;rdquo;).&lt;/p>
&lt;p>The Gaussian difference is more efficient than a Laplacian calculation for each level.&lt;/p>
&lt;hr>
&lt;h3 id="assign-orientation-and-compute-descriptor">Assign orientation and compute descriptor&lt;/h3>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-39_hu5b41d703a472001977b405acd2da2ed9_958515_66239ca7c2b8907e8f52aab2724c6bda.webp 400w,
/slides/tracking-for-xr/image-39_hu5b41d703a472001977b405acd2da2ed9_958515_eeb3940fab622228d4cb4cb08a8ae901.webp 760w,
/slides/tracking-for-xr/image-39_hu5b41d703a472001977b405acd2da2ed9_958515_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-39_hu5b41d703a472001977b405acd2da2ed9_958515_66239ca7c2b8907e8f52aab2724c6bda.webp"
width="760"
height="288"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>The descriptor is a histogram of local gradients around the keypoint, weighted by a Gaussian window.&lt;/p>
&lt;hr>
&lt;video width="700" autoplay muted loop playsinline controls>
&lt;source src="media2.mp4" type="video/mp4">
&lt;/video>
&lt;hr>
&lt;h1 id="part-g--from-2d-features-to-6dof-tracking">PART G — From 2D Features to 6DoF Tracking&lt;/h1>
&lt;hr>
&lt;section data-noprocess data-shortcode-slide
class="img-right"
>
&lt;h2 id="the-pnp-problem-perspective-n-point">The PnP Problem (Perspective-n-Point)&lt;/h2>
&lt;p>If we know:&lt;/p>
&lt;ul>
&lt;li>3D world points&lt;/li>
&lt;li>Their 2D projections in the image&lt;/li>
&lt;/ul>
&lt;p>We can solve for camera pose (R, t).&lt;/p>
&lt;p>This is central to many AR systems.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-41_hude0c4097bf97c4a13a3891bb383e03ae_94304_fb1a895055a1afdc538e745ef0a3d34d.webp 400w,
/slides/tracking-for-xr/image-41_hude0c4097bf97c4a13a3891bb383e03ae_94304_d72f59258c3340627892cde92d5e787e.webp 760w,
/slides/tracking-for-xr/image-41_hude0c4097bf97c4a13a3891bb383e03ae_94304_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-41_hude0c4097bf97c4a13a3891bb383e03ae_94304_fb1a895055a1afdc538e745ef0a3d34d.webp"
width="428"
height="332"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="visual-odometry">Visual Odometry&lt;/h2>
&lt;p>If no 3D map is available:&lt;/p>
&lt;ul>
&lt;li>Track motion between consecutive frames&lt;/li>
&lt;li>Estimate relative movement of the camera&lt;/li>
&lt;/ul>
&lt;p>Used in SLAM systems.&lt;/p>
&lt;hr>
&lt;h2 id="slam-in-xr">SLAM in XR&lt;/h2>
&lt;p>Modern headsets use SLAM:&lt;/p>
&lt;ul>
&lt;li>Simultaneous Localization and Mapping&lt;/li>
&lt;li>Build a map of the environment&lt;/li>
&lt;li>Track the headset within that map&lt;/li>
&lt;/ul>
&lt;p>Examples:&lt;/p>
&lt;ul>
&lt;li>ARKit&lt;/li>
&lt;li>ARCore&lt;/li>
&lt;li>Meta Quest inside-out tracking&lt;/li>
&lt;/ul>
&lt;hr>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-40_hu4491781fb12c9b66fc8702f858d359ae_778202_64296ee21f39be1020c31192812276f2.webp 400w,
/slides/tracking-for-xr/image-40_hu4491781fb12c9b66fc8702f858d359ae_778202_1f731cfc0fca839128e4e463a24ca888.webp 760w,
/slides/tracking-for-xr/image-40_hu4491781fb12c9b66fc8702f858d359ae_778202_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-40_hu4491781fb12c9b66fc8702f858d359ae_778202_64296ee21f39be1020c31192812276f2.webp"
width="760"
height="440"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h1 id="part-h--tracking-in-modern-xr-systems">PART H — Tracking in Modern XR Systems&lt;/h1>
&lt;hr>
&lt;section data-noprocess data-shortcode-slide
class="img-right"
>
&lt;h2 id="inside-out-tracking-meta-quest">Inside-Out Tracking (Meta Quest)&lt;/h2>
&lt;p>Uses multiple cameras + IMU to:&lt;/p>
&lt;ul>
&lt;li>Track headset position&lt;/li>
&lt;li>Track controllers&lt;/li>
&lt;li>Map environment&lt;/li>
&lt;/ul>
&lt;p>Fully vision-based.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-42_hue872a9a954395fe8beef5ae27ddf9d61_494688_0ed5837127605d6c81aeda78fba5365e.webp 400w,
/slides/tracking-for-xr/image-42_hue872a9a954395fe8beef5ae27ddf9d61_494688_880a9496c6c781e9bc377e179699b985.webp 760w,
/slides/tracking-for-xr/image-42_hue872a9a954395fe8beef5ae27ddf9d61_494688_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-42_hue872a9a954395fe8beef5ae27ddf9d61_494688_0ed5837127605d6c81aeda78fba5365e.webp"
width="760"
height="441"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="optical-tracking-viconoptitrack">Optical Tracking (Vicon/OptiTrack)&lt;/h2>
&lt;p>Uses external cameras to track reflective markers.&lt;/p>
&lt;p>Very accurate but requires a dedicated setup.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="alt text" srcset="
/slides/tracking-for-xr/image-43_hu74a79043a395023f1a818122879f957e_600957_d1135368a0a34c38810b7408c55f4922.webp 400w,
/slides/tracking-for-xr/image-43_hu74a79043a395023f1a818122879f957e_600957_db8b943e2ff48043377be7d7709fa7b2.webp 760w,
/slides/tracking-for-xr/image-43_hu74a79043a395023f1a818122879f957e_600957_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.etiennepeillard.com/slides/tracking-for-xr/image-43_hu74a79043a395023f1a818122879f957e_600957_d1135368a0a34c38810b7408c55f4922.webp"
width="760"
height="428"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="hybrid-tracking-systems">Hybrid Tracking Systems&lt;/h2>
&lt;p>Combine:&lt;/p>
&lt;ul>
&lt;li>Vision&lt;/li>
&lt;li>IMU&lt;/li>
&lt;li>Depth sensors&lt;/li>
&lt;/ul>
&lt;p>To improve robustness and reduce drift.&lt;/p>
&lt;!-- ILLUSTRATION: sensor fusion diagram --></description></item></channel></rss>