rbf
Arguments:
- dx,_x0,_x1,_phi(r) or
- dx,dy,_x0,_y0,_x1,_y1,_phi(r) or
- dx,dy,dz,x0,y0,z0,x1,y1,z1,phi(r)
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
sample colorful,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: sample colorful,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: sample colorful,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: sample colorful,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
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
G'MIC is an open-source software distributed under the
CeCILL free software licenses (LGPL-like and/or
GPL-compatible).
Copyrights (C) Since July 2008,
David Tschumperlé - GREYC UMR CNRS 6072, Image Team.