FCair - a content aware image resizing program written in F#->
FCAIR is a program that resizes images by selecting the pixels which will be removed/replicated using a process based on seam-carving. This means that the program will try to find the path of least resistance for each row/column of pixels. The result is a so called seam (a line of connected pixels that are as similar as possible). These seams are then removed/duplicated until the image has the desired size. More information can be found here: http://en.wikipedia.org/wiki/Seam_carving
Usage:
The program is a command line program for which the user needs to specify an image, a target file, the desired difference in size (negative or positive), and the resizing direction (horizontal or vertical). If the resizing succeeds, the generated image is saved at the specified target file path and opened with the default program associated with the type of image generated, which is a *.png file.
This was written as an experiment in functional programming with F# and no mutable values or for-loops were used. These have been replaced with recursive functions. It's a rewrite of the vb.net program CAIR which can be found at: http://www.vbforums.com/showthread.php?810513-CAIR-a-content-aware-image-resizing-program.