views:

154

answers:

3

I need it to have at least such features like Content Aware Fill, Content Aware Image Resizing.

I need it as normal C/C++ library, usable from code, may be with dependencies on other open source libraris. But with examples of code compilable into stand alone applications!

So is there any such library? Is there any C or C++ opensource library for Content Aware Image editing/transformations?

+1  A: 

Apparently gimp has a plugin : http://liquidrescale.wikidot.com/

Maybe you could adapt that or wrap it in a way that you don't need gimp.

rep_movsd
I see resize but I do not see Content Aware Fill in it.
Blender
+2  A: 

Another gimp plugin: http://www.logarithmic.net/pfh/resynthesizer

fortran
how to make it inti normal C/C++ lib to use it from code?
Blender
I think you should start reading the code, there should be an entry point for the plugin; then you can adapt the GIMP related structures to your own purposes...
fortran
... no way easier?
Blender
I don't know, but what you're asking for seems to be a very specialised state of the art technology, I wouldn't expect an off-the-shelf package (for free) so easily :-s
fortran
If youd take a look at sources resynthesizer orovide youll find it quite imposible to separate it from GIMP... And there is no example how to compile it into stand alone app (somehow just including GIMP into it...)...=(
Blender
+1  A: 

Start with the code from here: "patch match" and continue with code from here: "image retargeting"

Ross
I also work on a implementation of such algorithm. But it is not open source.
Ross