This repository contains a MATLAB implementation of seam carving for image resizing and energy optimization using neural network-inspired bilinear transformations.
This project explores the application of seam carving techniques to resize images by iteratively removing pixels with the least energy. The energy optimization step enhances the quality of the resized image, while neural network-inspired bilinear interpolation is used for smooth resizing.
The project employs seam carving, an advanced content-aware image resizing technique. Energy maps are computed to identify the least important pixels, which are removed iteratively.
- Nearest Neighbor Interpolation: A basic resampling method applied during image resizing.
- Bilinear Interpolation: Used for smoother resizing by averaging pixel values.
Energy optimization involves computing gradient magnitudes to identify important features in the image, ensuring quality is preserved during resizing.
The project also visualizes the seam carving process by generating an .mp4
video that highlights the gradual removal of seams.
main.m
: The main MATLAB script for processing images, resizing, and video generation.img.jpeg
andimg2.jpeg
: Example input images for testing.LICENSE
: MIT license.README.md
: Project description and instructions.
- Farzan Mirza: farzan.mirza@drexel.edu | LinkedIn