Giter Club home page Giter Club logo

cpab-diffeo-julia's Introduction

Julia Implementation of CPAB transformations

This is a Julia implementation of CPAB transformations based on [Freifeld et al., ICCV '15] . For a the original CUDA/Python implementation (with more options than currently appear here), please see https://github.com/freifeld/cpabDiffeo.git

This software is released under the MIT License (included with the software). Note, however, that using this code (and/or the results of running it) to support any form of publication (e.g.,a book, a journal paper, a conference paper, a patent application, etc.) requires you to cite the following paper:

@inproceedings{freifeld2015transform,
    title = {Highly-Expressive Spaces of Well-Behaved Transformations: Keeping It Simple},
    author = {Oren Freifeld and S{\o}ren Hauberg and Kayhan Batmanghelich and John W. Fisher III},
    booktitle = {International Conference on Computer Vision (ICCV)},
    address = {Santiago, Chile},
    month = Dec,
    year = {2015}
}

Author

Angel Yu (email: [email protected])

Requirements

  • Julia 0.4.2
  • Python with matplotlib (required by the Julia package PyPlot)
  • Julia Packages: DistributedArrays, Distributions, Images, PyPlot, ImageMagick, MAT (only to run the example scripts)
  • To install these packages run the following commands in a Julia terminal:
Pkg.add("DistributedArrays")
Pkg.add("Distributions")
Pkg.add("Images")
Pkg.add("PyPlot")
Pkg.add("ImageMagick")
Pkg.add("MAT")
Pkg.update()
  • ImageMagick might not work on OSX systems. In that case, you can use QuartzImageIO by running:
Pkg.add("QuartzImageIO")

Instructions

There are a few demo scripts under "examples" which illustrates the use of this implementation. To run the demos, you would first need to navigate to the "examples" directory and open a Julia terminal there.

To run the demo script showing integration of a 1D CPAB transformation in serial, run the following command:

include("demoIntegrate1DSerial.jl")

The image that results from running this script is located in "example/result_images/1d_integration.png"

To run the demo script showing integration of a 1D CPAB transformation in parallel using, say, 2 CPU cores (you can use as many cores as your machine has):

addprocs(2) # 2 processes
include("demoIntegrate1DParallel.jl")

To run the demo script showing integration of a 2D CPAB transformation in serial:

include("demoIntegrate2DSerial.jl")

The image that results from running this script is located in "example/result_images/2d_integration.png"

To run the demo script showing integration of a 2D CPAB transformation in parallel:

addprocs(2) # 2 processes
include("demoIntegrate2DParallel.jl")

To run the demo script showing landmark warping inference using Metropolis' Algorithm:

include("demoMetropolis2D.jl")

The image that results from running this script is located in "example/result_images/metropolis.png"

To run the demo script showing landmark warping inference using Particle Filter in serial:

include("demoParticleFilter2DSerial.jl")

The image that results from running this script is located in "example/result_images/particle_filter.png"

To run the demo script showing landmark warping inference using Particle Filter in parallel:

include("demoParticleFilter2DParallel.jl")

cpab-diffeo-julia's People

Contributors

angel8yu 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.