Gridded interpolation and gradients of 3D scattered data

Version 1.0.3 (19.1 MB) by Jin Yang
Interpolate 3D scattered data to gridded data and compute their gradients
1.9K Downloads
Updated 30 Jul 2020

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 (2024). Gridded interpolation and gradients of 3D scattered data (https://github.com/jyang526843/Scatter2Grid3D), GitHub. Retrieved .

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!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.3

Correct bugs in streamline plot.

1.0.2

Important correction: gradients F11, F12, F13 should switch with F21, F22, F23. Please ignore this message if you download version later than 1.0.2.

1.0.1

Added plot functions: (i) scatter plot; (ii) cone plot; (iii) stream line.

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.