|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.first.wpilibj.image.Image
edu.wpi.first.wpilibj.image.ColorImage
public abstract class ColorImage
A class representing a color image.
Field Summary |
---|
Fields inherited from class edu.wpi.first.wpilibj.image.Image |
---|
image |
Method Summary | |
---|---|
ColorImage |
colorEqualize()
Calculates the histogram of each plane of a color image and redistributes pixel values across the desired range while maintaining pixel value groupings. |
MonoImage |
getBluePlane()
Get the blue color plane from the image when represented in RGB color space. |
MonoImage |
getGreenPlane()
Get the green color plane from the image when represented in RGB color space. |
MonoImage |
getHSIHuePlane()
Get the hue color plane from the image when represented in HSI color space. |
MonoImage |
getHSISaturationPlane()
Get the saturation color plane from the image when represented in HSI color space. |
MonoImage |
getHSLHuePlane()
Get the hue color plane from the image when represented in HSL color space. |
MonoImage |
getHSLSaturationPlane()
Get the saturation color plane from the image when represented in HSL color space. |
MonoImage |
getHSVHuePlane()
Get the hue color plane from the image when represented in HSV color space. |
MonoImage |
getHSVSaturationPlane()
Get the saturation color plane from the image when represented in HSV color space. |
MonoImage |
getIntensityPlane()
Get the intensity color plane from the image when represented in HSI color space. |
MonoImage |
getLuminancePlane()
Get the luminance color plane from the image when represented in HSL color space. |
MonoImage |
getRedPlane()
Get the red color plane from the image when represented in RGB color space. |
MonoImage |
getValuePlane()
Get the value color plane from the image when represented in HSV color space. |
ColorImage |
luminanceEqualize()
Calculates the histogram of each plane of a color image and redistributes pixel values across the desired range while maintaining pixel value groupings for the Luminance plane only. |
ColorImage |
replaceBluePlane(MonoImage plane)
Set the blue color plane from the image when represented in RGB color space. |
ColorImage |
replaceGreenPlane(MonoImage plane)
Set the green color plane from the image when represented in RGB color space. |
ColorImage |
replaceHSIHuePlane(MonoImage plane)
Set the hue color plane from the image when represented in HSI color space. |
ColorImage |
replaceHSISaturationPlane(MonoImage plane)
Set the saturation color plane from the image when represented in HSI color space. |
ColorImage |
replaceHSLHuePlane(MonoImage plane)
Set the hue color plane from the image when represented in HSL color space. |
ColorImage |
replaceHSLSaturationPlane(MonoImage plane)
Set the saturation color plane from the image when represented in HSL color space. |
ColorImage |
replaceHSVHuePlane(MonoImage plane)
Set the hue color plane from the image when represented in HSV color space. |
ColorImage |
replaceHSVSaturationPlane(MonoImage plane)
Set the saturation color plane from the image when represented in HSV color space. |
ColorImage |
replaceIntensityPlane(MonoImage plane)
Set the intensity color plane from the image when represented in HSI color space. |
ColorImage |
replaceLuminancePlane(MonoImage plane)
Set the luminance color plane from the image when represented in HSL color space. |
ColorImage |
replaceRedPlane(MonoImage plane)
Set the red color plane from the image when represented in RGB color space. |
ColorImage |
replaceValuePlane(MonoImage plane)
Set the value color plane from the image when represented in HSV color space. |
BinaryImage |
thresholdHSI(int hueLow,
int hueHigh,
int saturationLow,
int saturationHigh,
int intansityLow,
int intensityHigh)
Return a mask of the areas of the image that fall within the given ranges for color values |
BinaryImage |
thresholdHSL(int hueLow,
int hueHigh,
int saturationLow,
int saturationHigh,
int luminenceLow,
int luminenceHigh)
Return a mask of the areas of the image that fall within the given ranges for color values |
BinaryImage |
thresholdHSV(int hueLow,
int hueHigh,
int saturationLow,
int saturationHigh,
int valueLow,
int valueHigh)
Return a mask of the areas of the image that fall within the given ranges for color values |
BinaryImage |
thresholdRGB(int redLow,
int redHigh,
int greenLow,
int greenHigh,
int blueLow,
int blueHigh)
Return a mask of the areas of the image that fall within the given ranges for color values |
Methods inherited from class edu.wpi.first.wpilibj.image.Image |
---|
free, getHeight, getWidth, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public BinaryImage thresholdRGB(int redLow, int redHigh, int greenLow, int greenHigh, int blueLow, int blueHigh) throws NIVisionException
redLow
- The lower red limit.redHigh
- The upper red limit.greenLow
- The lower green limit.greenHigh
- The upper green limit.blueLow
- The lower blue limit.blueHigh
- The upper blue limit.
NIVisionException
public BinaryImage thresholdHSL(int hueLow, int hueHigh, int saturationLow, int saturationHigh, int luminenceLow, int luminenceHigh) throws NIVisionException
hueLow
- The lower hue limit.hueHigh
- The upper hue limit.saturationLow
- The lower saturation limit.saturationHigh
- The upper saturation limit.luminenceLow
- The lower luminence limit.luminenceHigh
- The upper luminence limit.
NIVisionException
public BinaryImage thresholdHSV(int hueLow, int hueHigh, int saturationLow, int saturationHigh, int valueLow, int valueHigh) throws NIVisionException
hueLow
- The lower hue limit.hueHigh
- The upper hue limit.saturationLow
- The lower saturation limit.saturationHigh
- The upper saturation limit.valueHigh
- The lower value limit.valueLow
- The upper value limit.
NIVisionException
public BinaryImage thresholdHSI(int hueLow, int hueHigh, int saturationLow, int saturationHigh, int intansityLow, int intensityHigh) throws NIVisionException
hueLow
- The lower hue limit.hueHigh
- The upper hue limit.saturationLow
- The lower saturation limit.saturationHigh
- The upper saturation limit.intansityLow
- The lower intensity limit.intensityHigh
- The upper intensity limit.
NIVisionException
public MonoImage getRedPlane() throws NIVisionException
NIVisionException
public MonoImage getGreenPlane() throws NIVisionException
NIVisionException
public MonoImage getBluePlane() throws NIVisionException
NIVisionException
public MonoImage getHSLHuePlane() throws NIVisionException
NIVisionException
public MonoImage getHSVHuePlane() throws NIVisionException
NIVisionException
public MonoImage getHSIHuePlane() throws NIVisionException
NIVisionException
public MonoImage getHSLSaturationPlane() throws NIVisionException
NIVisionException
public MonoImage getHSVSaturationPlane() throws NIVisionException
NIVisionException
public MonoImage getHSISaturationPlane() throws NIVisionException
NIVisionException
public MonoImage getLuminancePlane() throws NIVisionException
NIVisionException
public MonoImage getValuePlane() throws NIVisionException
NIVisionException
public MonoImage getIntensityPlane() throws NIVisionException
NIVisionException
public ColorImage replaceRedPlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceGreenPlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceBluePlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceHSLHuePlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceHSVHuePlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceHSIHuePlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceHSLSaturationPlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceHSVSaturationPlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceHSISaturationPlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceLuminancePlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceValuePlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage replaceIntensityPlane(MonoImage plane) throws NIVisionException
plane
- The MonoImage representing the new color plane.
NIVisionException
public ColorImage colorEqualize() throws NIVisionException
NIVisionException
public ColorImage luminanceEqualize() throws NIVisionException
NIVisionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |