TarzaNN
TarzaNN neural network simulator
Public Member Functions | Public Attributes
OutputImage Class Reference

#include <OutputImage.h>

Inheritance diagram for OutputImage:
Matrix Array2D< float >

List of all members.

Public Member Functions

 OutputImage (const OutputImage &image)
 OutputImage (int w, int h, int id)
 OutputImage (char *buf)
 ~OutputImage ()
void incUseCount ()
void release ()
bool isInUse ()
void serialize (char *buf)
int getSendSize ()
void fromQImage (QImage *image, bool scale, float min, float max, OutputImage **list=NULL, int outputs=0)
QImage * toQImage (QImage *tmpImage, float max_activation, float *minRealPixelValue=NULL, float *maxRealPixelValue=NULL)
QImage * toScaledQImage (QImage *tmpImage, float min, float max)
OutputImagetoResizedImage (int newX, int newY)

Public Attributes

int timeStamp
int depth
int fpID

Detailed Description

Output of a feature plane


Constructor & Destructor Documentation

OutputImage::OutputImage ( const OutputImage image)
OutputImage::OutputImage ( int  w,
int  h,
int  id 
)
OutputImage::OutputImage ( char *  buf)

Constructor from buffer. Used with void OutputImage::serialize(char* buf).

OutputImage::~OutputImage ( )

Member Function Documentation

void OutputImage::fromQImage ( QImage *  image,
bool  scale,
float  min,
float  max,
OutputImage **  list = NULL,
int  outputs = 0 
)
int OutputImage::getSendSize ( )

Size of buffer needed for network communications. For serialize().

Reimplemented from Matrix.

void OutputImage::incUseCount ( )

Increment the usage counter

bool OutputImage::isInUse ( ) [inline]

Predicate, used to ensure that the output of a feature plane is not deleted while in use

void OutputImage::release ( )

Decrement the usage counter

void OutputImage::serialize ( char *  buf)

Serialize the OutputImage into the provided buffer. Used with OutputImage::OutputImage(int w, int h, int d, char* buf)

Reimplemented from Matrix.

QImage * OutputImage::toQImage ( QImage *  tmpImage,
float  max_activation,
float *  minRealPixelValue = NULL,
float *  maxRealPixelValue = NULL 
)
OutputImage * OutputImage::toResizedImage ( int  newX,
int  newY 
)

Resize using QImage functions

QImage * OutputImage::toScaledQImage ( QImage *  tmpImage,
float  min,
float  max 
)

Member Data Documentation

The ID of the feature plane, for communications purposes.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines