bicotiNeighbourFilter

Clases

bicotiNeighbourFilter

     Templates Clases

PixelType


class bicotiNeighbourFilter < class PixelType >



 Public Methods

bicotiNeighbourFilter ( )
bicotiNeighbourFilter ( bicotiImageImplementation< PixelType > *, bicotiImageImplementation< PixelType > *,
                                                                                                         unsigned, bicotiNeighbourFunction< PixelType > * )

void SetImagesImplementations ( bicotiImageImplementation< PixelType > *,
                                                                                                                     bicotiImageImplementation< PixelType > * )
void SetExtrapolationStrategy( bicotiImageExtrapolationStrategy< PixelType > * );
void SetFunction( bicotiNeighbourFunction< PixelType > * , unsigned )

void Apply( )



bicotiNeighbourFilter ( )

    Constructor por defecto, no le paso parámetros, pero para que el filtro tenga utilidad hay que setearle los parámetros con las funciones SetImagesImplementations ,SetExtrapolationStrategy y SetFunction.



bicotiNeighbourFilter ( bicotiImageImplementation< PixelType > * ptr_ima_dest ,
                        bicotiImageImplementation< PixelType > * ptr_ima_src , unsigned frame_size,
                                                                   bicotiNeighbourFunction< PixelType > * ptr_fun )

    Constructor del filtro. Los parámetros son :
          ptr_ima_dest  --   puntero a la imagen destino, donde se esribe el resultado.
          ptr_ima_src  --   puntero a la imagen origen, de donde se leen los datos.
          frame_size --  tamaño de la ventana , debe ser impar.
          ptr_fun -- puntero a la función de vecindad, que dado un Frame devuelve un pixel.
 

 



void SetImagesImplementations ( bicotiImageImplementation< PixelType > * ptr_ima_dest ,
                                                               bicotiImageImplementation< PixelType > * ptr_ima_src )

    Esta función permite asignar punteros a las imágenes origen y destino cuando ya se ha creado el filtro.
Puedo tener utilidad para cambiar las imágenes sonre la que trabaja el filtro.



void SetExtrapolationStrategy( bicotiImageExtrapolationStrategy< PixelType > *  ptr_strat )

    Permite setear la estrategia de extrapolación, la que decide que valores poner en la parte exterior de la imagen , cuando la ventana del filtro está cercana a los bordes.



void SetFunction( bicotiNeighbourFunction< PixelType > * ptr_fun , unsigned frame_size )

    Permite setear la función de vecindad y el tamaño de la ventana una vez que se ha creado el filtro.



void Apply( )

    Esta es la función que hace correr el filtro. Se recorre la imagen origen con una ventana de tamaño impar, para cada ventana ( Frame ) se aplica la función de vecindad la que devuelve un pixel que se escribe en la imagen destino.