[hofig6s5] [Up] [hofig6s8] Chapter 6 - Morphological Processing of Gray-Scale Images

hofig6s6
Detecting cells of a FISH image using open top-hat

Description

This figure illustrates the use of gray-scale open top-hat to detect cells of a FISH image.

Demo Script

.

from morph import *
f=mmreadgray('fish_m.tif')
th = mmareaopen(mmopenth(f,mmsedisk(4)),2)
arrow=mmseunion(mmseunion(mmseline(6,45),mmseline(6,-45)),mmseline(10))
fbin = mmbinary(th,50)
fcc  = mmblob(mmlabel(fbin,mmsebox()),'centroid')
mmshow(f)
mmshow(th)
mmshow(fbin)
aux = mmunion(f, mmgray(mmdil(fcc,mmsetrans(arrow,int32([0,5])))))
mmshow(aux)
zoom = aux[9:140,29:200]
mmshow(zoom)
f th
fbin aux
zoom

[hofig6s5] [Up] [hofig6s8] http://www.python.org