class CrImage::IntMap

Overview

Implementation of MapImpl for Int32 types.

Included Modules

Defined in:

cr-image/map.cr

Macro Summary

Instance Method Summary

Instance methods inherited from module CrImage::MapImpl(Int32)

*(num : Int | Float) : self *, +(num : Int | Float) : self
+(other : self) : self
+
, -(other : NumericMap(T)) : self
-(num : Int) : self
-(num : Float) : FloatMap
-
, /(num : Int | Float) : FloatMap /, <(num : Int | Float) : Mask <, <=(num : Int | Float) : Mask <=, ==(num : Int | Float) : Mask
==(other : self) : Bool
==
, >(num : Int | Float) : Mask >, >=(num : Int | Float) : Mask >=, [](xstart : Int32, xcount : Int32, ystart : Int32, ycount : Int32) : self
[](x : Int32, y : Int32) : T
[](xrange : Range, ystart : Int32) : self
[](xstart : Int32, yrange : Range) : self
[](xrange : Range, yrange : Range) : self
[](index : Int32) : T
[]
, []?(x : Int32, y : Int32) : T | Nil
[]?(index : Int32) : T | Nil
[]?
, column(x : Int32) : self column, cross_correlate(template : Map, *, edge_policy : EdgePolicy = EdgePolicy::Repeat) : FloatMap cross_correlate, cross_correlate_fft(template : Map, *, edge_policy : EdgePolicy = EdgePolicy::Black) : FloatMap cross_correlate_fft, fft : ComplexMap fft, height : Int32 height, mask_from(&block : T, Int32, Int32 -> Bool) : Mask mask_from, max : T max, mean : Float64 mean, min : T min, 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) : self pad, raw : Array(T) raw, row(y : Int32) : self row, shape : Tuple(Int32, Int32) shape, size : Int32 size, sum : T sum, to_a : Array(T) to_a, to_c : ComplexMap to_c, to_gray(*, scale : Bool = false) : GrayscaleImage to_gray, width : Int32 width

Constructor methods inherited from module CrImage::MapImpl(Int32)

new(width : Int32, height : Int32, initial : T)
new(width : Int32, raw : Array(T))
new(other : Array(Array(T)))
new(width : Int32, height : Int32, &)
new

Instance methods inherited from module CrImage::NumericMap(Int32)

+(other : NumericMap(T)) : NumericMap(T) +, -(other : NumericMap(T)) : NumericMap(T) -, max : T max, min : T min, sum : T sum, to_c : NumericMap(Complex) to_c, to_f : NumericMap(Float64) to_f, to_i : NumericMap(Int32) to_i

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

Macro Detail

macro method_missing(call) #

[View source]

Instance Method Detail

def to_f : FloatMap #

[View source]
def to_f64 : FloatMap #

[View source]
def to_i : self #

[View source]