{"id":28908651,"url":"https://github.com/mattools/polynomialcurves","last_synced_at":"2025-07-04T04:32:23.094Z","repository":{"id":53820148,"uuid":"459994676","full_name":"mattools/polynomialCurves","owner":"mattools","description":"Representation of smooth curves using polynomial-based parameterisations","archived":false,"fork":false,"pushed_at":"2022-02-18T11:02:44.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-01T14:26:31.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-16T12:28:36.000Z","updated_at":"2022-08-05T11:46:53.000Z","dependencies_parsed_at":"2022-08-22T01:20:56.467Z","dependency_job_id":null,"html_url":"https://github.com/mattools/polynomialCurves","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/mattools/polynomialCurves","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FpolynomialCurves","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FpolynomialCurves/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FpolynomialCurves/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FpolynomialCurves/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattools","download_url":"https://codeload.github.com/mattools/polynomialCurves/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FpolynomialCurves/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261160554,"owners_count":23118185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-21T16:41:14.051Z","updated_at":"2025-07-04T04:32:23.080Z","avatar_url":"https://github.com/mattools.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polynomial Curves\n\nManipulation of smooth curves with Matlab, by considering a polynomial for each coordinate.\n\nRequires the MatGeom toolbox.\n\nPlease note that the project is no longer maintained.\n\n## Installation\n\nFirst download or clone the project. \n\nTo install the library, you simply need to add the path to the main directory of the library :\n\n    \u003e\u003e addPath('basePath/polynomialCurves2d');\n\n\n## Quick example\n\nThe package was originally designed to simplify and smooth the display of skeletons as obtained from binary images.\nLet us start by computing the skeleton of a binary image (image is provided with Matlab).\n  \n    % Fit a set of curves to a binary skeleton\n    img = imread('circles.png');\n    \n    % compute skeleton, and ensure one-pixel thickness\n    skel = bwmorph(img, 'skel', 'Inf');\n    skel = bwmorph(skel, 'shrink');\n    figure; imshow(skel==0)\n\n![Skeleton of a binary image](https://github.com/mattools/polynomialCurves/blob/main/demos/circles_skeleton.png)\n\nFrom the skeleton image, it is possible to compute a series of polynomial curves.\nThe result is given as a cell array, each cell containing the data for a single curve.\n\n    % compute coeff of each individual branch\n    coeffs = polynomialCurveSetFit(skel, 2);\n    \n    % Display segmented image \n    figure; imshow(~img); hold on;\n    \n    % overlay curves\n    for i = 1:length(coeffs)\n        hc = drawPolynomialCurve([0 1], coeffs{i});\n        set(hc, 'linewidth', 2, 'color', 'g');\n    end\n\n![Overlay of skeleton curves over original image](https://github.com/mattools/polynomialCurves/blob/main/demos/circles_skeletonCurves.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattools%2Fpolynomialcurves","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattools%2Fpolynomialcurves","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattools%2Fpolynomialcurves/lists"}