]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/ml_stc_src/coding_loss.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
58d1c2b19277e0843ef48ed94bcda674cd2bb3d8
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / ml_stc_src / coding_loss.h
1 #ifndef CODING_LOSS_H_
2 #define CODING_LOSS_H_
3
4 /*
5  CODING LOSS: add description and definition of coding loss ...
6
7  * **********************************************************************************
8  * EXAMPLE:                                                                         *
9  *    stc_embed(cover, n, msg, m, (void*)profile, true, stego, constraint_height);  *
10  *    coding_loss = calc_coding_loss(cover, n, m, profile, stego);                  *
11  *    stc_extract(stego, n, msg2, m, constraint_height);                            *
12  * **********************************************************************************
13 */
14
15 #include <cmath>
16 #include <limits>
17
18 typedef unsigned char u8;
19
20 double calc_coding_loss(const u8 *cover, unsigned int cover_length, unsigned int message_length, const double *costs, const u8 *stego);
21 double calculate_beta_from_distortion(const double *costs, unsigned int n, double avg_distortion);
22
23 #endif