mbalatsko / opencv-rolling-ball Goto Github PK
View Code? Open in Web Editor NEWFully Ported to Python from ImageJ's Background Subtractor. Rolling ball and sliding paraboloid background subtraction algorithms.
License: MIT License
Fully Ported to Python from ImageJ's Background Subtractor. Rolling ball and sliding paraboloid background subtraction algorithms.
License: MIT License
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)
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!
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.