@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectLabelsImageProperties extends Object implements Serializable, Cloneable, StructuredPojo
Information about the quality and dominant colors of an input image. Quality and color information is returned for the entire image, foreground, and background.
Constructor and Description |
---|
DetectLabelsImageProperties() |
Modifier and Type | Method and Description |
---|---|
DetectLabelsImageProperties |
clone() |
boolean |
equals(Object obj) |
DetectLabelsImageBackground |
getBackground()
Information about the properties of an image’s background, including the background’s quality and dominant
colors, including the quality and dominant colors of the image.
|
List<DominantColor> |
getDominantColors()
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified
color name, and PixelPercentage (the percentage of image pixels that have a particular color).
|
DetectLabelsImageForeground |
getForeground()
Information about the properties of an image’s foreground, including the foreground’s quality and dominant
colors, including the quality and dominant colors of the image.
|
DetectLabelsImageQuality |
getQuality()
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBackground(DetectLabelsImageBackground background)
Information about the properties of an image’s background, including the background’s quality and dominant
colors, including the quality and dominant colors of the image.
|
void |
setDominantColors(Collection<DominantColor> dominantColors)
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified
color name, and PixelPercentage (the percentage of image pixels that have a particular color).
|
void |
setForeground(DetectLabelsImageForeground foreground)
Information about the properties of an image’s foreground, including the foreground’s quality and dominant
colors, including the quality and dominant colors of the image.
|
void |
setQuality(DetectLabelsImageQuality quality)
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast.
|
String |
toString()
Returns a string representation of this object.
|
DetectLabelsImageProperties |
withBackground(DetectLabelsImageBackground background)
Information about the properties of an image’s background, including the background’s quality and dominant
colors, including the quality and dominant colors of the image.
|
DetectLabelsImageProperties |
withDominantColors(Collection<DominantColor> dominantColors)
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified
color name, and PixelPercentage (the percentage of image pixels that have a particular color).
|
DetectLabelsImageProperties |
withDominantColors(DominantColor... dominantColors)
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified
color name, and PixelPercentage (the percentage of image pixels that have a particular color).
|
DetectLabelsImageProperties |
withForeground(DetectLabelsImageForeground foreground)
Information about the properties of an image’s foreground, including the foreground’s quality and dominant
colors, including the quality and dominant colors of the image.
|
DetectLabelsImageProperties |
withQuality(DetectLabelsImageQuality quality)
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast.
|
public void setQuality(DetectLabelsImageQuality quality)
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast. The higher the value the greater the brightness, sharpness, and contrast respectively.
quality
- Information about the quality of the image foreground as defined by brightness, sharpness, and contrast.
The higher the value the greater the brightness, sharpness, and contrast respectively.public DetectLabelsImageQuality getQuality()
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast. The higher the value the greater the brightness, sharpness, and contrast respectively.
public DetectLabelsImageProperties withQuality(DetectLabelsImageQuality quality)
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast. The higher the value the greater the brightness, sharpness, and contrast respectively.
quality
- Information about the quality of the image foreground as defined by brightness, sharpness, and contrast.
The higher the value the greater the brightness, sharpness, and contrast respectively.public List<DominantColor> getDominantColors()
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
public void setDominantColors(Collection<DominantColor> dominantColors)
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
dominantColors
- Information about the dominant colors found in an image, described with RGB values, CSS color name,
simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).public DetectLabelsImageProperties withDominantColors(DominantColor... dominantColors)
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
NOTE: This method appends the values to the existing list (if any). Use
setDominantColors(java.util.Collection)
or withDominantColors(java.util.Collection)
if you want
to override the existing values.
dominantColors
- Information about the dominant colors found in an image, described with RGB values, CSS color name,
simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).public DetectLabelsImageProperties withDominantColors(Collection<DominantColor> dominantColors)
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
dominantColors
- Information about the dominant colors found in an image, described with RGB values, CSS color name,
simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).public void setForeground(DetectLabelsImageForeground foreground)
Information about the properties of an image’s foreground, including the foreground’s quality and dominant colors, including the quality and dominant colors of the image.
foreground
- Information about the properties of an image’s foreground, including the foreground’s quality and dominant
colors, including the quality and dominant colors of the image.public DetectLabelsImageForeground getForeground()
Information about the properties of an image’s foreground, including the foreground’s quality and dominant colors, including the quality and dominant colors of the image.
public DetectLabelsImageProperties withForeground(DetectLabelsImageForeground foreground)
Information about the properties of an image’s foreground, including the foreground’s quality and dominant colors, including the quality and dominant colors of the image.
foreground
- Information about the properties of an image’s foreground, including the foreground’s quality and dominant
colors, including the quality and dominant colors of the image.public void setBackground(DetectLabelsImageBackground background)
Information about the properties of an image’s background, including the background’s quality and dominant colors, including the quality and dominant colors of the image.
background
- Information about the properties of an image’s background, including the background’s quality and dominant
colors, including the quality and dominant colors of the image.public DetectLabelsImageBackground getBackground()
Information about the properties of an image’s background, including the background’s quality and dominant colors, including the quality and dominant colors of the image.
public DetectLabelsImageProperties withBackground(DetectLabelsImageBackground background)
Information about the properties of an image’s background, including the background’s quality and dominant colors, including the quality and dominant colors of the image.
background
- Information about the properties of an image’s background, including the background’s quality and dominant
colors, including the quality and dominant colors of the image.public String toString()
toString
in class Object
Object.toString()
public DetectLabelsImageProperties clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.