Conjecture::PixelLine15 Class Reference

#include <PixelLine15.h>

Inheritance diagram for Conjecture::PixelLine15:

Conjecture::Root List of all members.

Detailed Description

A class for describing a line of up to 16 pixels.

This class is used within OptIm to provide efficient feature extraction.


Public Member Functions

 PixelLine15 (unsigned int pixels)
unsigned int holes () const
unsigned int pixels () const
unsigned int black () const
bool get (unsigned i) const
void set (unsigned i)
void clear (unsigned i)
std::string str (char on= '#', char off= '.', unsigned char size=15) const
 Binary representation, as a string (inefficienct - debugging only).

Static Public Member Functions

static void test (int argc=0, const char *argv[]=NULL)

Protected Member Functions

void holesIs (unsigned int holes)
void pixelsIs (unsigned int pixels)
void blackIs (unsigned int black)


Member Function Documentation

void Conjecture::PixelLine15::clear unsigned  i  ) 
 

Sets pixel i to 0.

Pixels start indexing from 0. The 'index' is NOT verified to be within either soft or hard size limits.

bool Conjecture::PixelLine15::get unsigned  i  )  const [inline]
 

Return 0 if pixel position i is not set, 1 if it is set.

Pixels start indexing from 0. The 'index' is is NOT verified to be within either soft or hard size limits.

void Conjecture::PixelLine15::set unsigned  i  ) 
 

Sets pixel i to 1.

Pixels start indexing from 0. The 'index' is NOT verified to be within either soft or hard size limits.


The documentation for this class was generated from the following files:
Generated on Thu Jun 15 19:56:11 2006 for Conjecture by  doxygen 1.4.6