GithubHelp home page GithubHelp logo

blob's Introduction

Blob Detection

Blob detection based on laplacian-of-gaussian, to detect localized bright foci in an image. This is similar to the method used in scikit-image but extended to nD arrays and .tif images.

Usage

blob.py is installed as the primary entry point to output blob locations in human- and machine-readable formats. It takes a grayscale TIFF image and prints out blob coordinates in CSV format, for example:

> blob find my_image.tif
...
661 309
768 309
382 311
...

For convenience, a plotting function is also provided: blob plot image.tif peaks.csv.

demo.py is provided in the source repository to give a visual example using the Hubble Deep Field image (from scikit-image) as sample data.

Options

The common options to blob find are documented below:

  • --threshold THRESHOLD: The minimum filter response (proportional to intensity) required to detect a blob.
  • --size LOW HIGH: The range of scales to search. The filter response will be strongest when the size of the spot matches the size of the filter.

The --help option provides details of all available options.

Installation

No installation is required, blob.py functions as a self-contained executable.

If desired, it can be installed as the executable blob, using setup.py, detailed description of installation options can be found in the official documentation.

Dependencies

Python 3, Scipy, Numpy and tifffile. All are available from PyPI and can be installed as described in the pip documentation. If necessary, a more up-to-date installer for tifffile is maintained here.

Demo

The demo script additionally requires matplotlib, which is also available through PyPI.

blob's People

Contributors

kwohlfahrt avatar

Watchers

James Cloos 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.