00001 #ifndef vepl_dilate_disk_h_ 00002 #define vepl_dilate_disk_h_ 00003 00004 //: 00005 // \file 00006 // \brief morphological dilation with circular element 00007 // 00008 // Dilation is a morphological operation that replaces a pixel with the 00009 // maximum value of its surrounding pixels, in a certain neighbourhood. 00010 // Here, the neighbourhood is circular, with an arbitrary (float) radius, 00011 // which is to be be passed to the constructor. 00012 // 00013 // Note that the function max(DataIn,DataIn) is being used; for 00014 // non-scalar data types (like colour pixels) an appropriate max() function 00015 // must thus be supplied. 00016 // 00017 // Note also the implicit use of DataOut::DataOut(DataIn), 00018 // which you probably will have to provide when DataIn and DataOut 00019 // are not the same type. It could even be argued that these types should 00020 // always be the same! 00021 // 00022 // \author Peter Vanroose, K.U.Leuven (ESAT/PSI) 00023 // \date 28 April 2001 00024 // 00025 // \verbatim 00026 // Modifications 00027 // 12/97 updated by Tboult to use new codegen form and have valid (public 00028 // agreed) ctor and to use preop and postop to define/destroy the mask. 00029 // \endverbatim 00030 00031 #include <vil1/vil1_image.h> 00032 00033 //: morphological dilation with circular element 00034 vil1_image vepl_dilate_disk(vil1_image const& , float radius); 00035 00036 #endif // vepl_dilate_disk_h_
1.7.5.1