Skip to content

Instantly share code, notes, and snippets.

🤖
./status

Walter Sphinxs

View GitHub Profile
View howtoinstallsequeler.md

Sequeler Installation

Linux Ubuntu 18.04

Download the .deb package

cd ~/Downloads

wget http://packages.elementary.io/appcenter/pool/main/c/com.github.alecaddd.sequeler/com.github.alecaddd.sequeler_0.5.5_amd64.deb

Install the .deb package

sudo dpkg -i com.github.alecaddd.sequeler_0.5.5_amd64.deb

View Code.py
# Image I/O
import imageio
# Plots
import matplotlib.pyplot as pp
import matplotlib.patches as patches
View Objcts.py
# Plots
import matplotlib.patches as patches
# Image processing
from skimage import measure
# Plot objects
View Label.py
# Image processing
from skimage import measure
# Get labels
monty_label = measure.label(monty_segmented)
print(monty_label.shape)
View OtsuThreshold.py
# Image processing
from skimage import filters
# Image segmented and otsu threshold
otsu_threshold = filters.threshold_otsu(monty_hist)
monty_segmented = monty_hist > otsu_threshold # Select the objects using the mask
View PlotHist.py
# Plot normal and equalized image
fig, ax = pp.subplots(2, 2, figsize=(10, 5)) # Lines and cols
cache = [(monty_gray, 'Monty Python'), (monty_hist, 'Monty Python Equalized')]
for indice, image in zip(range(0, 2), cache):
ax[indice, 0].imshow(image[0], cmap='gray')
ax[indice, 0].set_title(image[1])
View PlotHist.py
# Plot normal and equalized image
fig, ax = pp.subplots(2, 2, figsize=(10, 5)) # Lines and cols
cache = [(monty_gray, 'Monty Python'), (monty_hist, 'Monty Python Equalized')]
for indice, image in zip(range(0, 2), cache):
ax[indice, 0].imshow(image[0], cmap='gray')
ax[indice, 0].set_title(image[1])
View PlotHist.py
# Plot normal and equalized image
fig, ax = pp.subplots(2, 2, figsize=(10, 5)) # Lines and cols
cache = [(monty_gray, 'Monty Python'), (monty_hist, 'Monty Python Equalized')]
for indice, image in zip(range(0, 2), cache):
ax[indice, 0].imshow(image[0], cmap='gray')
ax[indice, 0].set_title(image[1])
View Hist.py
# Image processing
from skimage import exposure
# Histogram equalization
monty_hist = exposure.equalize_hist(monty_gray)
View Figure.py
# Plots
import matplotlib.pyplot as pp
# Plot image monty gray
pp.figure(figsize=(10, 5))
pp.imshow(monty_gray, cmap='gray')
You can’t perform that action at this time.