This is the repo for my Seam Carving JetBrains Academy Project
Seam carving is an image processing technique for content aware image resizing. Content aware means that it saves objects and object aspect ratio at processed image.
You will learn how to work with images. At the same time you will get familiar with basic graph processing algorithms. Implement seam carving technique yourself and try it on any picture you like.
Now you have everything to resize the image while preserving its content. Simply remove the seam, then remove the seam from the resulting image and so on!
Add two more command line parameters. Use parameter -width for the number of vertical seams to remove and -height for horizontal seams.
At this stage, your program should reduce the input image and save the result.
Remove the specified number of vertical seams first, and then remove the horizontal seams.
In this stage, you should download this archive and access the images via the absolute path to the folder where you saved these images. All the tests in this and in the following stages use this set of images. But despite the fact you reading images by an absolute path, you should save newly created images via relative path, in the current directory.
The greater-than symbol followed by a space (> ) represents the user input. Note that it's not part of the input.
In the following example, the program should reduce the image width by 125 pixels and height by 50 pixels
java Main -in sky.png -out sky-reduced.png -width 125 -height 50 For the following sky.png:
sky-reduced.png should look like this:
Example 2:
java Main -in trees.png -out trees-reduced.png -width 100 -height 30 For trees.png:
trees-reduced.png should look like this:
It will be elaborated soon as i finish the final version