CPLofimage
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 3.6, Creation date: 2017-03-16, Last change: 2025-09-14
returns a point list related to matlab;s contour fnct
Description
based on matlab's contour to accelerate the function VLofimage. If image I is a struct, I is converted into a gray scale image by: I=1/s(3)*sum(I.cdata,3)
See Also: , VLofimage
Example Illustration
Syntax
CPL=CPLofimage(I,[n,f])
Input Parameter
I: | | image |
n: | | number of contours |
f: | | if true create a zero frame around; default is false |
Output Parameter
Examples
figure; axis off; text(0.5,0.5,'This is a Test', 'FontSize',16); I=getframe(gcf)
CPLofimage(I)
CPLofimage(I.cdata(:,:,1)<240)
I.cdata=squeeze(I.cdata(:,:,1)); CPLofimage(I)
Copyright 2017-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