Class

cogio.imagefiles

ImageFileReader

Related Doc: package imagefiles

Permalink

class ImageFileReader extends AnyRef

Reads standard image files (.jpeg, .gif, .png, .bmp, .wbmp) and provides access to the pixels in the image. The "grayscale" method converts the image to a 2D pixel array with each pixel scaled to the interval [0, 1]; this method uses the green channel information as an approximation of black and white.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ImageFileReader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ImageFileReader(filename: String)

    Permalink

    filename

    Full path name of the image file

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Verbose: Boolean

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def color: Array[Array[Array[Float]]]

    Permalink

    Access as a stack of 2D arrays of pixels.

    Access as a stack of 2D arrays of pixels. The first index is the color plane (0 = red, 1 = green, 2 = blue), the next two indices are the row and column of the pixel, respectively.

  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def grayscale: Array[Array[Float]]

    Permalink

    Access as a 2D array of grayscale pixels, each pixel in [0.0, 1.0]

  13. def grayscaleIterator: Iterator[Float] { def hasNext(): Boolean }

    Permalink

    Get an iterator over the grayscale pixels in an image in row-major order.

    Get an iterator over the grayscale pixels in an image in row-major order.

    returns

    Iterator over pixels

  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. val image: BufferedImage

    Permalink
  16. val imageHeight: Int

    Permalink
  17. val imageWidth: Int

    Permalink
  18. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped