Skip to content

Instantly share code, notes, and snippets.

@tim-tx
Created September 14, 2018 21:55
Show Gist options
  • Save tim-tx/c325408b1d10b8ec300cb27317c60451 to your computer and use it in GitHub Desktop.
Save tim-tx/c325408b1d10b8ec300cb27317c60451 to your computer and use it in GitHub Desktop.
import skimage.exposure as skex
import cellprofiler
from cellprofiler.image import Image
adj = skex.adjust_sigmoid(cp_image_in.get_image(),cutoff=0.001,gain=30)
adj = skex.equalize_adapthist(adj)
cp_image_out = Image(adj,parent_image=cp_image_in)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment