From 2a612c6064439b87346737879b0633e89e186365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Colin=20de=20Verdi=C3=A8re?= Date: Fri, 4 Apr 2025 14:38:13 +0200 Subject: [PATCH] upd README --- README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b77e401..6d3d0bd 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ ## References: - [Seam carving for content-aware image resizing](https://perso.crans.org/frenoy/matlab2012/seamcarving.pdf) -- [By-example Synthesis of Architectural Textures](https://inria.hal.science/inria-00547754v1/file/paper.pdf) ## Build @@ -17,5 +16,21 @@ cd .. ## Usage ```bash -build/seam-carving --source imgs/birds.jpg --output out.jpg -n 300 -``` \ No newline at end of file +build/seam-carving ... +``` + +Mandatory arguments: + +- `-s FILE`: source image +- `-o FILE`: output image + +Options: +- `-m FILE`: the mask. RGB image, of the same size than the source, red pixel are those to be removed, the green ones must be kept. +- `-n NUMBER`: number of seams to compute or remove (default 0) +- `--show-seams`: do not carve the image, only outputs the energy and the relevant seams +- `-f FUNCTION NAME`: the energy function to use, see the [beginning of the source file to see the available functions](src/seam-carving.cpp) +- `-u`: when a mask is provided and no seam number is provided, remove seams until the zone to remove has disappeared. + +## Generation of the images of the report + +TODO!