Isocontour
Versión 1.4.0.0 (3,59 KB) por
Dirk-Jan Kroon
Find ISO-contour geometry in a 2D image using marching-squares, and sort the contour objects
This function ISOCONTOUR computes the isocontour geometry for a certain 2D image and isovalue. To Extract the isocontour geometry it uses Marching Squares and linear interpolation. Followed by sorting the contour geometry into separate contour-objects.
This function is the 2D equivalent of Isosurface extraction using Marching Cubes in 3D.
[Lines,Vertices,Objects]=isocontour(I,isovalue);
inputs,
I : An 2D image (grey-scale)
isovalue : The Iso-value of the contour
outputs,
Lines : An array describing all the Line-pieces of the isocontour
geomtery, with a N x 2 index list of vertices
Vertices : Vertices (Corners) of the lines M x 2 list of X,Y
coordinates
Objects : A 1 x K cell array with in every cell a list of indices
corresponding to one connect isocontour. If the isocontour
is closed then the last index value is equal to first index
value.
Citar como
Dirk-Jan Kroon (2024). Isocontour (https://www.mathworks.com/matlabcentral/fileexchange/30525-isocontour), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2010b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Volume Visualization > Scalar Volume Data >
Más información sobre Scalar Volume Data en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.