3.66667

3.7 | 6 ratings Rate this file 60 downloads (last 30 days) File Size: 1002 Bytes File ID: #5229

Gaussian Curvature

by Ahmed Elnaggar

 

11 Jun 2004 (Updated 15 Jun 2004)

No BSD License  

Given a surface of point cloud data (x,y,z), the output is a matrix containing gaussian curvature.

Download Now | Watch this File

File Information
Description

The input should be matrix containing points in (x,y,z). The output is the gaussian curvature at each point. The calculation is based on the first and second fundamental form. In order to calculate the k1 and k2, you need to use the first file 'mean curvature'.

MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
23 Jul 2004 Claude Gouédard

Matlab is teaching elementary school students
not to use loops !
From a teaching point of vue, again, I propose to modify your function in this way.

04 Mar 2005 lala conde

Thanks for your work.

22 Nov 2005 Daniel Claxton

Thankyou for this code. I was just thinking of writing it myself and was pleased to see someone had already done it. As for Claude's comment, I don't think he is being fair or constructive. So, with that said, I have done a bit of optimization and vectorized your code. It seems to be running about 65 times faster... I'll post it soon

06 Mar 2007 ali samer

its very good

04 Apr 2007 lin van

what is z standing for

11 Jun 2007 Dr R P GUPTA

Excellent

07 Mar 2008 S. D.

Poor loopy code...

10 Jun 2009 Atul Kumar

I am not able to run the code on point cloud data. Does x,y,z means three coordinates of the data or a meshgrid??

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gaussian curvature Ahmed Elnaggar 22 Oct 2008 07:23:30
mean curvature Ahmed Elnaggar 22 Oct 2008 07:23:30
second Ahmed Elnaggar 22 Oct 2008 07:23:31
first fundamental form Ahmed Elnaggar 22 Oct 2008 07:23:31
mean curvature Antti Niemistö 15 Jul 2009 14:41:50
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com