object ImageTransformer extends DefaultParamsReadable[ImageTransformer] with Serializable
Pipelined image processing.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ImageTransformer
- Serializable
- Serializable
- DefaultParamsReadable
- MLReadable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
convertToTensor(matrices: Array[Mat]): Array[Array[Array[Double]]]
Convert channel matrices to tensor in the shape of (C * H * W)
-
def
decodeImage(decodeMode: String)(r: Any): Option[(String, Mat)]
Convert Spark image representation to OpenCV format.
-
def
encodeImage(path: String, image: Mat): Row
Convert from OpenCV format to Dataframe Row.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extractChannels(channelOrder: String, autoConvertToColor: Boolean)(image: Mat): Array[Mat]
Extract channels from image.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
load(path: String): ImageTransformer
- Definition Classes
- ImageTransformer → MLReadable
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalizeChannels(means: Option[Array[Double]], stds: Option[Array[Double]], scaleFactor: Option[Double])(channels: Array[Mat]): Array[Mat]
Normalize each channel.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
processImage(stages: Seq[ImageTransformerStage])(image: Mat): Mat
Apply all OpenCV transformation stages to a single image.
Apply all OpenCV transformation stages to a single image. Break on OpenCV errors.
-
def
read: MLReader[ImageTransformer]
- Definition Classes
- DefaultParamsReadable → MLReadable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()