MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF

github.com/HiLab-git/SimpleCRF @v0.2.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.1.1 ↗ · + Follow
18,245 symbols 33,197 edges 699 files 1,413 documented · 8% updated 3y agov0.2.1.1 · 2021-09-20★ 1715 open issues

Browse by type

Functions 13,093 Types & classes 5,152
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SimpleCRF

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

  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.

  2. maxflow.maxflow2d() for 2D automatic segmentation.

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

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

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

  6. denseCRF has the following function. It can deal with multi-class segmentation, and only supports RGB images.

  7. denseCRF.densecrf() for 2D automatic segmentation.

  8. denseCRF3D has the following function. It can deal with multi-class segmentation. The input channel number can be 1-5.

  9. denseCRF3D.densecrf3d() for 3D automatic segmentation.

Core symbols most depended-on inside this repo

Shape

Function 6,775
Method 6,318
Class 5,074
Enum 78

Languages

C++100%
C1%
Python1%

Modules by API surface

dependency/densecrf3d/include/Eigen/src/Core/arch/NEON/PacketMath.h773 symbols
dependency/densecrf/include/Eigen/src/Core/arch/NEON/PacketMath.h773 symbols
dependency/densecrf3d/include/Eigen/src/Core/arch/NEON/TypeCasting.h283 symbols
dependency/densecrf/include/Eigen/src/Core/arch/NEON/TypeCasting.h283 symbols
dependency/densecrf3d/include/Eigen/src/Core/arch/AltiVec/PacketMath.h281 symbols
dependency/densecrf/include/Eigen/src/Core/arch/AltiVec/PacketMath.h281 symbols
dependency/densecrf/examples/lodepng.cpp221 symbols
dependency/densecrf3d/include/Eigen/src/Core/arch/AVX512/PacketMath.h210 symbols
dependency/densecrf/include/Eigen/src/Core/arch/AVX512/PacketMath.h210 symbols
dependency/densecrf3d/include/Eigen/src/Core/MathFunctions.h193 symbols
dependency/densecrf/include/Eigen/src/Core/MathFunctions.h193 symbols
dependency/densecrf3d/include/Eigen/src/Core/arch/AVX/PacketMath.h192 symbols

For agents

$ claude mcp add SimpleCRF \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page