public static < T extends KernelBase > T gaussian ( Class < T > kernelType , double sigma , int radius ) { if ( Kernel1D_F32 . class == kernelType ) { return gaussian ( 1 , true , 32 , sigma , radius ) ; } else if ( Kernel1D_F64 . class == kernelType ) { return gaussian ( 1 , true , 64 , sigma , radius ) ; } else if ( Kernel1D_S32 . class == kernelType ) { return gaussian ( 1 , false , 32 , sigma , radius ) ; } else if ( Kernel2D_S32 . class == kernelType ) { return gaussian ( 2 , false , 32 , sigma , radius ) ; } else if ( Kernel2D_F32 . class == kernelType ) { return gaussian ( 2 , true , 32 , sigma , radius ) ; } else if ( Kernel2D_F64 . class == kernelType ) { return gaussian ( 2 , true , 64 , sigma , radius ) ; } else { throw new RuntimeException ( "Unknown kernel type. " + kernelType . getSimpleName ( ) ) ; } }
Creates a Gaussian kernel of the specified type .