Giter Site home page Giter Site logo

mbalatsko / opencv-rolling-ball Goto Github PK

View Code? Open in Web Editor NEW
42.0 4.0 6.0 1.74 MB

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

License: MIT License

Python 100.00%
imagej python3 image-processing background-subtraction rolling-ball sliding-paraboloid

opencv-rolling-ball's Introduction

Max's github stats

opencv-rolling-ball's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

opencv-rolling-ball's Issues

Can not apply on the dicom images

The execution never stops when I pass a dicom image pixel array to its input. Can anyone tell the correct procedure to that?

My code:

import cv2
from cv2_rolling_ball import subtract_background_rolling_ball
import pydicom as dicom
...

dcm_img = dicom.dcmread("./left.dcm")

img, bg = subtract_background_rolling_ball(dcm_img.pixel_array, radius=50, light_background=False, use_paraboloid=True)

cv2.imshow('Original Image', img)
cv2.waitKey(0)

Return image and background at the same time?

After the background is computed, generating the final image is trivial.
I think, getting rid of create_background parameter and returning both outputs is more pythonic.
Snippet from example then will look like

img, background = subtract_background_rolling_ball(img, 30,
                                                   light_background=True,
                                                   use_paraboloid=False, 
                                                   do_presmooth=True)

Can it be faster?

Hello,

I like this package very much!

But its speed seems to be much more slower than using imageJ software. I wonder if there are any improvement space for speed?

Many thanks!

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.