Vertex Class Reference
a vertex in a graph
More...
#include <Vertex.h>
List of all members.
Detailed Description
A vertex represents a bit that will cause a change to the cover-stego-file to be embedded. A vertex consists of k samples (that is k sample values at k (different) positions in the cover-stego-file), where k is TheCvrStgFile->getNumSamplesPerVertex(). One of these k samples must be changed to an opposite sample to embed the bit that corresponds to this vertex.
NOTE: Vertex relies on the Globals object pointed to by the Globs pointer. This means that it must be set correctly before using any method of a Vertex object.
Constructor & Destructor Documentation
construct a new vertex object
- Parameters:
-
| l | the vertex label for this vertex |
| sposs | the array (with length g->getSamplesPerVertex()) of the positions of the samples |
| svalues | the array (with length g->getSamplesPerVertex()) of (unique (!)) pointers to the sample values |
| t | the target value for the whole vertex - the value that should be returned by getEmbeddedValue() after the embedding |
Member Function Documentation
UWORD32 Vertex::getDegree |
( |
void |
|
) |
const |
get the degree of this vertex
EmbValue Vertex::getEmbeddedValue |
( |
void |
|
) |
const |
SamplePos Vertex::getSamplePos |
( |
unsigned short |
i |
) |
const [inline] |
get the i-th sample position
- Parameters:
-
| i | an index of a sample in this vertex (must be < TheCvrStgFile->getNumSamplesPerVertex()) |
- Returns:
- the position of the sample in the associated cvrstgfile
SampleValue* Vertex::getSampleValue |
( |
unsigned short |
i |
) |
const [inline] |
get the i-th sample value
- Parameters:
-
| i | an index of a sample in this vertex (must be < TheCvrStgFile->getNumSamplesPerVertex()) |
- Returns:
- the value of the sample in the associated cvrstgfile
Edge* Vertex::getShortestEdge |
( |
void |
|
) |
const [inline] |
get the shortest edge of this vertex
EmbValue Vertex::getTargetValue |
( |
unsigned short |
i |
) |
const [inline] |
void Vertex::markDeleted |
( |
void |
|
) |
|
if this vertex is valid, mark it as deleted
void Vertex::print |
( |
unsigned short |
spc = 0 |
) |
const |
void Vertex::printEdges |
( |
void |
|
) |
const |
void Vertex::setSampleOccurenceIt |
( |
unsigned short |
i, |
|
|
std::list< SampleOccurence >::iterator |
it | |
|
) |
| | [inline] |
void Vertex::unmarkDeleted |
( |
void |
|
) |
|
if this vertex is marked as deleted, undo this
void Vertex::updateShortestEdge |
( |
void |
|
) |
|
find shortest edge of this vertex and save result to ShortestEdge
Member Data Documentation
The documentation for this class was generated from the following files: