The image is scaled using "Find Replicant Pixel Fast".
submodules:
$ git submodule init
$ git submodule update
build dependencies:
- build-essential
- cmake
$ sudo apt-get install build-essential cmake
$ mkdir build
$ cd build
$ cmake ..
$ make
The first and second parameters specify the paths to the image and the result {PNG}.
./stbimfrpf2 ${IMAGE_PATH} ${IMAGE_PATH}.out.png
dependencies.c
- API stbfrp2.h
- Find Replicant Pixelfrpf2.h
- Find Replicant Pixel Faststb/
- stbstbimfrp2.c
- CLI program FRP2.stbimfrpf2.c
- CLI program FRPF2.
Find Replicant Pixel is based on image self-similarity. Synthesis of the "magnified" image is performed by searching for the most similar neighborhood on the reduced image with a back projection on the original image. Find Replicant Pixel Fast instead of finding the environment (which is very long) looks for the most similar gradients (center, horizontal, vertical and diagonal). This allows you to involve "mirror" surroundings in the search. But because of the loss of characterizing information, the synthesis becomes coarser.
See demo and compare.