Code Monkey home page Code Monkey logo

denoise-discrete-morse's Introduction

MorseRecon

Dependencies

  1. Install CGAL [Version 4.14]
  2. Install Boost [Version 1.66.0]

Compile Region3D and Refine

mkdir build

cd build

cmake ..

make

Refinement

./Refine <dataset_name>

Gaussian Field

python data_generator.py <dataset_name> <std_dev>

Denoise

./Region3D dataset_name threshold

Extract

python extract_vertices.py <dataset_name> delta_for_recon

This will create a .txt file inside dataset_name directory.

Dataset file format

  1. Create a dir <dataset_name>
  2. Put the point cloud file named dataset_name_vert_Q.txt in the following format:

x_0 y_0 z_0

x_1 y_1 z_1

...

  1. ./Refine <dataset_name>: It will create a dir_name_vert_refined.txt in the dir.

  2. For denoising data_generator.py will create a .txt file in the Perseus file format. First line is 3, next line is the number of points. And to be consistent with Perseus format, please put 1 and 1 in the next two lines.

3

Number of points

1

1 

val_0

val_1

...

val_(n-1)
  1. For Noisy 3D image create a .txt file named dataset_name.txt inside dataset_name dir.
  2. Put the intensity values in the above file format.
  3. The Perseus file format can be found here. Please look at the Cubical Toplexes section.

Datasets

Please keep the folder structure intact. Note that for 3D Grayscale image data (Noisy_brain and Noisy_liver) You do not need to refine. For the points ( MotherChild ) you need to refine and then compute the Gaussian Field. For the images the gradient is already computed and saved as Perseus file format. The reconstructed faces for the images are at <dir_name> \ regions \

Output format:

v_ind_1 v_ind_2 v_ind_3 -> This is for face_0

v_ind_1 v_ind_2 v_ind_3 -> This is for face_1

These v_ind corresponds to vertices of "<dir_name>_vert.txt"

Example

Denoising

./Refine MotherChild

python data_generator.py MotherChild 24.48

./Region3D MotherChild 0.0005

python3 extract_vertices.py MotherChild 0.0005

Noisy 3D Image

./Region3D Noisy_brain 20

Denoising results

Noisy Dataset Denoised and post-processed
alt text

Paper

The paper is accepted in CGI 2021. Link https://link.springer.com/article/10.1007/s00371-021-02255-7

If you are benefitted from the code, please cite the paper as:

@article{mukherjee2021denoising,
  title={Denoising with discrete Morse theory},
  author={Mukherjee, Soham},
  journal={The Visual Computer},
  volume={37},
  number={9},
  pages={2883--2894},
  year={2021},
  publisher={Springer}
}

denoise-discrete-morse's People

Contributors

soham0209 avatar mityanony404 avatar

Watchers

 avatar  avatar

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.