Convex Polygon
This builds a navigation GUI for navigating n-dimensional convex Pareto surfaces interactively. It requires linprog from theoptimization toolbox, but can probably be replaced easily with a free version. The linear programs solved during navigation are very small and easy. It is assumed that all...
Platforms: Matlab
License: Freeware | Size: 133.12 KB | Download (38): Pareto surface navigator Download |
Let d < N be a positive integer and define p = N/d. Let y_{1} be a point on the unit circle. Let R be clockwise rotation by the angle t = 2*pi/p. The generalized regular polygon {p} is given by the points y_{i+1} = R * y_{i}, and edges between points i and i+1.Example:polygon(9, 4, 1);
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): Regular Polygons Download |
In large scale mapping projects with numerous satellite images, it is useful to have a vector file depicting the boundary of the images. This script when run from the folder containing the images, it automatically detects the geotiffs and extracts their image area boundary and constructs a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): GeoTiff PathRow Download |
discintersect: to caculate the intsection between 2 discpolydiscint: to caculate the intsection between disc and polygonplotdisc: to plot the disc in 3D
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): Caculate the intsection between 2 discs or disc with polygon Download |
ReadImageJROI - FUNCTION Read an ImageJ ROI into a MATLAB structureUsage:[sROI] = ReadImageJROI(strFilename)[cvsROIs] = ReadImageJROI(cstrFilenames)[cvsROIs] = ReadImageJROI(strROIArchiveFilename)This function reads the ImageJ binary ROI file format.'strFilename' is the full path to a '.roi'...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Import ImageJ ROIs Download |
This functions goal is to find a polygon which enclosures a user supplied mask. It's a kind of a complementary of Matlab poly2mask function. The difference is that all contour points are returned- without missing points for linearly related points. In order to get a 100% complementary of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): mask2poly Download |
This function PATCHT, will show a triangulated mesh like Matlab function Patch but then with a texture. patcht(FF,VV,TF,VT,I,Options); inputs, FF : Face list 3 x N with vertex indices VV : Vertices 3 x M TF : Texture list 3 x N with texture vertex indices VT : Texture Coordinates s 2 x K, range...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 184.32 KB | Download (40): Texture Patch Download |
calculates surface area A and its standard uncertainty uA for any arbitrary polygon in a plane given by coordinates x and y and their respective standard uncertainties ux and uy. The inputs are assumed to be VECTORS, x, ux, y and uy all should have the same size. The uncertainties are assumed to...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): determine surface area and uncertainty from points in a plane Download |
A function which gives the area of a 3D planar polygon which does not lie in the x-y plane.AREA3D(X,Y,Z) calculates the area of a polygon in space formed by vertices with coordinate vectors X,Y and Z. If the coordinates of vertex v_i are x_i, i and z_i twice the area of a polygon is given by:2...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (38): area3D Download |
Triangulate a set of points on the unit sphere using idea of stereographical projection.Steps:1. use the first vertex as projection center, project all the points onto a plane2. call delaunay triangulation to triangulate those points on the plane3. fill the hole by connecting the first vertex to...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): Triangulate vertices on a sphere Download |
When interpolating on a given data set, convhull is used to set the boundaries of the interpolation area. Because convhull only minimizes the outline length, there might be interpolation lines which are unwanted (see figure).hullfit tries to minimze the polygon area instead resulting in a hull...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (39): hullfit Download |
Accepts a list of x and y coordinates. First, we find the smallest circumscribing polygon from this list (convhull). Finally, we use this polygon's coordinates to find the smallest circumscribing circle. We find the circle by minimizing the distance of the circle center to the polygon's...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): circum circle Download |
scatterquad2(X,Y,Z) finds the volume under the surface defined by the points (X(i),Y(i),Z(i)) with linear interpolation on the Delaunay triangulation of (X,Y) and Z=0 outside the convex hull of (X,Y).Example:load seamountscatterquad2(x,y,z-min(z)) % returns 190.7996inR = (x>=211.1 & x=-48.35 & y
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): scatterquad2 Download |
This submission contains VERT2LCON and LCON2VERT, which will find the linear constraints defining a bounded polyhedron in R^n, given its vertices, or vice versa. They are extensions of Michael Kleder's VERT2CON and CON2VERT functions that can handle cases where the polyhedron is not solid in R^n,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Representing Polyhedral Convex Hulls by Vertices or (In)Equalities Download |
This function tries to improve the slow Matlab INPOLYGON function.There are few other fast codes on FEX (e.g., by Darren Engwirda). After exploring many different ways, I come to the conclusion that Darren Engwirda's approach is close to optimal. So here you'll find a general method that share...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): 2D polygon interior detection Download |
Read and Write Wavefront OBJ geometry and MTL files.A Wavefront Geometry Object file is supported by many 3D programs, it looks like:v 0.000000 2.000000 0.000000v 0.000000 0.000000 0.000000v 2.000000 0.000000 0.000000v 2.000000 2.000000 0.000000% Vertices Coordinates 4f 1 2 3 4% Faces 1The...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 204.8 KB | Download (53): Wavefront OBJ toolbox Download |
Find the intersection points of the edges of two 2D polygons, a simple function made to follow up a Newsgroup discussion
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): 2D Polygon edges intersection Download |
This software implements the fast continuous max-flow algorithm to 2D/3D multi-region image segmentation (Potts model). It provides three implementations: matlab, C and GPU (cuda based). All the source files are provided. So it is easy for you to incorporate the algorithms in your own...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 6.59 MB | Download (39): Fast Continuous Max-Flow Algorithm to 2D/3D Multi-Region Image Segmentation Download |
This is a mex wrapper for Angus Johnson's Clipper library: http://www.angusj.com/delphi/clipper.php, based on Sebastian HdoTAlz's mex wrapper for the GPC library. This library has some speed advantages over GPC, but the primary addition is the ability to offset polygons. In order to use this, you...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Polygon Clipping and Offsetting Download |
Program for global minimization of a concave function. We implement the algorithm of Harold. P Benson which can be found in the paper " A Branch and Bound-Outer Approximation Algorithm for Concave Minimization over a Convex Set"The provided function finds the global minimum of a concave function...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Function for global minimization of a concave function Download |