Skip to content

Performs reverse processing instead of frame interpolation for single each frame. Dont use on videos!

License

Notifications You must be signed in to change notification settings

phaticusthiccy/Reverse-GAN-Interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RGANI

Reverse GAN Interpolation

Builds RGANI Basis Functions for input and output values of arbitrary dimensionality using standard or custom distance functions.

Installation

$ nope $!Note Yet

Usage

var RGANI = require('RGANI');

var points = [
  [0, 0],
  [0, 100]
];

// Girilen Değerler herhangi bir boyutun vektörleri olabilir.
var values = [
  0.0,
  1.0
]

// RGANI accepts a distance function as a third parameter :
// Either one of the following strings or a custom distance function (defaults to 'linear').
//
// - linear: r
// - cubic: r**3
// - quintic: r**5
// - thin-plate: r**2 * log(r)
// - gaussian: exp(-(r/epsilon) ** 2)
// - multiquadric: sqrt((r/epsilon) ** 2 + 1)
// - inverse-multiquadric: 1 / sqrt((r/epsilon) ** 2 + 1)
//
// Epsilon can be provided as a 4th parameter. Defaults to the average 
// Euclidean distance between points.
//
var RGANI = RGANI(points, values /*, distanceFunction, epsilon */);

console.log(RGANI([0, 50])); // => 0.5

Examples

Partial derivative of a gaussian, original and interpolated with 25 random samples (linear distance function).

Lena, original and interpolated with 4000 random samples (about 6% of the original pixels, linear distance function).

About

Performs reverse processing instead of frame interpolation for single each frame. Dont use on videos!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published