Code Monkey home page Code Monkey logo

criticalnet's Introduction

Critical Net

An open-source Python implementation of the critical net algorytm

based on "Gu S., Zheng Y., Tomasi C. (2010) Critical Nets and Beta-Stable Features for Image Matching. In: Daniilidis K., Maragos P., Paragios N. (eds) Computer Vision โ€“ ECCV 2010. ECCV 2010. Lecture Notes in Computer Science, vol 6313. Springer, Berlin, Heidelberg" http://link.springer.com/chapter/10.1007/978-3-642-15558-1_48

Installation

Install the following requirements:

Example of usage

>>> import numpy as np
>>> import criticalnet as cnet
>>>
>>> im = cnet.data.sample('baboon')

>>> net0 = cnet.CriticalNet(image=im, ktimes=110, lap_mode='LOG')
>>> net0.compute(beta=10, extrema_dist=25, draw=True)
>>> import numpy as np
>>> from scipy.misc import face 
>>> from PIL import Image
>>> import criticalnet as cnet
>>>
>>> racc = Image.fromarray(face(), mode='RGB')
>>> im = np.array(racc.convert(mode='F'))
>>>
>>> net0 = cnet.CriticalNet(image=im, ktimes=110)
>>> net0.calc_sscale()
>>> net0.calc_lap('DOG')
>>> net0.calc_beta_levels()
>>> net0.calc_cnet(beta=8, extrema_dist=30)
>>> net0.draw()
>>> import networkx as nx
>>> G = net0.G
>>> nx.is_directed_acyclic_graph(G)

criticalnet's People

Stargazers

lightalchemist avatar  avatar  avatar

Watchers

James Cloos avatar Arseniy Kustov avatar  avatar

Forkers

sandy4321

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.