Overview

The Overlay Algorithms Project focuses on pattern-matching techniques using triangle point overlay. It was developed as part of an Algorithm Course in Fall 2020. Alex Chea (myself) presented a mock-up implementation of Groth’s Algorithm for whale identification based on their markings.

Professor's Feedback

Repository Structure

GitHub Repository: Overlay Algorithms

Core Directories & Files:

Implementation Details

1. Triangle Point Overlay Technique

2. Groth’s Algorithm for Whale Identification

Code Example (Overlay Calculation)

def compute_overlay(points):
    overlay_matrix = []
    for p1, p2, p3 in combinations(points, 3):
        triangle_area = compute_triangle_area(p1, p2, p3)
        overlay_matrix.append((p1, p2, p3, triangle_area))
    return overlay_matrix