#include <ITopHatOp.hpp>
Inheritance diagram for ITopHatOp:
Purpose: TopHat with a Structured Element. Black TopHat uses openings to enhance dark spots under varying light White TopHat uses closings to enhance light spots under varying light
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
ITopHatOp (int iter=5, bool aBlackHatTop=true) | |
ITopHatOp (StructuredElement *aStructuredElement, int iter=5, bool aBlackHatTop=true) | |
virtual | ~ITopHatOp () |
virtual void | setMask (bool flag) |
virtual void | setThreshold (int th1, int th2) |
virtual int | getLowThreshold () |
virtual int | getUpperThreshold () |
virtual void | setBackground (bool value) |
virtual void | setCrackArea (bool value) |
virtual void | setIterations (int iter) |
virtual void | setStructuredElement (StructuredElement *aStructuredElement) |
virtual AnImage * | filter (AnImage *src, AnImage *dest=0) |
Local full image filtering. | |
virtual void | report (FILE *file) |
Protected Attributes | |
bool | blackHatTop |
bool | maskFlag |
int | threshold1 |
int | threshold2 |
bool | background |
bool | crackArea |
IMorphologicalOp * | op |
|
Local full image filtering.
Implements AnImageOp. |