WPILibC++
unspecified
|
Included for ParticleAnalysisReport definition TODO: Eliminate this dependency! More...
#include <BinaryImage.h>
Public Member Functions | |
int | GetNumberParticles () |
Get then number of particles for the image. More... | |
ParticleAnalysisReport | GetParticleAnalysisReport (int particleNumber) |
Get a single particle analysis report. More... | |
void | GetParticleAnalysisReport (int particleNumber, ParticleAnalysisReport *par) |
Get a single particle analysis report. More... | |
std::vector < ParticleAnalysisReport > * | GetOrderedParticleAnalysisReports () |
Get an ordered vector of particles for the image. More... | |
BinaryImage * | RemoveSmallObjects (bool connectivity8, int erosions) |
BinaryImage * | RemoveLargeObjects (bool connectivity8, int erosions) |
BinaryImage * | ConvexHull (bool connectivity8) |
BinaryImage * | ParticleFilter (ParticleFilterCriteria2 *criteria, int criteriaCount) |
virtual void | Write (const char *fileName) |
Write a binary image to flash. More... | |
![]() | |
std::vector< EllipseMatch > * | DetectEllipses (EllipseDescriptor *ellipseDescriptor, CurveOptions *curveOptions, ShapeDetectionOptions *shapeDetectionOptions, ROI *roi) |
Look for ellipses in an image. More... | |
std::vector< EllipseMatch > * | DetectEllipses (EllipseDescriptor *ellipseDescriptor) |
![]() | |
ImageBase (ImageType type) | |
Create a new instance of an ImageBase. More... | |
virtual | ~ImageBase () |
Frees memory associated with an ImageBase. More... | |
int | GetHeight () |
Gets the height of an image. More... | |
int | GetWidth () |
Gets the width of an image. More... | |
Image * | GetImaqImage () |
Access the internal IMAQ Image data structure. More... | |
![]() | |
ErrorBase (const ErrorBase &)=delete | |
ErrorBase & | operator= (const ErrorBase &)=delete |
virtual Error & | GetError () |
Retrieve the current error. More... | |
virtual const Error & | GetError () const |
virtual void | SetErrnoError (llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) const |
Set error information associated with a C library call that set an error to the "errno" global variable. More... | |
virtual void | SetImaqError (int success, llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) const |
Set the current error information associated from the nivision Imaq API. More... | |
virtual void | SetError (Error::Code code, llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) const |
Set the current error information associated with this sensor. More... | |
virtual void | SetWPIError (llvm::StringRef errorMessage, Error::Code code, llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) const |
Set the current error information associated with this sensor. More... | |
virtual void | CloneError (const ErrorBase &rhs) const |
virtual void | ClearError () const |
Clear the current error information associated with this sensor. | |
virtual bool | StatusIsFatal () const |
Check if the current error code represents a fatal error. More... | |
Additional Inherited Members | |
![]() | |
static void | SetGlobalError (Error::Code code, llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) |
static void | SetGlobalWPIError (llvm::StringRef errorMessage, llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) |
static Error & | GetGlobalError () |
Retrieve the current global error. | |
![]() | |
Image * | m_imaqImage |
![]() | |
Error | m_error |
![]() | |
static priority_mutex | _globalErrorMutex |
static Error | _globalError |
Included for ParticleAnalysisReport definition TODO: Eliminate this dependency!
int BinaryImage::GetNumberParticles | ( | ) |
Get then number of particles 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.
ParticleAnalysisReport BinaryImage::GetParticleAnalysisReport | ( | int | particleNumber | ) |
Get a single particle analysis report.
Get one (of possibly many) particle analysis reports for an image.
particleNumber | Which particle analysis report to return. |
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.
particleNumber | Which particle analysis report to return. |
par | the selected particle analysis report |
|
virtual |
Write a binary image to flash.
Writes the binary image to flash on the cRIO for later inspection.
fileName | the name of the image file written to the flash. |
Reimplemented from ImageBase.