In this assignment, your task is to implement a program that consistently orients a collection of shapes.

You program will be tested on two shape collections : Data

Notes:

1. The up-right orientation of each shape is given, so your task is to find the front orientation.

2. Step 1: Sample a set of candidate front orientations (16 for example).

3. Step 2: For each pair shapes and for each pair of candidate orientations, calculate the consistency score. The consistency score can be based on measurng some appropriate distance functions.

4. Step 3: Solve a MRF to obtain consistent orientations.

**4** Report

Summarize your findings in a single report.pdf. The report should include visualizations of both the input shapes and the oriented shapes. Please write down how you evaluate the consistent score. Please also submit your source codes.