Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farzanmrz/matlab-seam-carving
MATLAB project implementing seam carving for image resizing and energy optimization using neural network-inspired bilinear transformations
https://github.com/farzanmrz/matlab-seam-carving
computer-vision image-processing matlab neural-networks seam-carving
Last synced: about 1 month ago
JSON representation
MATLAB project implementing seam carving for image resizing and energy optimization using neural network-inspired bilinear transformations
- Host: GitHub
- URL: https://github.com/farzanmrz/matlab-seam-carving
- Owner: Farzanmrz
- License: mit
- Created: 2024-12-02T18:49:08.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-02T19:06:13.000Z (about 1 month ago)
- Last Synced: 2024-12-02T19:45:44.985Z (about 1 month ago)
- Topics: computer-vision, image-processing, matlab, neural-networks, seam-carving
- Language: MATLAB
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MATLAB Seam Carving for Image Resizing and Energy Optimization
This repository contains a MATLAB implementation of seam carving for image resizing and energy optimization using neural network-inspired bilinear transformations.
## Objective
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.
## Methods Used
### Seam Carving
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.
### Bilinear and Nearest Neighbor Interpolation
- Nearest Neighbor Interpolation: A basic resampling method applied during image resizing.
- Bilinear Interpolation: Used for smoother resizing by averaging pixel values.### Energy Optimization
Energy optimization involves computing gradient magnitudes to identify important features in the image, ensuring quality is preserved during resizing.
### Video Output
The project also visualizes the seam carving process by generating an `.mp4` video that highlights the gradual removal of seams.
## Files
- `main.m`: The main MATLAB script for processing images, resizing, and video generation.
- `img.jpeg` and `img2.jpeg`: Example input images for testing.
- `LICENSE`: MIT license.
- `README.md`: Project description and instructions.## Contact
* Farzan Mirza: [[email protected]](mailto:[email protected]) | [LinkedIn](https://www.linkedin.com/in/farzan-mirza13/)