Skip to content

ImageProcessing-ElectronicPublications/stb-image-frpf2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stb-image-frpf2

The image is scaled using "Find Replicant Pixel Fast".

build

load submodules

submodules:

$ git submodule init
$ git submodule update

install dependencies

build dependencies:

  • build-essential
  • cmake
$ sudo apt-get install build-essential cmake

compilation

$ mkdir build
$ cd build
$ cmake ..
$ make

use

The first and second parameters specify the paths to the image and the result {PNG}.

./stbimfrpf2 ${IMAGE_PATH} ${IMAGE_PATH}.out.png

structure

  • dependencies.c - API stb
  • frp2.h - Find Replicant Pixel
  • frpf2.h - Find Replicant Pixel Fast
  • stb/ - stb
  • stbimfrp2.c - CLI program FRP2.
  • stbimfrpf2.c - CLI program FRPF2.

Find Replicant Pixel

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.

source

destination


See demo and compare.


Links