Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
C# QR Code Generator 4.0.2.2
Salesforce WordPress Customer Portal 3.2.0
Single Leg MLM 1.2.1
OzGIS 14.6
Quick Maps For Dynamics CRM 3.1
Job Board Software 4.2
PHP Real Estate Script 1.3.2
IP2Location Geolocation Database April.2019
dbForge Data Generator for Oracle 2.1
VisualNEO Web 2018.12.15
SentiMask SDK Trial 1.0.0
OrgChart JS 4.6.4
dotConnect for BigCommerce 1.8
FedEx Smart Shipping For Magento 1.0.0
Database Workbench Pro 5.6.2.311
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Modbus RS232 ASCII Communication Functions 1.0
CardCheck COM DLL for Credit Card Processing 1.1
Efficient K-Means Clustering using JIT 1.0
webmoney - Webmoney payment gateway 5.x-1.2
Azizi search engine script PHP 4.1.10
Cuckoo Search (CS) Algorithm 1.0
Hyperion Tools 1.0
bit plane slicing 1.0
PasDos 1.0
Another PHP Counter 1.0
JavaScript Webix DataView 1.7
mCore Pro - SMS & WAP Push Component 1.VI
vNews 1.II
Strx Simple Sharing Sidebar Widget 2.0.2
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
Smoothing 2D Contours Using Local Regression Lines 1.0
File ID: 83918






Smoothing 2D Contours Using Local Regression Lines 1.0
Download Smoothing 2D Contours Using Local Regression Lines 1.0http://www.codeproject.com/Report Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 16
Submit Rating:
Smoothing 2D Contours Using Local Regression Lines 1.0 Description
Description: A contour of a 2D region is defined by an ordered set of points where the neighboring elements contain the neighboring points. Such representation can be obtained with many techniques such as boundary tracing and chain codes. (In a simple 2D point set or a curve the points do not have to lie in a specific order.)

The contour smoothing is done by projecting all the contour points onto the local regression line. For each point, N neighboring points which lie on the contour are sampled on each side and a local regression line is computed. Then the current point is projected on this line. Applying this algorithm to all the points smooths the contour and in a way brings the points closer. 2N+1 is the number of total points contributing to the computation of the local regression line. The higher the number of points, the smoother the curve.

Because of the linear nature of fitting, when too much smoothing is desired, the algorithm loses important features such as corners, and gets confused in such critical regions. This in a way is a wrong over-smoothing. A way to be less prone to such errors is to use gaussian weighted least squares fit. For this purpose I use Andrey Sokolov's line fitting. Here is the link:
http://www.mathworks.com/matlabcentral/fil...l-least-squares

In the test code, a contour is obtained using chain codes (bwtraceboundary) and smoothed. The example is taken from a real application

License: Shareware

Related: important, loses, desired, Features, corners, critical, confused, Fitting, Nature, computation

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 16



More Similar Code

This function will perform a local regression at the given points. Using the data at hand. You will need to input a spanwidth which will tell the function how many datapoints he will use in the local regression at each evaluation.

Example Code

X=-5:0.05:10;
X=X';
y=2*X-X.^2;
y=y+normrnd(0,2,size(y));
scatter(X,y)
X0=X;
robust=1;
spanwidth=0.4
X0=[-5:0.1:10]';



Update 2011: An example application is included which shows a 2D plot using Matlab formulas. Requires MFC. Visual Studio 2008 is recommended, but the project should work in other versions.

Another update is more correct support for...



cudaconv - Performs 2d convolution using an NVIDIA graphics chipset.

For large datasets (~1 million elements) and especially for large kernels (performance does not scale much with kernel size) cudaconv can outperform conv2 by as much...



Faces detection toolbox v 0.2
-----------------------------

This toolbox provides some tools for faces detection/classification using Local Binary Patterns (and some variants) and Haar features.
Face detection is performed by...



createTable creates a 2D java-based table that enables display, editing and sorting of 1D and 2D data using familiar look-and-feel. Columns can be resized and sorted; data can be selected, printed, copied, pasted etc., including to/from Excel;...



plot_lines(xin) - Plots vertical lines at points defined on the x-axis using red solid lines and the current y-axis limits using a single line handle

plot_lines(xin,[a b]) - Plots the lines from a to b



ZoloLib is an open source game engine designed for making 2D games using windows and DirectX9.



Standard GLCM textural analysis often doesn't give good results unless a large number of global classes are used (and using a large number of classes brings other problems). Using local classes helps, but the results are sensitive to noise. This...



The selection of components to generate two dimensional Cartesian plots with:unlimited number of axis (secondary axis)manifold options for scaling, grids, legendsautomatic scalingautomatic zoomingunlimited number of seriesmanifold line and point...



SmoothLn is a component that is descended from the Paintbox component. It adds 10 pages of Device Independent Bitmaps that can be used to draw images using anti-aliased lines, arcs, ellipses and polygons. It also includes a number of bitmap...

User Review for Smoothing 2D Contours Using Local Regression Lines
- required fields
     

Please enter text on the image