Giter Site home page Giter Site logo

gpeyre / 2012-siims-nl-ac Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 2.0 1002 KB

M. Jung, G. Peyré, L. D. Cohen. Nonlocal Active Contours. SIAM Journal on Imaging Sciences, 5(3), pp. 1022–1054, 2012.

Home Page: https://hal.archives-ouvertes.fr/hal-00650735

MATLAB 67.56% C 17.33% C++ 15.11%

2012-siims-nl-ac's Introduction

This Matlab package contains the source code to reproduce the figure of the article:

M. Jung, G. Peyré, L. D. Cohen. Nonlocal Active Contours. SIAM Journal on Imaging Sciences, 5(3), pp. 1022–1054, 2012.

Example of segmentation

========= main_nonlocal_seg.m

Non-local Active Contours, Two Non-local models: "un-normalized" (NL-U) / " normalized" (NL-N), using:

  • (1) L2-distance: pixel values (intensity, color, Gabor coefficient)
  • (2) Wasserstein distance: texture
  • (3) Motion distance using motion profiles

========= main_other_methods.m

Implements:

  • GAC,
  • CV,
  • IAC (pixel based)

Copyright (c) 2011 Miyoun Jung

2012-siims-nl-ac's People

Contributors

gpeyre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

2012-siims-nl-ac's Issues

Wrong Calculation of the Weights at the Function `compute_l2_dist_gray`

At line 39 of the function you calculate the weights of the Gaussian Kernel:

K = GauK(q1+1-length(selx):q1,q1+1-length(sely):q1);

While this tricks works well on the left side of the image, it doesn't work on its right side.
Imagine you are 2 pixels left to the boundary on the right side.
The selection of the pixel would be from far left until the center + 2 on the right of the center of the Gaussian.
Yet the selection of the weights from the Gaussian would be 2 left to the peak, the peak and then down till the boundary.

Multiplying them means multiplying them in the wrong order which creates the wrong weights.

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.