MIT License

项目介绍

mbalatsko/opencv-rolling-ball 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 52 个 Star、8 次 Fork。

仓库全名
mbalatsko/opencv-rolling-ball
开源许可证
MIT License
Star 数
52
Fork 数
8
未关闭 Issue
1

README 摘要

Rolling ball and sliding paraboloid background subtraction algorithms Fully Ported to Python from ImageJ's Background Subtractor. Only works for 8-bit greyscale images currently. Based on the concept of the rolling ball algorithm described in Stanley Sternberg's article, "Biomedical Image Processing", IEEE Computer, January 1983. Imagine that the 2D grayscale image has a third (height) dimension by the image value…

完整内容见 GitHub 原始 README 或本页 。

常见问题

opencv-rolling-ball 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 52 个 Star。

opencv-rolling-ball 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 opencv-rolling-ball 的源码?

可以直接克隆仓库:git clone https://github.com/mbalatsko/opencv-rolling-ball.git,默认分支为 master;安装与运行步骤见仓库 README。

opencv-rolling-ball 最近还在维护吗?

仓库最近一次更新为 2022年6月22日,当前有 1 个未关闭 Issue;Star 数为 52,可作为社区活跃度的参考。

关于

Fully Ported to Python from ImageJ's Background Subtractor. Rolling ball and sliding paraboloid background subtraction algorithms.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
72
价值分
33
活跃状态
活跃

README

Rolling ball and sliding paraboloid background subtraction algorithms

PyPI version Downloads License: MIT

Fully Ported to Python from ImageJ’s Background Subtractor. Only works for 8-bit greyscale images currently. Based on the concept of the rolling ball algorithm described in Stanley Sternberg’s article, “Biomedical Image Processing”, IEEE Computer, January 1983. Imagine that the 2D grayscale image has a third (height) dimension by the image value at every point in the image, creating a surface. A ball of given radius is rolled over the bottom side of this surface; the hull of the volume reachable by the ball is the background. http://rsbweb.nih.gov/ij/developer/source/ij/plugin/filter/BackgroundSubtracter.java.html

This algorithms are perfect for microscope images, to distinguish particles from background.

Installation

pip install opencv-rolling-ball

Usage

import cv2
from cv2_rolling_ball import subtract_background_rolling_ball

img = cv2.imread(f'path/to/img.tif', 0)
img, background = subtract_background_rolling_ball(img, 30, light_background=True,
                                     use_paraboloid=False, do_presmooth=True)

Example outputs

Input

Input

Subtracted background

Background

Without background

Without background

评论

暂无评论