class

CrImage::OneMap

Inherits CrImage::Map < Reference < Object

Memory efficient implementation of MapImpl when all values are equal to 1

Constructors

new(width : Int32, height : Int32)
Source

Instance methods

[](xstart : Int32, xcount : Int32, ystart : Int32, ycount : Int32) : OneMap
Source
[](x : Int32, y : Int32) : Int32
Source
[](xstart : Int32, yrange : Range) : OneMap
Source
[](xrange : Range, ystart : Int32) : OneMap
Source
[](xrange : Range, yrange : Range) : OneMap
Source
[](index : Int32) : Int32
Source
[]?(x : Int32, y : Int32) : Int32
Source
[]?(index : Int32) : Int32
Source
height
Source
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
Source
shape
Source
size
Source
to_c
Source
to_i
Source
width
Source