The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData Class Reference

#include <cImageSearchData.h>

Collaboration diagram for fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData:

List of all members.

Public Member Functions

 cImageSearchData (const unsigned long ulInWidth, const unsigned long ulInHeight)
 cImageSearchData (const iImageData *pInImageData)
 ~cImageSearchData ()
unsigned long getWidth () const
unsigned long getHeight () const
const iImageDatagetImageData () const
bool isFound (const cVectorPosition &position) const
bool isFound (const unsigned long lX, const unsigned long lY) const
bool isOverlapped (const cVectorPosition &position) const
bool isOverlapped (const unsigned long lX, const unsigned long lY) const
set< cVectorPositiongetFoundPoints () const
set< cVectorPositiongetNotFoundPoints () const
set< cVectorPositiongetOverlappedPoints () const
set< cVectorPositiongetNotOverlappedPoints () const
set< cVectorPositiongetNeighbours (const cVectorPosition &position) const
set< cVectorPositiongetFoundNeighbours (const cVectorPosition &position) const
set< cVectorPositiongetNotFoundNeighbours (const cVectorPosition &position) const
set< cVectorPositiongetOverlappedNeighbours (const cVectorPosition &position) const
set< cVectorPositiongetNotOverlappedNeighbours (const cVectorPosition &position) const
bool registerFound (const cVectorPosition &foundPoint, const bool bFound=true)
bool registerFound (const set< cVectorPosition > &setFoundPoints, const bool bFound=true)
bool registerFound (const cImageStructure *pImageStrFoundPoints, const bool bFound=true)
bool registerOverlapped (const cVectorPosition &overlappedPoint, const bool bOverlapped=true)
bool registerOverlapped (const set< cVectorPosition > &setOverlappedPoints, const bool bOverlapped=true)
bool registerOverlapped (const cImageStructure *pImageStrOverlappedPoints, const bool bOverlapped=true)
void foundToOverlapped ()

Protected Attributes

const iImageDatapImageData
unsigned long ulWidth
unsigned long ulHeight
unsigned char * pImageDataFound
unsigned char * pImageDataOverlapped

Detailed Description

Definition at line 67 of file cImageSearchData.h.


Constructor & Destructor Documentation

fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::cImageSearchData ( const unsigned long  ulInWidth,
const unsigned long  ulInHeight 
)

parameter constructor

Parameters:
ulInWidththe width of the image to search
See also:
ulWidth
Parameters:
ulInHeightthe height of the image to search
See also:
ulHeight
fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::cImageSearchData ( const iImageData pInImageData)

parameter constructor

Parameters:
pInImageDatapointer to the image data, of the image to convert
See also:
pImageData
fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::~cImageSearchData ( )

destructor


Member Function Documentation

void fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::foundToOverlapped ( )

Converts all found points to overlapped points. If you start a new layer, wich is below the layers of the found points, call this method.

set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getFoundNeighbours ( const cVectorPosition position) const
See also:
isFound()
registerFound()
Parameters:
positionthe position of the point, for which to return the found neighbour points
Returns:
a set of the found neighbour points of the given point
See also:
pImageDataFound
set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getFoundPoints ( ) const
See also:
isFound()
registerFound()
Returns:
a set of all found points in the image
See also:
pImageDataFound
unsigned long fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getHeight ( ) const
Returns:
the height of the image to search
See also:
ulHeight
const iImageData* fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getImageData ( ) const
Returns:
a pointer to the image data, of the image for the search
See also:
pImageData
set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getNeighbours ( const cVectorPosition position) const
See also:
registerFound()
getFoundNeighbours()
Parameters:
positionthe position of the point, for which to return the neighbour points
Returns:
a set of the neighbour points of the given point
set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getNotFoundNeighbours ( const cVectorPosition position) const
See also:
isFound()
registerFound()
Parameters:
positionthe position of the point, for which to return the not found neighbour points
Returns:
a set of the not found neighbour points of the given point
See also:
pImageDataFound
set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getNotFoundPoints ( ) const
See also:
isFound()
registerFound()
Returns:
a set of all not found points in the image
See also:
pImageDataFound
set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getNotOverlappedNeighbours ( const cVectorPosition position) const
See also:
isOverlapped()
registerOverlapped()
Parameters:
positionthe position of the point, for which to return the not overlapped neighbour points
Returns:
a set of the not overlapped neighbour points of the given point
See also:
pImageDataOverlapped
set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getNotOverlappedPoints ( ) const
See also:
isOverlapped()
registerOverlapped()
Returns:
a set of all not overlapped points in the image
See also:
pImageDataOverlapped
set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getOverlappedNeighbours ( const cVectorPosition position) const
See also:
isOverlapped()
registerOverlapped()
Parameters:
positionthe position of the point, for which to return the overlapped neighbour points
Returns:
a set of the overlapped neighbour points of the given point
See also:
pImageDataOverlapped
set<cVectorPosition> fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getOverlappedPoints ( ) const
See also:
isOverlapped()
registerOverlapped()
Returns:
a set of all overlapped points in the image
See also:
pImageDataOverlapped
unsigned long fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::getWidth ( ) const
Returns:
the width of the image to search
See also:
ulWidth
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::isFound ( const cVectorPosition position) const
See also:
pImageDataFound
Parameters:
positionthe position of the point, for which to check, if it was found
Returns:
true if the point on the position was found, else false
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::isFound ( const unsigned long  lX,
const unsigned long  lY 
) const
See also:
pImageDataFound
Parameters:
lXthe x / first dimension position of the point, for which to check, if it was found
lYthe y / second dimension position of the point, for which to check, if it was found
Returns:
true if the point on the position was found, else false
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::isOverlapped ( const cVectorPosition position) const
See also:
pImageDataOverlapped
Parameters:
positionthe position of the point, for which to check, if it is overlapped
Returns:
true if the point on the position is overlapped, else false
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::isOverlapped ( const unsigned long  lX,
const unsigned long  lY 
) const
See also:
pImageDataOverlapped
Parameters:
lXthe x / first dimension position of the point, for which to check, if it is overlapped
lYthe y / second dimension position of the point, for which to check, if it is overlapped
Returns:
true if the point on the position is overlapped, else false
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::registerFound ( const cVectorPosition foundPoint,
const bool  bFound = true 
)

This method registers the given point as found or not found point.

See also:
pImageDataFound
isFound()
getFoundNeighbours()
Parameters:
foundPointthe point to register (/set) as (/not) found point
bFoundif true the point will be registered as found, else the point will be registered as not found
Returns:
true if the point wher (/not) registered as found, else false
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::registerFound ( const set< cVectorPosition > &  setFoundPoints,
const bool  bFound = true 
)

This method registers the given points as found or not found points.

See also:
pImageDataFound
isFound()
getFoundNeighbours()
Parameters:
setFoundPointsa set with the points to register (/set) as (/not) found points
bFoundif true the points will be registered as found, else the points will be registered as not found
Returns:
true if the points wher (/not) registered as found, else false and no data changed
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::registerFound ( const cImageStructure pImageStrFoundPoints,
const bool  bFound = true 
)

This method registers the points of the given image structure as found or not found points.

See also:
pImageDataFound
isFound()
getFoundNeighbours()
cImageStructure
Parameters:
pImageStrFoundPointsthe cImageStructure with the points to register (/set) as (/not) found points
bFoundif true the points will be registered as found, else the points will be registered as not found
Returns:
true if the points wher (/not) registered as found, else false and no data changed
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::registerOverlapped ( const cVectorPosition overlappedPoint,
const bool  bOverlapped = true 
)

This method registers the given point as overlapped or not overlapped point.

See also:
pImageDataOverlapped
isOverlapped()
getOverlappedNeighbours()
Parameters:
overlappedPointthe point to register (/set) as (/not) overlapped point
bOverlappedif true the point will be registered as overlapped, else the point will be registered as not overlapped
Returns:
true if the point wher (/not) registered as overlapped, else false
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::registerOverlapped ( const set< cVectorPosition > &  setOverlappedPoints,
const bool  bOverlapped = true 
)

This method registers the given points as overlapped or not overlapped points.

See also:
pImageDataOverlapped
isOverlapped()
getOverlappedNeighbours()
Parameters:
setOverlappedPointsa set with the points to register (/set) as (/not) overlapped points
bOverlappedif true the points will be registered as overlapped, else the points will be registered as not overlapped
Returns:
true if the points wher (/not) registered as overlapped, else false and no data changed
bool fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::registerOverlapped ( const cImageStructure pImageStrOverlappedPoints,
const bool  bOverlapped = true 
)

This method registers the points of the given image structure as overlapped or not overlapped points.

See also:
pImageDataOverlapped
isOverlapped()
getOverlappedNeighbours()
cImageStructure
Parameters:
pImageStrOverlappedPointsthe cImageStructure with the points to register (/set) as (/not) overlapped points
bOverlappedif true the points will be registered as overlapped, else the points will be registered as not overlapped
Returns:
true if the points wher (/not) registered as overlapped, else false and no data changed

Member Data Documentation

const iImageData* fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::pImageData
protected

A pointer to the image data, of the image for the search.

Definition at line 73 of file cImageSearchData.h.

unsigned char* fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::pImageDataFound
protected

The matrix with the data, which points of the image wher found (converted). The values are 1 bit: 0 for not found and 1 for found

The pointer will point to an one dimensional array. You have to evalue the single entries by hand (with: *((pImageData + ((y * ulWidth + x) / 8)) ) & ( 0x01 << (y * ulWidth + x) % 8 ) ) ( x in dim 1 or ulWidth, y in dim 2 or ulHeight )

Definition at line 94 of file cImageSearchData.h.

unsigned char* fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::pImageDataOverlapped
protected

The matrix with the data, which points of the image wher overlapped by found structures. The values are 1 bit: 0 for not overlapped and 1 for overlapped

The pointer will point to an one dimensional array. You have to evalue the single entries by hand (with: *((pImageDataOverlapped + ((y * ulWidth + x) / 8)) ) & ( 0x01 << (y * ulWidth + x) % 8 ) ) ( x in dim 1 or ulWidth, y in dim 2 or ulHeight )

Definition at line 106 of file cImageSearchData.h.

unsigned long fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::ulHeight
protected

The height of the image to search.

Definition at line 83 of file cImageSearchData.h.

unsigned long fib::algorithms::nConvertToFib::nImage::nStructureData::cImageSearchData::ulWidth
protected

The width of the image to search.

Definition at line 78 of file cImageSearchData.h.


The documentation for this class was generated from the following file: