Skip to content

charoncode/ShapeGraph_H2match

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShapeGraph_H2match

This repository houses code for performing relaxed weighted shape graph matching with second order Sobolev metrics, which allows one to compute elastic distances and geodesics between shape graphs of any underlying topology.

References

The code is a MATLAB implementation of the numerical optimization scheme proposed in A new variational model for the analysis of shape graphs with partial matching constraints by Yashil Sukurdeep, Martin Bauer and Nicolas Charon. For details, we refer to our paper:

@article{sukurdeep2022new,
  title={A new variational model for shape graph registration with partial matching constraints},
  author={Sukurdeep, Yashil and Bauer, Martin and Charon, Nicolas},
  journal={SIAM Journal on Imaging Sciences},
  volume={15},
  number={1},
  pages={261--292},
  year={2022},
  publisher={SIAM}
}

Please cite our paper in your work.

Dependencies

The code was tested on MATLAB R2020b. The following MATLAB Toolbox is required:

  • MATLAB Bioinformatics Toolbox

The code incorporates the following libraries:

All relevant source code from these libraries are already included in this repository.

Usage

To use this code, proceed as follows:

  • Load (or define) the source and target shape graph structures.
  • Select parameters for:
    • The relaxed matching objective function by defining the objfun structure.
    • The optimization procedure by defining the optim structure.
  • Run the matching using the shapegraph_h2match function.
    • An example call looks like:
[optPath, transfSource, transfTarget, updatedSource, summary] = shapegraph_h2match(source, target, 'objfun', objfun, 'optim', optim);
  • Visualize the results from the matching process using the shapegraph_h2match_viewresult function.

See the demo files in the "demo" folder for extensive details about the procedure outlined above.

Examples

The demo scripts also illustrate our code's ability to perform shape registration with partial matching constraints and topological inconsistencies.

  • demo_leaves.m registers two Swedish leaves with partial matching constraints.

drawing

  • demo_branches.m registers two synthetic shape graphs with inconsistent topologies.

drawing

Licence

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Contact Information

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages