Class: Colordom::Image
- Inherits:
-
Object
- Object
- Colordom::Image
- Defined in:
- lib/colordom/image.rb
Overview
Image object implemented in Rust that extracts dominant colors.
Instance Method Summary collapse
-
#histogram(max_colors) ⇒ Array<Color>
Get dominant colors using histogram quantization.
-
#initialize(path) ⇒ Image
constructor
A new instance of Image.
-
#kmeans(max_colors) ⇒ Array<Color>
Get dominant colors using k-means clustering.
-
#mediancut(max_colors) ⇒ Array<Color>
Get dominant colors using median cut quantization.
Constructor Details
Instance Method Details
#histogram(max_colors) ⇒ Array<Color>
Get dominant colors using histogram quantization.
|
# File 'lib/colordom/image.rb', line 12
|
#kmeans(max_colors) ⇒ Array<Color>
Get dominant colors using k-means clustering.
|
# File 'lib/colordom/image.rb', line 22
|
#mediancut(max_colors) ⇒ Array<Color>
Get dominant colors using median cut quantization.
|
# File 'lib/colordom/image.rb', line 17
|