code/WPILib/Vision/BinaryImage.cpp
/**
 * Measure a single parameter for an image.
 * Get the measurement for a single parameter about an image by calling the imaqMeasureParticle
 * function for the selected parameter.
 * @param image the image to measure
 * @param particleNumber which particle in the set of particles
 * @param whatToMeasure the imaq MeasurementType (what to measure)
 * @returns the value of the measurement
 */
Measure a single parameter for an image.
Get the measurement for a single parameter about an image by calling the imaqMeasureParticle
function for the selected parameter.
@param image the image to measure
@param particleNumber which particle in the set of particles
@param whatToMeasure the imaq MeasurementType (what to measure)
@returns the value of the measurement
Measure a single parameter for an image . Get the measurement for a single parameter about an image by calling the imaqMeasureParticle function for the selected parameter . @param image the image to measure @param particleNumber which particle in the set of particles @param whatToMeasure the imaq MeasurementType ( what to measure ) @returns the value of the measurement
double BinaryImage::ParticleMeasurement(int particleNumber, MeasurementType whatToMeasure)
{
	double returnDouble;
	int success;
	success = imaqMeasureParticle(m_imaqImage, particleNumber, 0, whatToMeasure, &returnDouble);
	wpi_imaqAssert(success, "Error measuring particle");
	if (!success) return 0.0;
	else return returnDouble;
}
double BinaryImage :: ParticleMeasurement ( int particleNumber , MeasurementType whatToMeasure ) { double returnDouble ; int success ; success = imaqMeasureParticle ( m_imaqImage , particleNumber , 0 , whatToMeasure , & returnDouble ) ; wpi_imaqAssert ( success , " " ) ; if ( ! success ) return 0.0 ; else return returnDouble ; }
Measure a single parameter for an image.
Measure a single parameter for an image .