Reference

Table of Contents  ▸  List of Commands  ▸  Filtering  ▸  rbf◀  periodize_poisson    |    red_eye  ▶

rbf

Arguments:

Description:

Reconstruct 1D/2D or 3D image from selected sets of keypoints, by RBF-interpolation.

A set of keypoints is represented by a vector-valued image, where each pixel represents a single keypoint.
Vector components of a keypoint have the following meaning:
For 1D reconstruction: [ x_k, f1(k),...fN(k) ].
For 2D reconstruction: [ x_k,y_k, f1(k),...,fN(k) ].
For 3D reconstruction: [ x_k,y_k,z_k, f1(k),...,fN(k) ].
Values x_k,y_k and z_k are the spatial coordinates of keypoint k.
Values f1(k),..,fN(k) are the N components of the vector value of keypoint k.
The command reconstructs an image with specified size dx'x'dy'x'dz, with N channels.

Default values:

x0=y0=z0=0, x1=dx-1, y1=dy-1, z1=dz-1, phi(r)=r^2*log(1e-5+r).

Examples of use:

• Example #1

$ gmic sp colorful r2dx 400 100%,100% noise_poissondisk. 10 1,{is},1,5 eval[-2] "begin(p=0);i?(I[#-1,p++]=[x,y,I(#0)])" to_rgb[1] mul[0,1] dilate_circ[0] 5 +rbf[-1] {0,[w,h]} c[-1] 0,255

Command: sp colorful r2dx 400 100%,100% noise_poissondisk. 10 1,{is},1,5 eval[-2] "begin(p=0);i?(I[#-1,p++]=[x,y,I(#0)])" to_rgb[1] mul[0,1] dilate_circ[0] 5 +rbf[-1] {0,[w,h]} c[-1] 0,255
Command: sp colorful r2dx 400 100%,100% noise_poissondisk. 10 1,{is},1,5 eval[-2] "begin(p=0);i?(I[#-1,p++]=[x,y,I(#0)])" to_rgb[1] mul[0,1] dilate_circ[0] 5 +rbf[-1] {0,[w,h]} c[-1] 0,255
Command: sp colorful r2dx 400 100%,100% noise_poissondisk. 10 1,{is},1,5 eval[-2] "begin(p=0);i?(I[#-1,p++]=[x,y,I(#0)])" to_rgb[1] mul[0,1] dilate_circ[0] 5 +rbf[-1] {0,[w,h]} c[-1] 0,255

• Example #2

$ gmic 32,1,1,5,u([400,400,255,255,255]) rbf 400,400 c 0,255

Command: 32,1,1,5,u([400,400,255,255,255]) rbf 400,400 c 0,255