object ImageSchema
Defines the image schema and methods to read and manipulate images.
- Annotations
- @Since("2.3.0")
- Source
- ImageSchema.scala
- Alphabetic
- By Inheritance
- ImageSchema
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- val columnSchema: StructType
Schema for the image column: Row(String, Int, Int, Int, Int, Array[Byte])
- def getData(row: Row): Array[Byte]
Gets the image data
Gets the image data
- returns
The image data
- def getHeight(row: Row): Int
Gets the height of the image
Gets the height of the image
- returns
The height of the image
- def getMode(row: Row): Int
Gets the OpenCV representation as an int
Gets the OpenCV representation as an int
- returns
The OpenCV representation as an int
- def getNChannels(row: Row): Int
Gets the number of channels in the image
Gets the number of channels in the image
- returns
The number of channels in the image
- def getOrigin(row: Row): String
Gets the origin of the image
Gets the origin of the image
- returns
The origin of the image
- def getWidth(row: Row): Int
Gets the width of the image
Gets the width of the image
- returns
The width of the image
- val imageFields: Array[String]
- val imageSchema: StructType
DataFrame with a single column of images named "image" (nullable)
- val javaOcvTypes: Map[String, Int]
(Java-specific) OpenCV type mapping supported
- val ocvTypes: Map[String, Int]
(Scala-specific) OpenCV type mapping supported
- val undefinedImageType: String