class CrImage::OneMap
- CrImage::OneMap
- Reference
- Object
Overview
Memory efficient implementation of MapImpl
when all values are equal to 1
Included Modules
Defined in:
cr-image/map.crConstructors
Instance Method Summary
- #[](xstart : Int32, xcount : Int32, ystart : Int32, ycount : Int32) : OneMap
- #[](x : Int32, y : Int32) : Int32
- #[](xstart : Int32, yrange : Range) : OneMap
- #[](xrange : Range, ystart : Int32) : OneMap
- #[](xrange : Range, yrange : Range) : OneMap
- #[](index : Int32) : Int32
- #[]?(x : Int32, y : Int32) : Int32
- #[]?(index : Int32) : Int32
- #height : Int32
- #pad(all : Int32 = 0, *, top : Int32 = 0, bottom : Int32 = 0, left : Int32 = 0, right : Int32 = 0, pad_type : EdgePolicy = EdgePolicy::Black, pad_black_value : T = T.zero) : OneMap | IntMap
- #shape : Tuple(Int32, Int32)
- #size : Int32
- #to_c : ComplexMap
- #to_i : IntMap
- #width : Int32
Instance methods inherited from module CrImage::Map(Int32)
[](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
Constructor Detail
Instance Method Detail
def pad(all : Int32 = 0, *, top : Int32 = 0, bottom : Int32 = 0, left : Int32 = 0, right : Int32 = 0, pad_type : EdgePolicy = EdgePolicy::Black, pad_black_value : T = T.zero) : OneMap | IntMap
#