Quote:
Originally Posted by Bryscus
Your binaryImage object would then contain a convex hulled image, right?
|
I believe so yes. BinaryImage inherits from MonoImage and therefore from ImageBase. If we look at the ImageBase header and source...
Code:
//...
public:
//...
Image *GetImaqImage();
protected:
Image *m_imaqImage;
Code:
Image *ImageBase::GetImaqImage()
{
return m_imaqImage;
}
And then a function from BinaryImage, it's simply using that image.
Code:
int BinaryImage::GetNumberParticles()
{
int numParticles = 0;
int success = imaqCountParticles(m_imaqImage, 1, &numParticles);
wpi_setImaqErrorWithContext(success, "Error counting particles");
return numParticles;
}