hs2361 / k-means-compressor

k means clustering based image compression algorithm project for OOPL
6 stars 8 forks source link

[BUG] Parameter -p in seam carving works in opposite manner #16

Closed elbertronnie closed 2 years ago

elbertronnie commented 2 years ago

Currently the Usage section of the cli states that the -p parameter in seam carving command is the percentage of width to be reatined but the program instead cuts that much percentage from the image.

Example: ./compressor -s -i input.png -o output.png -p 0.3 will cut 30% rather than retaining 30%.

hs2361 commented 2 years ago

Good catch @elbertronnie! We must have written that accidentally in the README. Thanks for raising this issue.