GitXplorerGitXplorer
p

ImageResizer

public
5 stars
7 forks
0 issues

Commits

List of commits on branch master.
Unverified
4411c00f993625007b199c29619244c1899fbe63

add src-opencv

pppwwyyxx committed 10 years ago
Unverified
7f48ba651da5dbddfe443798fedb5b5b8683ad41

fix picture link

pppwwyyxx committed 10 years ago
Unverified
04b0d90179ffc8ba4734a570c09d050ddb7d62f7

update readme

pppwwyyxx committed 10 years ago
Unverified
a2554836093100ad69811e923fb1cae987df85aa

update image

pppwwyyxx committed 10 years ago
Unverified
d20d27ed556ad403e1f30eb8180f9d867f91106d

add paper

pppwwyyxx committed 11 years ago
Unverified
e847adaad128f1693362493dac910dca0c347ca1

code format in readme

pppwwyyxx committed 11 years ago

README

The README file for this repository.

Introduction

An Content-Aware Image Resizer using Seam Carving alogrithm.

See:

Avidan, Shai, and Ariel Shamir. Seam carving for content-aware image resizing. SIGGRAPH2007

Dong, Weiming, et al. Optimized image resizing using seam carving and scaling. SIGGRAPH2009

Compile

Dependencies:

Compile:

$ make

Usage:

See help:

$ ./image_resize
-i   [Required] Input image.
-o   [Required] Output image.
-w   Width, can be pixel number in integer, or a relative number in (0, 1]
-h   Height, same as above
-e   Output energy image.
-m   Maks image, red to discard, green to keep.
-c   Convolution type. can be one of prewitt, vsquare, sobel, laplacian
-p   Use Optimized Seam Carving(slow).
-f   Use feature as mask. every line is "r c"
-v   Output images with carved path for video generation.

Example:

./image_resize -i ../data/city.jpg -o city-resized.jpg -w 0.6

city city-resized