![]() |
Dear All, I am trying to map an image onto a 3D surface. The image contains reference points, which with known 2D pixel coordinates. The 3D equivalent of these reference points is as well known. The 3D shape is represented by a set of X-Y-Z coordinates. For mapping the image onto a delaunay-triangulated surface I found following function: "imremap"...which - as far as I understand - should do what I want. now: "imremap" uses "interp2"...and unfortunately both functions are in octave. Converting the functions to Scilab seems to become an elephant, especially for interp2. If one could avoid "interp2" , then "imremap" could be possible relatively easy converted to Scilab. Any ideas which Scilab function would work like interp2? Thank you, Philipp _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users |
![]() |
Hi, Does interp2 works by using the triangulation ? S. Le 21 nov. 2020 à 22:56, P M <[hidden email]> a écrit :
_______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users |
![]() |
if you refer to interp2 from CGLAB toolbox....then no, I have no success with that. CGLAB call:
vp = interp2(xp,yp,x,y,v)...were xp and yp are vectors while at octave:
with:
function [warped, valid] = grayinterp(im, XI, YI, interp, extrapval)
if (strcmp(interp, "cubic"))
warped = graybicubic(double(im), XI, YI, NA);
else
warped = interp2(double(im), XI, YI, interp, NA);
endif
valid = !isna(warped);
warped(!valid) = extrapval;
endfunction
BR Philipp
Am So., 22. Nov. 2020 um 08:55 Uhr schrieb Stéphane Mottelet <[hidden email]>:
_______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users |
![]() ![]() |
Dang Ngoc Chan, Christophe |
![]() |
In reply to this post by der_Phil
Hello Philipp,
> De : users <[hidden email]> De la part de P M Envoyé : > samedi 21 novembre 2020 22:55 > > I am trying to map an image onto a 3D surface. If you are not "bound" to Scilab, then I suggest to have a look at Kitware Paraview https://www.paraview.org/ which can, as far as I remember, can import and export data before/after processing. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users |
Free forum by Nabble | Edit this page |