Usage
Contents
Usage#
Installation#
To use bwtrack, first install it using pip:
pip install bwtrack --upgrade
Note
Since this package is under active development, it is a good practice to always look for newer versions by pass --upgrade
.
Minimal example#
First, import bwtrack and skimage.
from bwtrack.bwtrack import *
from skimage import io
import matplotlib.pyplot as plt
Then, load a sample image in python.
img = io.imread("https://github.com/ZLoverty/bwtrack/raw/main/test_images/large.tif")
plt.imshow(img, cmap="gray")
Use find_white()
function to locate white particles.
particles = find_white(img, size=6, mask_size=7)
Lastly, check the result by plotting detected particles on the raw image.
fig, ax = show_result(img, particles, size=6)
See API reference for more details.