diff options
Diffstat (limited to 'plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp')
-rw-r--r-- | plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp b/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp index 6eb9aeaf48..f907c41d55 100644 --- a/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp +++ b/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp @@ -60,7 +60,7 @@ NNQuantizer::NNQuantizer(int PaletteSize) freq = (int *)malloc(netsize * sizeof(int)); radpower = (int *)malloc(initrad * sizeof(int)); - if ( !network || !bias || !freq || !radpower ) { + if( !network || !bias || !freq || !radpower ) { if(network) free(network); if(bias) free(bias); if(freq) free(freq); @@ -455,7 +455,7 @@ FIBITMAP* NNQuantizer::Quantize(FIBITMAP *dib, int ReserveSize, RGBQUAD *Reserve // 3) Initialize the network and apply the learning algorithm - if ( netsize > ReserveSize ) { + if( netsize > ReserveSize ) { netsize -= ReserveSize; initnet(); learn(sampling); |