Package org.apache.spark.ml.image
Class ImageSchema
Object
org.apache.spark.ml.image.ImageSchema
Defines the image schema and methods to read and manipulate images.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StructTypeSchema for the image column: Row(String, Int, Int, Int, Int, Array[Byte])static byte[]Gets the image datastatic intGets the height of the imagestatic intGets the OpenCV representation as an intstatic intgetNChannels(Row row) Gets the number of channels in the imagestatic StringGets the origin of the imagestatic intGets the width of the imagestatic String[]static StructTypeDataFrame with a single column of images named "image" (nullable)(Java-specific) OpenCV type mapping supportedocvTypes()(Scala-specific) OpenCV type mapping supportedstatic String
- 
Constructor Details- 
ImageSchemapublic ImageSchema()
 
- 
- 
Method Details- 
undefinedImageType
- 
ocvTypes(Scala-specific) OpenCV type mapping supported- Returns:
- (undocumented)
 
- 
javaOcvTypes(Java-specific) OpenCV type mapping supported- Returns:
- (undocumented)
 
- 
columnSchemaSchema for the image column: Row(String, Int, Int, Int, Int, Array[Byte])- Returns:
- (undocumented)
 
- 
imageFields
- 
imageSchemaDataFrame with a single column of images named "image" (nullable)- Returns:
- (undocumented)
 
- 
getOriginGets the origin of the image- Parameters:
- row- (undocumented)
- Returns:
- The origin of the image
 
- 
getHeightGets the height of the image- Parameters:
- row- (undocumented)
- Returns:
- The height of the image
 
- 
getWidthGets the width of the image- Parameters:
- row- (undocumented)
- Returns:
- The width of the image
 
- 
getNChannelsGets the number of channels in the image- Parameters:
- row- (undocumented)
- Returns:
- The number of channels in the image
 
- 
getModeGets the OpenCV representation as an int- Parameters:
- row- (undocumented)
- Returns:
- The OpenCV representation as an int
 
- 
getDataGets the image data- Parameters:
- row- (undocumented)
- Returns:
- The image data
 
 
-