User Documentation
User Documentation
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

namespace IPSpatFilterN
Namespace to define values for spatial filter parameters

User Level:Default
Library: IPLinear
Example: exIPStatistic2d.cc

Comments:

Enumerated types:

#include "amma/Image/IPSpatFilter.hh"
enum DirnT { Horizontal, Vertical, TwoD } ;
1-D filter can be applied horizontally, vertically or both

enum ResizeT { Erode, Original, Expand } ;
what size to make o/p:
Erodeo/p is smaller than i/p to eliminate special border processing
Originalo/p is same size as i/p
Expando/p is exapanded until mask processes no more pixels at all

enum PadT { PadBlack, PBRescale, Repeat, Reflect } ;
how to extend i/p image (hence not needed for "Eroding" filters):
PadBlackpad i/p with zero values
PBRescaleditto, and rescale border region to preserve d.c. value
Repeatpad i/p with nearest pixel from original image
Reflectpad by reflecting the border region from the original i/p

enum HalfPixShiftT { ShiftUL, ShiftDR } ;
shifts o/p by 1/2 pixel: either up/left or down/right

(only meaningful for symmetric filters with even mask size)

Documentation by CxxDoc: Tue Mar 20 10:50:51 2001
Centre for Vision, Speech & Signal Processing