This project implements dynamic-programming-based seam carving for content-aware image resizing, along with baseline comparisons and report-oriented experiment outputs.
cd /home/xgy/hw2/cs240_seam_carving_project
python3 -m pip install -r requirements.txtcd /home/xgy/hw2/cs240_seam_carving_project
pytest -qcd /home/xgy/hw2/cs240_seam_carving_project
python3 scripts/prepare_sample_dataset.pyDataset source notes:
- See data/BSDS300_DOWNLOAD_MANIFEST.md
- The script downloads the BSDS300 image archive and extracts a fixed 24-image subset into
data/input/bsds300_subset/.
cd /home/xgy/hw2/cs240_seam_carving_project
python3 scripts/run_single.py \
--image ./data/input/bsds300_subset/159029.jpg \
--target-width 384 \
--output-dir ./data/output/manual_singlecd /home/xgy/hw2/cs240_seam_carving_project
python3 scripts/run_experiments.pycd /home/xgy/hw2/cs240_seam_carving_project
python3 scripts/make_report_assets.pydata/output/resized/: resized images for each method and ratiodata/output/plots/: runtime plotsdata/output/tables/: experiment summariesreports/figures/: report-ready figuresreports/tables/: report-ready tables or exported summaries