/**
 * Perform a threshold in HSV space.
 * @param hueLow Low value for hue
 * @param hueHigh High value for hue
 * @param saturationLow Low value for saturation
 * @param saturationHigh High value for saturation
 * @param valueLow Low value
 * @param valueHigh High value
 * @returns a pointer to a BinaryImage that represents the result of the threshold operation.
 */
BinaryImage *ColorImage::ThresholdHSV(int hueLow, int hueHigh, int saturationLow, int saturationHigh, int valueLow, int valueHigh)
{
	return ComputeThreshold(IMAQ_HSV, hueLow, hueHigh, saturationLow, saturationHigh, valueLow, valueHigh);
}
Пример #2
0
/**
 * Perform a threshold in HSL space.
 *
 * @param threshold a reference to the Threshold object to use.
 * @return A pointer to a BinaryImage that represents the result of the
 *         threshold operation.
 */
BinaryImage* ColorImage::ThresholdHSL(Threshold& t) {
  return ComputeThreshold(IMAQ_HSL, t.plane1Low, t.plane1High, t.plane2Low,
                          t.plane2High, t.plane3Low, t.plane3High);
}
Пример #3
0
/**
 * Perform a threshold in RGB space.
 *
 * @param redLow    Red low value
 * @param redHigh   Red high value
 * @param greenLow  Green low value
 * @param greenHigh Green high value
 * @param blueLow   Blue low value
 * @param blueHigh  Blue high value
 * @return A pointer to a BinaryImage that represents the result of the
 *         threshold operation.
 */
BinaryImage* ColorImage::ThresholdRGB(int redLow, int redHigh, int greenLow,
                                      int greenHigh, int blueLow,
                                      int blueHigh) {
  return ComputeThreshold(IMAQ_RGB, redLow, redHigh, greenLow, greenHigh,
                          blueLow, blueHigh);
}
Пример #4
0
/**
 * Perform a threshold in HSL space.
 *
 * @param hueLow         Low value for hue
 * @param hueHigh        High value for hue
 * @param saturationLow  Low value for saturation
 * @param saturationHigh High value for saturation
 * @param luminenceLow   Low value for luminence
 * @param luminenceHigh  High value for luminence
 * @return a pointer to a BinaryImage that represents the result of the
 *         threshold operation.
 */
BinaryImage* ColorImage::ThresholdHSL(int hueLow, int hueHigh,
                                      int saturationLow, int saturationHigh,
                                      int luminenceLow, int luminenceHigh) {
  return ComputeThreshold(IMAQ_HSL, hueLow, hueHigh, saturationLow,
                          saturationHigh, luminenceLow, luminenceHigh);
}
Пример #5
0
/**
 * Perform a threshold in HSI space.
 *
 * @param hueLow         Low value for hue
 * @param hueHigh        High value for hue
 * @param saturationLow  Low value for saturation
 * @param saturationHigh High value for saturation
 * @param valueLow       Low intensity
 * @param valueHigh      High intensity
 * @return a pointer to a BinaryImage that represents the result of the
 *         threshold operation.
 */
BinaryImage* ColorImage::ThresholdHSI(int hueLow, int hueHigh,
                                      int saturationLow, int saturationHigh,
                                      int intensityLow, int intensityHigh) {
  return ComputeThreshold(IMAQ_HSI, hueLow, hueHigh, saturationLow,
                          saturationHigh, intensityLow, intensityHigh);
}