Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
Loading...
Searching...
No Matches
obscurationCommon Class Reference

This class contains common and useful methods for obscuring images. More...

#include <obscurationCommon.hpp>

Inheritance diagram for obscurationCommon:

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.
 

Detailed Description

This class contains common and useful methods for obscuring images.

Authors
Katia Auxilien, Norman Hutte
Date
April 2024

Member Function Documentation

◆ genBitsGroups()

void obscurationCommon::genBitsGroups ( std::vector< std::vector< int > > & groups,
int groupSize )
static

Generate groups of bits.

This function generates groups of bits of the specified size and stores them in the given vector.

Parameters
groupsThe vector to store the generated groups
groupSizeThe size of each group
Author
Norman Hutte
Date
06 March 2024

◆ genPRNS()

void obscurationCommon::genPRNS ( unsigned int seq[8])
static

Generate a random sequence of 8 bits.

This function generates a random sequence of 8 bits and stores it in the given array.

Parameters
seqThe array to store the generated sequence
Author
Norman Hutte
Date
06 March 2024

◆ intVec2intArray()

void obscurationCommon::intVec2intArray ( std::vector< int > & vec,
int arr[8] )
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.

Parameters
vecThe vector to convert
arrThe array to store the converted data
Author
Norman Hutte
Date
06 March 2024