File Exchange

image thumbnail

Gridded interpolation and gradients of 3D scattered data

version 1.0.3 (19.9 MB) by Jin Yang
Interpolate 3D scattered data to gridded data and compute their gradients

67 Downloads

Updated 30 Jul 2020

View Version History

GitHub view license on GitHub

Interpolate 3D scattered data to gridded data and compute their derivatives
% ==================================================

(i) Interpolate 3D scatterred data to gridded data
(ii) Reduce noise by applying curvature regularization [1]
(iii) Generate central difference operator [2]
(iv) Compute first order derivatives

% ==================================================
% ****** ATTENTION ******
% The "x,y,z" or "1-,2-,3-" coordinates in this exchange file correspond to
% the 1st, 2nd and 3rd indices of Matlab workspace variable. For example,
% p_meas(:,1) and p_meas(:,2) are the x- & y-coordinates of scattered points.
%
% This is a little different from some MATLAB image processing functions.
% For example, if a 3D image has size M*N*L, in this code, we always have
% the image size_x=M, size_y=N, size_z=L. If you use some Matlab computer
% vision/image post-processing function, for example, 'imagesc3D', or
% 'imagesc', or 'imshow', or 'surf', it will reads size_x=N, size_y=M, size_z=L.
%
% Please pay attention to this.

% ==================================================
I appreciate your comments and ratings to help me keep improving this code!
Please feel free to follow this code, then you will be notified with all the important updates/corrections in the future.

% ==================================================
References
[1] regularizeNd. https://www.mathworks.com/matlabcentral/fileexchange/61436-regularizend
[2] Augmented Lagrangian Digital Volume Correlation (ALDVC). https://www.mathworks.com/matlabcentral/fileexchange/77019-augmented-lagrangian-digital-volume-correlation-aldvc
[3] Streamcolor. https://www.mathworks.com/matlabcentral/fileexchange/24049-streamcolor

Cite As

Jin Yang (2020). Gridded interpolation and gradients of 3D scattered data (https://github.com/jyang526843/Scatter2Grid3D), GitHub. Retrieved .

Comments and Ratings (3)

Jin Yang

@Jason, "regularizeNd" is a well-written and effective function to help remove noise. Thank you for sharing this tool available to the community!

Jason H. Nicholson

Thanks for using regularizeNd. :)

Blackpotato

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!