🎮 Simulator EP07_05: Orientation Histogram of a Cell
🔴 fixed 3×3 cell
Adjust B and watch how the orientation matrix (independent of the magnitudes one) is mapped
to the bins via bin = floor(θ / (180/B)), and how the magnitudes are summed into each bin.
2
📄 Input (exactly as the program reads from stdin)
🔢 Magnitude matrix |∇f|
📐 Orientation matrix θ (degrees) — colored by bin
📏 Where each θ falls on the ruler [0°, 180°) —
bin = floor(θ / width)📊 Range of each bin (width = 180° / B)
🧩 Each pixel: magnitude + orientation → bin
🧮 Step-by-step calculation (floor of the division + summing magnitudes per bin)
Description: Figure 7.25: EP07_05 Simulator: HOG Histogram of a Cell (mapping angles to bins)