Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SimpleCRF

DISCLAIMER: This repository is a clone of the PyPI project SimpleCRF. This project contains the precompiled binaries relevant for installing SimpleCRF, which may be added into SimpleCRF in the future. This project might therefore be deprecated in the future.

Matlab and Python wrap of Conditional Random Field (CRF) and fully connected (dense) CRF for 2D and 3D image segmentation, according to the following papers:

[1] Yuri Boykov and Vladimir Kolmogorov, "An experimental comparison of min-cut/max-flow algorithms for energy minimization in vision", IEEE TPAMI, 2004.

[2] Philipp Krähenbühl and Vladlen Koltun, "Efficient inference in fully connected crfs with gaussian edge potentials", in NIPS, 2011.

[3] Kamnitsas et al in "Efficient multi-scale 3D CNN with fully connected CRF for accurate brain lesion segmentation", Medical Image Analysis, 2017.

maxflow densecrf1 densecrf2

Dependency

This repository depends on the following packages: Maxflow, DenceCRF and 3D Dense CRF

Installation

  1. Install by: pip install SimpleCRF-binaries

  2. Alternatively, you can compile the source files by the following two steps:

python setup.py build
python setup.py install

Examples

Some demos of using this package are:

  • examples/demo_maxflow.py: using maxflow for automatic and interactive segmentation of 2D and 3D images.

  • examples/demo_densecrf.py: using dense CRF for 2D gray scale and RGB image segmentation.

  • examples/demo_densecrf3d.py: using 3D dense CRF for 3D multi-modal image segmentation.

Modules

  1. maxflow has four functions as follows. Note that the current version only supports binary segmentation.
  • maxflow.maxflow2d() for 2D automatic segmentation.

  • maxflow.interactive_maxflow2d() for 2D interactive segmentation.

  • maxflow.maxflow3d() for 3D automatic segmentation.

  • maxflow.interactive_maxflow3d() for 3D interactive segmentation.

  1. denseCRF has the following function. It can deal with multi-class segmentation, and only supports RGB images.
  • denseCRF.densecrf() for 2D automatic segmentation.
  1. denseCRF3D has the following function. It can deal with multi-class segmentation. The input channel number can be 1-5.
  • denseCRF3D.densecrf3d() for 3D automatic segmentation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-win_amd64.whl (168.1 kB view details)

Uploaded CPython 3.9Windows x86-64

SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-macosx_10_13_x86_64.whl (250.0 kB view details)

Uploaded CPython 3.9macOS 10.13+ x86-64

SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-win_amd64.whl (168.3 kB view details)

Uploaded CPython 3.8Windows x86-64

SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-macosx_10_13_x86_64.whl (249.1 kB view details)

Uploaded CPython 3.8macOS 10.13+ x86-64

SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-win_amd64.whl (167.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-macosx_10_13_x86_64.whl (249.0 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-win_amd64.whl (167.6 kB view details)

Uploaded CPython 3.6mWindows x86-64

SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-macosx_10_13_x86_64.whl (249.0 kB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 168.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.0

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b14eb8ff90a1cceadf031481a4c3183c394e7c3eef7ecf4e161a4194c629992d
MD5 69307f2c58c40054b31f8b665aeef6c1
BLAKE2b-256 ab09efa98a16a652610d5a03c756509fd9466c5f4e3dce9ea200c9c1e5b6a645

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 52f70cf9c6a188fbcacfc84d1a896b14e6977f7d260fbad6f1c6cb7bae471477
MD5 f8eece6db45e79cdec159f8d34b52a3e
BLAKE2b-256 4107791266f174108965282d840240de6b3c632cfed7b7db0a3a67d33078155b

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 250.0 kB
  • Tags: CPython 3.9, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.0

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b22ba57866c115f257c7f09e2b4bf8a3c636aacda82d36cdaf5f450be06f831d
MD5 c9c9f68c187c909d2dfe69df77327b83
BLAKE2b-256 b22a45c5d094d722f6b6769b4603d4d1335e3a4690402271b4d4529254d2ae6a

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 168.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.0

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 76e3b0ddd24e54dc4d91d8b7ceb0fdb0c709aee9609d9307ce5105193f2214e5
MD5 c931b8e0cb1468365fbef988bf2170fc
BLAKE2b-256 68045ef42d62a9851013ceb957cf7d32d2d66db1de1190e27c05246f4f44a923

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2bfc6e38be926f8604ee4fc7861bc843cc520e18abc7c9e63560c91a4458bca7
MD5 175f7b637b9049c5afca660a45827129
BLAKE2b-256 1c321967e7492708d15638b8ae31d025ebf89a12ff35be4eaae11c2396281c6f

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 249.1 kB
  • Tags: CPython 3.8, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.0

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 20eb9a5e4ae50e691fabe9492fce5d3139286b843b0e438e73923af80e251035
MD5 5ff9a33ec190b87bd8996c5b2e7be78b
BLAKE2b-256 1ebe6544510ad43b3274ba310a7836f0c1d8dd010b6e3d691ddc4bd9c9c9bbff

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 167.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.0

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9d142c2bec13ad7a71e335a8e6eb58d244e51b3437f5245a208883b258d6160a
MD5 6165fa24a6ddfbb0a9d76873466694e4
BLAKE2b-256 32a5b55a8323689ea2a2e8b9e81a068ef051292fcffbead7f54531853529a938

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ba89e18859368e1daad3b7425f19882aac9c64c2436da1ac0a405f67009dbfd8
MD5 fac043a048457d3c3bb8f092581844cc
BLAKE2b-256 5f7fd906793cd1421a077153fc1ed3919a30ad7f783a6d79d05cbc8ee64797bc

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 249.0 kB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.0

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7d938496aa0da123b564b60ebb07acf4fdd119876b510a3af6edbc88cd572824
MD5 74595cec19333ba4270ad58871d48e4c
BLAKE2b-256 448cfeb66a8a70be5128b229753a867b0ac0f65abd0c61900bce3894abd58ddb

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 167.6 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.0

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 fa9af6a8d9b3e16b8acf0eb14f17ebcaf7342daad226dfdbca1a28bd48a99eb6
MD5 3d884067a09bd7c3cdba3e0397b76e9a
BLAKE2b-256 0c7e659e50851a7e6e1240a5881f985ca8d5266067bb83ac02f3400ff98c339f

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d8fa38623f6b0eb9a4a39cff8db4f795e9e6c4f83dcb8194a816b2b63645edde
MD5 e9a59016c5f75d8693d69dfcb20132b5
BLAKE2b-256 5e664941603a981dc9fe406940f02de6dce58cf4cf81d38004d6b0afb9721fbc

See more details on using hashes here.

File details

Details for the file SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 249.0 kB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.0

File hashes

Hashes for SimpleCRF_binaries-0.2.1.3rc1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 339333246c317a547eeb937a17d3a44e47258d9f777334660ac40332e1944ed2
MD5 72a0a555e6c3f89663589c49b82381c8
BLAKE2b-256 b5cf4dfd3fe9c719043de282256ae86e46bf8f2f6e61b41e5b9e52e484e4ed85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page