geotrellis.raster.op.focal

FocalOp2

class FocalOp2[A, B, T] extends FocalOperation2[A, B, T]

Focal Operation that takes a raster, a neighborhood, and two other arguments.

T

Return type of the Operation.

Linear Supertypes
FocalOperation2[A, B, T], FocalOperation[T], Operation[T], Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FocalOp2
  2. FocalOperation2
  3. FocalOperation
  4. Operation
  5. Serializable
  6. Serializable
  7. Product
  8. Equals
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FocalOp2(r: Op[Raster], n: Op[Neighborhood], tns: Op[TileNeighbors], a: Op[A], b: Op[B])(getCalc: (Raster, Neighborhood) ⇒ FocalCalculation[T] with Initialization2[A, B])

    r

    Raster the focal operation will run against.

    n

    Neighborhood to use with this focal operation.

    tns

    TileNeighbors that describe the neighboring tiles.

    a

    Argument of type A.

    b

    Argument of type B.

    getCalc

    See notes for same parameter in FocalOp

Type Members

  1. type Args = List[Any]

    Definition Classes
    Operation
  2. type Steps = PartialFunction[Any, StepOutput[T]]

    Definition Classes
    Operation

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. def _run(): StepOutput[T]

    Definition Classes
    FocalOperation2Operation
  7. def andThen[U](f: (T) ⇒ Op[U]): Operation[U]

    Definition Classes
    Operation
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def canEqual(other: Any): Boolean

    Definition Classes
    FocalOperation2 → Equals
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val debug: Boolean

    Definition Classes
    Operation
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def filter(f: (T) ⇒ Boolean): Operation[T]

    Definition Classes
    Operation
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def flatMap[U](f: (T) ⇒ Operation[U]): Operation[U]

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Definition Classes
    Operation
  17. def flatten[B](implicit f: (T) ⇒ Op[B]): Operation[B]

    Definition Classes
    Operation
  18. def foreach[U](f: (T) ⇒ U): Unit

    Create an operation that applies the function f to the result of this operation, but returns nothing.

    Create an operation that applies the function f to the result of this operation, but returns nothing.

    Definition Classes
    Operation
  19. def getCalculation(r: Raster, n: Neighborhood): FocalCalculation[T] with Initialization2[A, B]

    Gets a calculation to be used with this focal operation for the given raster neighborhood.

    Gets a calculation to be used with this focal operation for the given raster neighborhood.

    Choosing the calculation based on on the raster and neighborhood allows flexibility in what calculation to use; if some calculations are faster for some neighborhoods (e.g., using a CellwiseCalculation for Square neighborhoods and a CursorCalculation for all other neighborhoods), or if you want to change the calculation based on the raster's data type, you can do so by returning the correct FocalCalculation from this function.

    r

    Raster that the focal calculation will run against.

    n

    Neighborhood that will be used in the focal operation.

    Definition Classes
    FocalOp2FocalOperation2
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. def into[U](f: (Operation[T]) ⇒ U): U

    Call the given function with this operation as its argument.

    Call the given function with this operation as its argument.

    This is primarily useful for code readability.

    Definition Classes
    Operation
    See also

    http://debasishg.blogspot.com/2009/09/thrush-combinator-in-scala.html

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def map[U](f: (T) ⇒ U): Operation[U]

    Create a new operation that returns the result of the provided function that takes this operation's result as its argument.

    Create a new operation that returns the result of the provided function that takes this operation's result as its argument.

    Definition Classes
    Operation
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. val nextSteps: PartialFunction[Any, StepOutput[T]]

    Definition Classes
    FocalOperation2Operation
  27. final def notify(): Unit

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

    Definition Classes
    AnyRef
  29. def opId: String

    Definition Classes
    Operation
  30. def prettyString: String

    Definition Classes
    Operation
  31. def processNextSteps(args: Args): StepOutput[T]

    Definition Classes
    Operation
  32. def productArity: Int

    Definition Classes
    FocalOperation2 → Product
  33. def productElement(index: Int): Any

    Definition Classes
    FocalOperation2 → Product
  34. def productIterator: Iterator[Any]

    Definition Classes
    Product
  35. def productPrefix: String

    Definition Classes
    Product
  36. var rasterOp: Op[Raster]

    Definition Classes
    FocalOperation2
  37. def run(): StepOutput[T]

    Execute this operation and return the result.

    Execute this operation and return the result.

    Definition Classes
    Operation
  38. def runAsync(args: Args): StepOutput[T]

    Definition Classes
    Operation
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def withFilter(f: (T) ⇒ Boolean): Operation[T]

    Definition Classes
    Operation
  45. def withName(n: String): Operation[T]

    Definition Classes
    Operation
  46. def withResult[U](f: (T) ⇒ Operation[U]): Operation[U]

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Same as flatMap.

    Definition Classes
    Operation

Inherited from FocalOperation2[A, B, T]

Inherited from FocalOperation[T]

Inherited from Operation[T]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped