This class enhances the contrast by top-hat operations, especially for gray value bright filed or DIC images. A white top-hat is added to the original image (enhance bright objects) and subsequent a black top-hat is subtracted (enhance dark objects).
This approach works well for DIC images, maybe also for bright field or other illumination/contrast based images. Mask size of the structuring element should be small to preserve small structures, like neurites.
NOTE: maybe the result image must be re-scaled, since output gray values can fall outside the dynamic range of the input image!
The approach is adapted from:
author = {Soille, Pierre},
title = {Morphological Image Analysis: Principles
and Applications},
year = {2010},
isbn = {9783642076961},
edition = {2},
pages = {126 -- 127},
publisher = {Springer Berlin Heidelberg}.
--------------------------------------------------------------------------------
Input Image
Low contrast input image
WTH Mask Size
Mask size of white top-hat
default: 5
BTH Mask Size
ask size of black top-hat
default: 5
None