Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
|
This class contains common and useful methods for obscuring images. More...
#include <obscurationCommon.hpp>
Static Public Member Functions | |
static void | genPRNS (unsigned int seq[8]) |
Generate a random sequence of 8 bits. | |
static void | genBitsGroups (std::vector< std::vector< int > > &groups, int groupSize) |
Generate groups of bits. | |
static void | intVec2intArray (std::vector< int > &vec, int arr[8]) |
Convert a vector of integers to an array of integers. | |
This class contains common and useful methods for obscuring images.
|
static |
Generate groups of bits.
This function generates groups of bits of the specified size and stores them in the given vector.
groups | The vector to store the generated groups |
groupSize | The size of each group |
|
static |
Generate a random sequence of 8 bits.
This function generates a random sequence of 8 bits and stores it in the given array.
seq | The array to store the generated sequence |
|
static |
Convert a vector of integers to an array of integers.
This function converts a vector of integers to an array of integers and stores it in the given array.
vec | The vector to convert |
arr | The array to store the converted data |