TR2ofimage
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - VM/Voxels
Introduced first in SolidGeometry 2.1, Creation date: 2015-01-20, Last change: 2025-09-14
returns a Delaunay triangulation for a grayscale image
Description
Type = 0 => triangulation contains all pixels and pixel facets
Type = 1 => triangulation contains only triangulated boundary facets
WARNING: This function contains a real Matlab coding bug: If the two lines of function TR2reduce are directly inserted in the code, an error occurs by the isInterior procedure that is not explainable.
Example Illustration
Syntax
TR2=TR2ofimage(I,[t])
Input Parameter
I: | | Image nxm |
t: | | type of triangulation (default is 1) |
Output Parameter
TR2: | | delaunay triangulation |
Examples
Analyze dicom images:
subplot (1,2,1); TR2ofimage (I1>1400,0);
subplot (1,2,2); TR2ofimage (I1>1400,1);
Copyright 2015-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21