bicotiNeighbourFunctionLinear


Figura 4.1.2.1
Clases

bicotiNeighbourFunction
bicotiNeighbourFunctionLinear
bicotiNeighbourFunctionMaximum
bicotiNeighbourFunctionMinimum
bicotiNeighbourFunctionMedian

     Templates Clases

PixelType
PrecisionType


class bicotiNeighbourFunctionLinear < class PixelType ,
                                                                                        class PrecisionType >



 Public Methods

bicotiNeighbourFunctionLinear( bicotiFrame< PrecisionType > * )

PixelType operator( ) ( bicotiFrame< PixelType >*  )



bicotiNeighbourFunctionLinear( bicotiFrame< PrecisionType > * ptr_ker )

    Constructor de la función lineal, le paso un puntero al kernel.
Hay dos templates :

        PixelType -- tipo de pixel del frame ( de la imagen ).
        PrecisionType -- tipo con el que se hacen las cuentas.

Si la imagen es de enteros y queremos hacer una función que calcule el valor medio del frame por ejemplo, si el frame es 3x3, hay que poner 1 / 9 en cada punto del kernel, por lo tanto es conveniente que  el tipo de este sea real.



PixelType operator( ) ( bicotiFrame< PixelType >* ptr_frame )

    Multiplica punto a punto el Frame por el kernel asociado a la función.