Class/Object

scalismo.faces.image

PixelImage

Related Docs: object PixelImage | package image

Permalink

class PixelImage[A] extends (Int, Int) ⇒ A

a basic pixel-based image, access through pixel coordinates (x, y)

Linear Supertypes
(Int, Int) ⇒ A, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PixelImage
  2. Function2
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PixelImage(domain: PixelImageDomain, accessMode: AccessMode[A], f: (Int, Int) ⇒ A)

    Permalink

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 accessMode: AccessMode[A]

    Permalink
  5. def apply(x: Int, y: Int): A

    Permalink

    access image at (x, y)

    access image at (x, y)

    Definition Classes
    PixelImage → Function2
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def buffer(implicit tag: ClassTag[A]): PixelImage[A]

    Permalink

    buffer the image contents with an Array

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. def col(x: Int): PixelImage[A]

    Permalink

    selected column as image, image view only

  10. def curried: (Int) ⇒ (Int) ⇒ A

    Permalink
    Definition Classes
    Function2
    Annotations
    @unspecialized()
  11. val domain: PixelImageDomain

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    PixelImage → AnyRef → Any
  14. val f: (Int, Int) ⇒ A

    Permalink
  15. def filter[B](imageFilter: ImageFilter[A, B]): PixelImage[B]

    Permalink

    apply a generic filter to this image - always non-destructive

  16. def foldLeft[B](init: B)(f: (B, A) ⇒ B): B

    Permalink

    fast folding: use for summing without boxing

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int

    Permalink
    Definition Classes
    PixelImage → AnyRef → Any
  19. val height: Int

    Permalink
  20. def interpolate(kernel: InterpolationKernel)(implicit ops: ColorSpaceOperations[A]): InterpolatedPixelImage[A]

    Permalink

    interpolate the image, cell-based: origin at top left (0.0, 0.0), first pixel (0, 0) at (0.5, 0.5)

  21. def interpolate(implicit ops: ColorSpaceOperations[A]): InterpolatedPixelImage[A]

    Permalink

    interpolate the image, use default kernel bilinear

  22. def interpolateNearestNeighbour: NearestNeighbourPixelImage[A]

    Permalink

    Nearest neighbouring cell value is chosen for interpolation.

    Nearest neighbouring cell value is chosen for interpolation. Interpolate the image, cell-based: origin at top left (0.0, 0.0), first pixel (0, 0) at (0.5, 0.5)

  23. val isBuffered: Boolean

    Permalink
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. val length: Int

    Permalink
  26. def map[B](f: (A) ⇒ B)(implicit tag: ClassTag[B]): PixelImage[B]

    Permalink

    apply a function to each pixel

  27. def mapLazy[B](f: (A) ⇒ B): PixelImage[B]

    Permalink

    apply a function to each pixel

  28. def mapWithIndex[B](f: (A, Int, Int) ⇒ B)(implicit tag: ClassTag[B]): PixelImage[B]

    Permalink

    apply a function to each pixel, has access to location of pixel

  29. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  32. def resample(cols: Int, rows: Int)(implicit ops: ColorSpaceOperations[A], tag: ClassTag[A]): PixelImage[A]

    Permalink

    resample the image with cols columns and rows, using the bilinear interpolation kernel

    resample the image with cols columns and rows, using the bilinear interpolation kernel

    cols

    Number of samples in x direction (new width)

    rows

    Number of samples in y direction (new height)

  33. def resample(cols: Int, rows: Int, kernel: InterpolationKernel = InterpolationKernel.BilinearKernel)(implicit ops: ColorSpaceOperations[A], tag: ClassTag[A]): PixelImage[A]

    Permalink

    resample the image with cols columns and rows, using an interpolation kernel

    resample the image with cols columns and rows, using an interpolation kernel

    cols

    Number of samples in x direction (new width)

    rows

    Number of samples in y direction (new height)

  34. def resampleNearestNeighbour(cols: Int, rows: Int)(implicit tag: ClassTag[A]): PixelImage[A]

    Permalink

    Resamples by taking the nearest neighbour cells for the interpolated value.

    Resamples by taking the nearest neighbour cells for the interpolated value. ColorSpaceOperations are thus not necessary and not needed for this special case of resampling, because no new values have to be created.

    cols

    Number of samples in x direction (new width)

    rows

    Number of samples in y direction (new height)

  35. def row(y: Int): PixelImage[A]

    Permalink

    selected row as image, image view only

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toArray(implicit tag: ClassTag[A]): Array[A]

    Permalink

    get all values as data Array (linearization strategy depends on domain, creates a copy)

  38. def toBuffer(implicit tag: ClassTag[A]): ImageBuffer[A]

    Permalink

    create a new ImageBuffer initialized with this image (does not change this image)

  39. def toString(): String

    Permalink
    Definition Classes
    PixelImage → Function2 → AnyRef → Any
  40. def transposed: PixelImage[A]

    Permalink

    transpose image, exchange x and y

  41. def tupled: ((Int, Int)) ⇒ A

    Permalink
    Definition Classes
    Function2
    Annotations
    @unspecialized()
  42. def valueAt(x: Int, y: Int): A

    Permalink

    direct raw access of image value at (x, y) - unchecked!

  43. def values: Iterator[A]

    Permalink

    iterator of all values in image

  44. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. val width: Int

    Permalink
  48. def withAccessMode(accessMode: AccessMode[A]): PixelImage[A]

    Permalink

    change the access mode (boundary behaviour, outside access) of this image

  49. def withDomain(domain: PixelImageDomain): PixelImage[A]

    Permalink

    view this image with another domain

  50. def zip[B](other: PixelImage[B]): PixelImage[(A, B)]

    Permalink

    zip two images together into a single tupled image

  51. def zipWithIndex: PixelImage[(A, (Int, Int))]

    Permalink

    zip pixel values with their location, yields (Color, (x, y))

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from (Int, Int) ⇒ A

Inherited from AnyRef

Inherited from Any

Ungrouped