keystoneml.utils

Image

trait Image extends AnyRef

A wrapper trait for images that might be stored in various ways. Be warned that using this wrapper probably introduces some inefficiency. Also, images are currently treated as immutable, which may introduce a serious performance problem; in the future we may need to add a set() method.

If you have a choice and performance matters to you, use ChannelMajorArrayVectorizedImage, as it is likely to be the most efficient implementation.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Image
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def get(x: Int, y: Int, channelIdx: Int): Double

    Get the pixel value at (x, y, channelIdx).

    Get the pixel value at (x, y, channelIdx). Channels are indexed as follows:

    • If the image is RGB, 0 => blue, 1 => green, 2 => red.
    • If the image is RGB+alpha, 0 => blue, 1=> green, 2 => red, and 3 => alpha.
    • Other channel schemes are unsupported; the only reason this matters is that input converters (e.g. from BufferedImage to Image) need to handle channels consistently.
  2. abstract val metadata: ImageMetadata

  3. abstract def put(x: Int, y: Int, channelIdx: Int, newVal: Double): Unit

    Put a pixel value at (x, y, channelIdx).

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(o: Any): Boolean

    An inefficient implementation of equals().

    An inefficient implementation of equals(). Subclasses should override this if they can implement it more cheaply and anyone cares about such things.

    Definition Classes
    Image → AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatSize: Int

  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getSingleChannelAsFloatArray(): Array[Float]

  14. def getSingleChannelAsIntArray(): Array[Int]

  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toArray: Array[Double]

    Returns a flat version of the image, represented as a single array.

    Returns a flat version of the image, represented as a single array. It is indexed as follows: The pixel value for (x, y, channelIdx) is at channelIdx + x*numChannels + y*numChannels*xDim.

    This implementation works for arbitrary image formats but it is inefficient.

  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped