Final Project Report
Final Project Report
Department of EEE
EEE 4702
PROJECT REPORT:
Team Members:
Problem Statement:
Solving a puzzle using MATLAB requires accurately determining the correct spatial arrangement of puzzle
pieces to reconstruct the original image. The primary challenge is to develop an algorithm that can correctly
identify and align the puzzle pieces using image processing techniques.
Solution Abstract:
The project involves multiple steps to achieve an optimal solution. First, the original image is converted to
gray scale and denoised. Then, puzzle pieces are identified, cropped, and arranged optimally. Using correlation-
based matching techniques, the pieces are assembled back into the original image. This approach ensures
efficient puzzle solving using MATLAB's image processing capabilities.
Detailed Methodology:
Step 1: Noise Removal and Conversion of the Original Image
• Puzzle pieces are matched to their corresponding positions using correlation-based techniques.
• The best-matching pieces are stored and arranged into the final image grid.
Code:
MATLAB Code:
figure;
imshow(croppedImage);
% Display progress
% Parameters
rows = 4; % Grid rows
cols = 4; % Grid
columns
numImages = rows * cols; % Total number of segments (16)
Result Analysis:
• Some minor errors in alignment occurred due to lighting and noise variations
A piece of puzzle before (2) and after (1) the cropping and rotation operation :
All pieces of the puzzle after the cropping and rotation operation :
Reconstituted image: obtained by placing the puzzle pieces in the identified optimal positions
Conclusion:
This project successfully implemented an image-based puzzle-solving algorithm by applying various image
processing techniques. We did encounter some challenges such as differences in puzzle piece dimensions that
required resizing, also matching errors due to noise and lighting on the image. Future improvements could
involve advanced AI-based image recognition techniques for more precise matching.
Team Contribution: