資料壓縮的原理與應用
SPIHT三個串列的運算之C程式
源代码在线查看: chapter9.cpp
//--------------------------------------------------------------------------- #include #pragma hdrstop #include "chapter9.h" #include #include #include //--------------------------------------------------------------------------- #pragma package(smart_init) void SPIHTAlgorithmInitialize(float max_coefficient, float *threshold, SPIHTCoefficient H[], List *LIP, List *LIS) { int max_coefficient_bits = (int)Log2(abs(max_coefficient)); *threshold = (float)pow((double)2, (double)max_coefficient_bits); for (int i=0; i { //Add