class CrImage::UInt8Map

Overview

Implementation of MapImpl for UInt8 types. This type is useful for MapImpl operations around channels.

Included Modules

Defined in:

cr-image/map.cr

Instance Method Summary

Macro Summary

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

*(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(UInt8)

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(UInt8)

+(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(UInt8)

[](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

def to_f : FloatMap #

[View source]
def to_i : IntMap #

[View source]

Macro Detail

macro method_missing(call) #

[View source]