public class ImagePixelsColor extends ImagePixels
intsPerRow, isColorSet, isGraySet, itsBounds, itsBytesPerPixel, itsColors, itsFocusPixelValue, itsGrays, PIXEL_BLACK, PIXEL_WHITE, PixelCols, PixelRows
Constructor and Description |
---|
ImagePixelsColor(int PixelCols,
int PixelRows)
constructor for the ImagePixels class.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
asBufferedImage()
This method returns the ImagePixel Data as a BufferedImage
|
void |
checkColorSet()
This method returns the ImagePixel Data as a BufferedImage
|
int |
getCDifference(java.awt.Color aColor,
java.awt.Color bColor)
get the absolute difference between two colors
|
int |
getCDifference(java.awt.Color aColor,
int c2)
get the absolute difference between two colors
|
int |
getCDifference(int c1,
int c2)
get the absolute difference between two colors
|
java.lang.String |
getPixelValuesString(int Cols,
int Rows)
obtains the pixel String values within a given area of the ImagePixels
|
void |
listCPixelValues(java.awt.Rectangle aRect)
Lists the pixel byte values within a given area of the ImagePixels
|
java.util.ArrayList<TargetCaptureData> |
locateColorLabel(TrackingJobSetting tJobSetting)
finds the pixel with the grayscale value closest to the provided color
|
asbyteArray, fillGrayPixels, findLastInsideEdgePixel, findLastOutsideEdgePixel, getBlue, getBlueValue, getByte, getColorInt, getGrayPixelMax, getGrayValue, getGreen, getGreenValue, getPixel, getRed, getRedValue, getRGBColor, getValue, listInfo, listPixelCValues, listPixelRValues, listPixelValues, listPixelValues, locateObjectPolys, locateTargets, setPixels, setPixels, setPixels
public ImagePixelsColor(int PixelCols, int PixelRows)
PixelCols
- number of columns in this rectangle (horizontal dimension)PixelRows
- number of rows in this rectangle (vertical dimension)public java.lang.String getPixelValuesString(int Cols, int Rows) throws java.lang.Exception
Cols
- number of columns in this rectangle (horizontal dimension)Rows
- number of rows in this rectangle (vertical dimension)java.lang.Exception
public int getCDifference(int c1, int c2)
c1
- color one stored as an intc2
- color two stored as an intpublic int getCDifference(java.awt.Color aColor, int c2) throws java.lang.Exception
aColor
- color onec2
- color two stored as an intjava.lang.Exception
public int getCDifference(java.awt.Color aColor, java.awt.Color bColor) throws java.lang.Exception
aColor
- color onebColor
- color twojava.lang.Exception
public java.util.ArrayList<TargetCaptureData> locateColorLabel(TrackingJobSetting tJobSetting) throws java.lang.Exception
locateColorLabel
in class ImagePixels
tJobSetting
- the specific settings to use in trackingjava.lang.Exception
public void listCPixelValues(java.awt.Rectangle aRect) throws java.lang.Exception
aRect
- specifies the area for which the calculation will be reportedjava.lang.Exception
public java.awt.image.BufferedImage asBufferedImage() throws java.lang.Exception
java.lang.Exception
public void checkColorSet() throws java.lang.Exception
java.lang.Exception
RH, 2017