You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Class for Parse BMP and bulding code of Huffman, Shennon and Uniform code.
Metods of class:
//This method creates BMP class from fileNameBMP( char * fileName )
//This method writes value of pixel of image
void writeMatrix( std::ofstream *out = nullptr );
//This method writes Infomarion of Header of imagevoidwriteInfo( std::ofstream *out = nullptr );
//This method write shades of image and their frequency of occurrence (considering quantization X=round(X/20)*20)voidwriteFrequency( std::ofstream *out = nullptr );
//This method write shades of image and their probability frequency of occurrence (considering quantization voidwriteFrequencyProbability ( std::ofstream *out = nullptr );
//Value of EntropylongdoublegetEntropy();
//The average length of codelongdoublebyteSizeCode ( typeOfCode type );
//Length of the message in the codelongintsizeCode ( typeOfCode type );
//Write Codes Of MessagevoidwriteCodesOfMessage ( typeOfCode type, std::ofstream *out = nullptr );
//Write Codes Of SymbolsvoidwriteCodesOfSymbols ( typeOfCode type, std::ofstream *out = nullptr );
//We can use ENUM for access to various types of codesenum typeOfCode{
UNIFORM, //uniform code
HUFFMAN, //Huffman's code
SHANNON //Code of Shannon-Fano
};
About
Bulding code of Huffman, Shennon and Uniform code.