Giter Site home page Giter Site logo

garyptchoi / spherical-conformal-map Goto Github PK

View Code? Open in Web Editor NEW
36.0 2.0 6.0 3.53 MB

Spherical conformal map for genus-0 closed surfaces

License: Apache License 2.0

MATLAB 100.00%
conformal geometry graphics mapping mesh parameterization engineering medical spherical conformal-mapping

spherical-conformal-map's Introduction

Spherical Conformal Map

spherical_conformal_map: Conformally map a genus-0 closed triangle mesh to the unit sphere

This code computes spherical conformal (i.e. angle-preserving) maps of genus-0 closed triangle meshes using the linear method in [1], which has been applied for human brain mapping, texture mapping, surface registration, cardiac mapping and so on.

Any comments and suggestions are welcome.

If you use this code in your own work, please cite the following papers:

[1] P. T. Choi, K. C. Lam, and L. M. Lui, "FLASH: Fast Landmark Aligned Spherical Harmonic Parameterization for Genus-0 Closed Brain Surfaces." SIAM Journal on Imaging Sciences, vol. 8, no. 1, pp. 67-94, 2015.

(For mobius_area_correction_spherical) [2] G. P. T. Choi, Y. Leung-Liu, X. Gu, and L. M. Lui, "Parallelizable global conformal parameterization of simply-connected surfaces via partial welding." SIAM Journal on Imaging Sciences, vol.13, no. 3, pp. 1049-1083, 2020.

Copyright (c) 2013-2024, Gary Pui-Tung Choi

https://www.math.cuhk.edu.hk/~ptchoi

===============================================================

Usage (see demo.m):

  • map = spherical_conformal_map(v,f)

Input:

  • v: nv x 3 vertex coordinates of a genus-0 triangle mesh
  • f: nf x 3 triangulations of a genus-0 triangle mesh

Output:

  • map: nv x 3 vertex coordinates of the spherical conformal map

===============================================================

An extension is also provided (see demo_extension.m):

  • mobius_area_correction_spherical: We further reduce the global area distortion of a spherical conformal parameterization while maintaining the conformality, using the Mobius area correction method in [2].

spherical-conformal-map's People

Contributors

garyptchoi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spherical-conformal-map's Issues

How to convert an obj file to .m file the algorithm needed?

Thanks for your sharing ! I have a .nrrd medical file of hippocampus segmentation and I want to use your code to map the hippocampus to sphere, then I convert .nrrd file to obj file using slicer. I want to convert the .obj file to .m file the algorithm needed.The .m file is consisted of three variable: vertex ,face and mean_curv. What is mean_curv ? And could it converted from .obj file?
Or is there any easy way to create a mat for hippocampus surface which is a .nrrd file or .obj file as input ? I really appreciate if you could reply to me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.