WPILib 2012
WPILibRoboticsLibraryforFRC
Public Member Functions
BinaryImage Class Reference
Inheritance diagram for BinaryImage:
MonoImage ImageBase ErrorBase

List of all members.

Public Member Functions

int GetNumberParticles ()
ParticleAnalysisReport GetParticleAnalysisReport (int particleNumber)
void GetParticleAnalysisReport (int particleNumber, ParticleAnalysisReport *par)
vector< ParticleAnalysisReport > * GetOrderedParticleAnalysisReports ()
virtual void Write (const char *fileName)

Member Function Documentation

int BinaryImage::GetNumberParticles ( )

Get then number of particles for the image.

Returns:
the number of particles found for the image.
vector< ParticleAnalysisReport > * BinaryImage::GetOrderedParticleAnalysisReports ( )

Get an ordered vector of particles for the image. Create a vector of particle analysis reports sorted by size for an image. The vector contains the actual report structures.

Returns:
a pointer to the vector of particle analysis reports. The caller must delete the vector when finished using it.
ParticleAnalysisReport BinaryImage::GetParticleAnalysisReport ( int  particleNumber)

Get a single particle analysis report. Get one (of possibly many) particle analysis reports for an image.

Parameters:
particleNumberWhich particle analysis report to return.
Returns:
the selected particle analysis report
void BinaryImage::GetParticleAnalysisReport ( int  particleNumber,
ParticleAnalysisReport par 
)

Get a single particle analysis report. Get one (of possibly many) particle analysis reports for an image. This version could be more efficient when copying many reports.

Parameters:
particleNumberWhich particle analysis report to return.
parthe selected particle analysis report
void BinaryImage::Write ( const char *  fileName) [virtual]

Write a binary image to flash. Writes the binary image to flash on the cRIO for later inspection.

Parameters:
fileNamethe name of the image file written to the flash.

Reimplemented from ImageBase.


The documentation for this class was generated from the following files:
 All Classes Functions Variables