class CrImage::Operation::HistogramEqualize::Histogram

Overview

A histogram of an Image for a specific ChannelType

Defined in:

cr-image/operation/histogram.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(image : Image, channel_type : ChannelType) #

[View source]

Instance Method Detail

def cdf : Hash(UInt8, Float64) #

Get the cumulative distribution for the image's histogram


[View source]
def channel_type : CrImage::ChannelType #

[View source]
def counts : Hash(UInt8, Int32) #

Get the raw counts for a given pixel value (0-255) in the image


[View source]
def equalize : Hash(UInt8, UInt8) #

Remap the cumalitive distribution of pixels to get a new, more spread out pixel value


[View source]
def image : CrImage::Image #

[View source]
def mean : Float64 #

[View source]
def normalize : Hash(UInt8, Float64) #

Get pixel counts normalized - all values between 0.0 and 1.0


[View source]
def std_dev : Float64 #

[View source]