Image Analysis and Computer Vision Course Projects
Course Overview
This comprehensive computer vision course at ETH Zurich covered the fundamental and advanced techniques in image analysis and computer vision. Through five challenging exercises, I implemented cutting-edge algorithms spanning image compression, interactive segmentation, 3D reconstruction, classification, and transfer learning. Each project tackled real-world computer vision problems with practical applications, from game image compression to medical image analysis.
The course provided hands-on experience with both traditional computer vision methods and modern deep learning approaches, emphasizing the mathematical foundations and practical implementation of key algorithms in the field.
Technology Stack
Exercise 1: Image Compression for Tic-Tac-Toe Games
Developed an intelligent image compression system for streaming live tic-tac-toe games with limited bandwidth. The challenge involved compressing noisy camera images while maintaining quality for accurate game reconstruction.
- PCA-Based Compression: Implemented Principal Component Analysis for dimensionality reduction and efficient image representation using learned codebooks
- Noise Reduction: Designed algorithms to handle camera noise and reconstruct clean discrete game images from continuous-valued noisy inputs
- Codebook Learning: Developed training procedures to learn optimal compression codebooks from 100 training images, balancing compression ratio and reconstruction quality
- Evaluation Metrics: Optimized compression performance using combined metrics including mean absolute error, median absolute error, and file size constraints
- Real-time Processing: Achieved efficient compression and reconstruction suitable for live game streaming applications
Exercise 2: Interactive Segmentation for Cat Memes
Created an advanced segmentation system for automatically extracting cats from images using minimal user input (bounding box) for meme generation applications.
- Min-Cut Segmentation: Implemented graph-based min-cut algorithms using PyMaxFlow for precise foreground-background separation
- Multi-Modal Input: Leveraged both RGB and auxiliary sensor images to improve segmentation accuracy in challenging scenarios
- Interactive Framework: Designed user-friendly workflow requiring only bounding box input while maintaining high segmentation quality
- Energy Optimization: Formulated and solved energy minimization problems for optimal boundary detection
- Robustness Testing: Achieved over 60% IoU accuracy on diverse test images with varying lighting and background conditions
Exercise 3: Stereo Vision and 3D Reconstruction
Implemented complete stereo vision pipeline for 3D point cloud reconstruction from dual camera systems, covering calibration, correspondence matching, and triangulation.
- Camera Calibration: Developed automated calibration procedures to determine intrinsic and extrinsic camera parameters from calibration points
- Correspondence Search: Implemented Normalized Cross-Correlation (NCC) for finding pixel correspondences across stereo image pairs
- 3D Triangulation: Applied geometric triangulation methods to recover world coordinates from image correspondences
- Epipolar Geometry: Utilized epipolar constraints to optimize correspondence search and improve computational efficiency
- Point Cloud Generation: Created dense 3D point clouds with interactive visualization capabilities for scene reconstruction
Exercise 4: Deep Learning Image Classification
Built and trained convolutional neural networks for multi-class image classification using PyTorch, covering network design, training optimization, and performance evaluation.
- CNN Architecture Design: Developed custom convolutional neural network architectures optimized for 6-class image classification (buildings, forests, mountains, glacier, sea, street)
- Training Pipeline: Implemented complete training workflows including data loading, augmentation, loss computation, and optimization using SGD and Adam optimizers
- Data Augmentation: Applied various augmentation techniques to improve model generalization and prevent overfitting
- PyTorch Mastery: Gained extensive experience with PyTorch ecosystem including datasets, dataloaders, and neural network modules
Exercise 5: Transfer Learning with Limited Data
Implemented advanced transfer learning techniques using pre-trained ResNet models to achieve high classification accuracy with severely limited training data.
- Pre-trained Model Adaptation: Modified pre-trained ResNet18 architecture to handle 10-class classification task with only 210 samples per class
- Fine-tuning Strategies: Implemented layer-wise learning rate scheduling and selective parameter freezing to optimize transfer learning performance
- Data Efficiency: Achieved over 60% accuracy despite severe data limitations through intelligent use of pre-trained features
- Class Mapping: Handled complex mapping between 5-class pre-trained model and 10-class target problem
- Model Analysis: Conducted detailed performance analysis including per-class accuracy evaluation and failure case analysis
Technical Innovations & Methods
Throughout the course, I implemented and mastered numerous computer vision techniques:
- Principal Component Analysis for dimensionality reduction
- Graph-based segmentation with min-cut optimization
- Stereo geometry and triangulation algorithms
- Normalized Cross-Correlation for feature matching
- Convolutional Neural Network architectures
- Transfer learning and fine-tuning strategies
- Data augmentation and regularization techniques
- Multi-modal sensor fusion approaches
Technical Skills Demonstrated
- Mathematical Foundations: Linear algebra, optimization theory, probability theory, and geometric transformations applied to computer vision problems
- Programming Expertise: Advanced Python programming with NumPy, PyTorch, OpenCV, and SciPy for implementing complex algorithms
- Algorithm Implementation: From-scratch implementation of classical and modern computer vision algorithms
- Deep Learning: Neural network design, training, evaluation, and optimization techniques
- Problem Solving: Systematic approach to tackling diverse computer vision challenges with appropriate method selection
Applications & Impact
These projects demonstrated practical applications of computer vision across multiple domains including entertainment (gaming, meme generation), robotics (3D reconstruction), and content analysis (image classification). The comprehensive coverage of both traditional and deep learning approaches provided a solid foundation for tackling real-world computer vision challenges.
The hands-on implementation of these diverse techniques enhanced my understanding of the theoretical foundations while building practical skills essential for computer vision research and development.