{"id":28922188,"url":"https://github.com/johannesu/point-cloud","last_synced_at":"2025-06-29T14:33:26.184Z","repository":{"id":31858790,"uuid":"35426419","full_name":"johannesu/point-cloud","owner":"johannesu","description":"Curvature-based point-cloud regularization","archived":false,"fork":false,"pushed_at":"2015-08-02T14:07:19.000Z","size":1320,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T07:44:21.186Z","etag":null,"topics":["curvature","regularization"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johannesu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-11T13:43:08.000Z","updated_at":"2025-05-16T15:41:54.000Z","dependencies_parsed_at":"2022-08-29T13:10:54.093Z","dependency_job_id":null,"html_url":"https://github.com/johannesu/point-cloud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johannesu/point-cloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannesu%2Fpoint-cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannesu%2Fpoint-cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannesu%2Fpoint-cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannesu%2Fpoint-cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johannesu","download_url":"https://codeload.github.com/johannesu/point-cloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannesu%2Fpoint-cloud/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261273607,"owners_count":23133820,"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":["curvature","regularization"],"created_at":"2025-06-22T07:38:27.743Z","updated_at":"2025-06-29T14:33:26.173Z","avatar_url":"https://github.com/johannesu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Implementation of [1] written in MATLAB and C++.\n\n![Example](examples/example.png)\n\nThe code uses the roof duality code from [2].\n\nThe code has been tested on:\n* Windows 7, MATLAB 2015a, Visual Studio 2013.\n* Ubuntu 14.04, MATLAB 2015a, GCC 4.8.2.\n\n\nGetting started \n----------\nThe code requires [SPII](https://github.com/petters/spii), which is used to perform local optimization via automatic differentiation. \n\n\n#### Windows \nUpdate include/compile_script.m with the correct folders to Eigen and SPII:\n```\n...\n%%%%%%%%%\n% ACTION REQUIRED:\n% Point this to your Eigen include directory.\nextra_args{end+1} = '-I\"C:\\Program Files\\Eigen\"';\n%%%%%%%%\n\n% Default installation directories for Spii\nextra_args{end+1} = '-I\"C:\\Program Files\\SPII\\include\"';\nextra_args{end+1} = '-L\"C:\\Program Files\\SPII\\lib\"';\n...\n```\n\n### Linux/OSX\n\nInstall SPII in the default path.\n\n#### Examples\nA good place to start is with the two scripts:  \n* examples/example_2D.m\n* examples/example_3D.m\n\n#### Extend\n\nIf you like to add a new cost function update three files and remove the old mex files:\n\n* __include/PointCloud.h__ add a new functor, e.g: \n```\nclass My_regularization { ...\n```\n\n* __include/mex_wrapper.h__ update with the new functor, e.g.:\n\n```\n...\n} else  if (!strcmp(problem_type,\"my_cost\")){\nmain_function\u003cQuadratic_data, My_regularization\u003e(nlhs, plhs, nrhs, prhs);\n} else \n...\n```\n\n* __PointCloud.m__ update to allow the new cost function, e.g:\n```\ncase {'linear','quadratic', 'default', 'length', 'my_cost'}\n```\n\n* Remove the mex-files in /include\n\n* You can now switch to the new function as:\n```\nObj.cost_function = 'myCost';\n```\n\n#### Code authors\n* Johannes Ulén\n* Carl Olsson\n\nReferences\n----------\n\n1. __Curvature-based regularization for surface approximation__. \u003cbr /\u003e\nIEEE Conference on Computer Vision and Pattern Recognition, 2012 \u003cbr /\u003e\n_C. Olsson and Y. Boykov_.\n\n2. __Optimizing binary MRFs via extended roof duality__. \u003cbr /\u003e\nIEEE Conference on Computer Vision and Pattern Recognition, 2007. \u003cbr /\u003e\n_C. Rother, V. Kolmogorov, V. Lempitsky, and M. Szummer_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohannesu%2Fpoint-cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohannesu%2Fpoint-cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohannesu%2Fpoint-cloud/lists"}