private static WaveletTransform createDefaultShrinkTransform ( ImageDataType imageType , int numLevels , double minPixelValue , double maxPixelValue ) { WaveletTransform descTran ; if ( ! imageType . isInteger ( ) ) { WaveletDescription < WlCoef_F32 > waveletDesc_F32 = FactoryWaveletDaub . daubJ_F32 ( 4 ) ; descTran = FactoryWaveletTransform . create_F32 ( waveletDesc_F32 , numLevels , ( float ) minPixelValue , ( float ) maxPixelValue ) ; } else { WaveletDescription < WlCoef_I32 > waveletDesc_I32 = FactoryWaveletDaub . biorthogonal_I32 ( 5 , BorderType . REFLECT ) ; descTran = FactoryWaveletTransform . create_I ( waveletDesc_I32 , numLevels , ( int ) minPixelValue , ( int ) maxPixelValue , ImageType . getImageClass ( ImageType . Family . GRAY , imageType ) ) ; } return descTran ; }
Default wavelet transform used for denoising images .