module CrImage::NumericMap(T)

Overview

Additional methods for Map that assume T is a numeric type. See MapImpl

Included Modules

Direct including types

Defined in:

cr-image/map.cr

Instance Method Summary

Instance methods inherited from module CrImage::Map(T)

[](x : Int32, y : Int32) : T
[](index : Int32) : T
[]
, []?(x : Int32, y : Int32) : T | Nil
[]?(index : Int32) : T | Nil
[]?
, height : Int32 height, shape : Tuple(Int32, Int32) shape, size : Int32 size, width : Int32 width

Instance Method Detail

abstract def +(other : NumericMap(T)) : NumericMap(T) #

[View source]
abstract def -(other : NumericMap(T)) : NumericMap(T) #

[View source]
abstract def max : T #

[View source]
abstract def min : T #

[View source]
abstract def sum : T #

[View source]
abstract def to_c : NumericMap(Complex) #

[View source]
abstract def to_f : NumericMap(Float64) #

[View source]
abstract def to_i : NumericMap(Int32) #

[View source]