Meshgrid
This is a very simple function to find the local maximum in any dimensional array. As simple as it is it still gives nice results.I use the imdilate() function as a maximum operation and then compare the data to the result.The function receives three parameters:the data, a vector defining the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): local maxima minima Download |
STREAMCOLOR(X,Y,U,V,STARTX,STARTY,VMAG) or STREAMCOLOR(X,Y,Z,U,V,W,STARTX,STARTY,STARTZ,VMAG) creates streamlines from 2D or 3D vector data U,V,W. The arrays X,Y,Z define the coordinates for U,V,W and must be monotonic and 3D plaid (as if produced by MESHGRID). STARTX, STARTY, and STARTZ define...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Streamcolor Download |
Takes in a point cloud in xyz format, and then converts that into a MATLAB-style grid with a latitude vector, longitude vector, glat/glon grid (made using meshgrid), and a z (altitude) matrix. It then saves these into a specified output .mat file.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): pcloud2grid Download |
Converts a regular mesh defined by X,Y and Z into a regular triangulation. The output is patch data (triangles) in the faces d-deDUFd-deDt and vertices d-deDUVd-deDt format. The quadrilateral mesh faces are converted to triangles by splitting the faces into triangles according to the setting...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): mesh2tri Download |
This program performs arithmatic operations +, -, * and / on an image voxel by voxel. It takes in offset to let users select the region toiterate. It is useful for image analysis and processing when more control is needed than using Matlab meshgrid function. This is a part of InSPIREsoftware...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (38): InSPIRE utility to iterate each voxel and perform an operation Download |
This m file constructs the meshgrid needed to rended the classic Klein bottle. It takes a variable parameter list: the longitudinal resolution, the rotational resolution, the size of the "handle loop", the size of the base and the height of the body.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Klein Bottle Download |
JSURF is similar in almost all respects to the standard SURF plot except that it admits a second matrix T of z-coordinates of size [m,n] that is used to plot over the base surface described by coordinates (x,y,z). JSURF(x,y,z,T) plots the 3D surface T onto the surface described by (x,y,z)....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Jsurf Download |
[Fs,Vs]=subtri(F,V,n)Sub-triangulates the triangles defined by the patch format data F (faces) and V (vertices). Can be used to increase the density of triangulated data or to triangulate the icosahedron to create geodesic sphere triangulations with desired density.Creates n addition points on...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): subtri Download |
This function computes at (Xi,Yi) unknown locations the IDW (w P=1, Q=1 yields interpolation at one point --> P>1, Q=1 yields interpolation at a vector of points --> P>1, Q>1 yields interpolation at a (ir)regular grid of points======================================== INPUTS Xc: (mandatory) [Nx1]...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Inverse Distance Weighted (IDW) or Simple Moving Average (SMA) INTERPOLATION Download |
This program represents a further development of the standard powerful d-deDUnlinfitd-deDt facility already in matlab. The major problem with d-deDUnlinfitd-deDt is that it can only handle fitting of one dimensional arrays (x, y) where x is the independent variable and y is the dependent one.The...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (46): Two Dimensional Surface Fitting Program Download |
Suppose that you have a signal Y (Y can be a time series, a parametric surface or a volumetric data series) corrupted by a Gaussian noise with unknown variance. It is often of interest to know more about this variance. EVAR(Y) thus returns an estimated variance of the additive noise.EVAR provides...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Noise variance estimation Download |
This function generates patch data (faces d-deDUFd-deDt, vertices d-deDUVd-deDt and color data d-deDUCd-deDt) for 3D images. The patches are only generated for the voxels specified by the linear indices in d-deDUINDd-deDt. The variable d-deDUptyped-deDt indicatesthe type of patch:d-de?vd-deOao...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): ind2patch Download |
% Fast nearest, bi-linear and bi-cubic interpolation for image data%% Usage:% ------% Z = ba_interp2(F, X, Y, [method])%% where method is one off nearest, linear, or cubic.%% F is a WxHxD Image with an arbitrary number of layers D.% X, Y are I_1 x ... x I_n matrices with the x and y coordinates...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 1.89 MB | Download (43): Image Interpolation (ba_interp2) Download |
The code is probably not very efficient, as it contains a for loop. Any improvement ideas are welcomed.example:ParameterMatrix=abs(meshgrid(0:199)-100) / 20;inputimg = double(checkerboard(10,10,10)>0.5);blurred=VariableBlur(inputimg, ParameterMatrix);imagesc(blurred);colormap(gray);
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Variable blur, gradient blur Download |
STLWRITE(FILE,fv) writes a stereolithography (STL) file to FILE for a triangulated patch defined by FV (a structure with fields 'vertices' and 'faces'). STLWRITE(FILE,FACES,VERTICES) takes faces and vertices separately, rather than in an FV struct STLWRITE(FILE,X,Y,Z) creates an STL file from...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (52): stlwrite - Write binary or ascii STL file Download |
histnd Histogram count of ND data with ND bins histmat = histnd(x, y, ..., xedges, yedges, ...) Extract ND histogram data containing the number of events of [x, y, ...] tuples that fall in each bin of the ND-grid defined by xedges, yedges, .... The edges are passed to histc internally and should...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): histograms for ND data Download |
DRAGZOOM allows you to interactively manage the axes in figure. This simple function for usable dragging and zooming of axes, rotate 3D axes, using the mouse and the keyboard shortcuts.Features:- Supports 2D-Plots, 3D-plots, Log plots and Images- Supports multiple mixed (subplots) (2D, 3D) axes...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (44): DRAGZOOM - Drag and zoom tool Download |
This function makes it easy to display a mesh directly above a grayscale image. The mesh can use any colormap and can be at variable heights above the image. The example, which requires the IPT, is the screenshot.help meshCanopy function meshCanopy: display a mesh above a grayscale image SCd...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): meshCanopy Download |
This function generates output files for Javaview (www.javaview.de). It allows to display and interact with 3d-Graph not only in the javaview engine, but also in html-Documents. See javaview documentation for more information about how to interact. This function depends of the installed...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 583.68 KB | Download (50): Create 3D-interactive HTML File from MATLAB surface, Part2 Download |
ARCGRIDWRITE converts data in a matlab grid (as produced by eg. meshgrid and griddata) into a text file in Arc ASCII Grid Format. The file can also be automatically converted to raster on PC's with ARCINFO installed. EXAMPLE - create a raster grid of the peaks...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): ARCGRIDWRITE Download |