channel() = byte()
color_name() = black | white | red | orange | blue | pink | purple
histogram(Color) = #{Color => pos_integer()}
abstract datatype: palette()
rgb() = {channel(), channel(), channel()}
bin_3b/1 | |
by_name/1 | |
histogram_from_8b_pixels/1 | Builds a greyscale histogram from 8bit pixels binary. |
histogram_map_channel_to_rgb/2 | Maps 8bit greyscale color histogram to the RGB color. |
new/3 | |
new_palette/2 | Create a palette by mapping Greyscale raster to RGB color. |
palette_colors_by_frequency/1 | Returns a list with colors sorted by their frequency in desc order (most frequent first). |
palette_get_index/2 | Get color index from palette. |
palette_size/1 | Number of colors in palette. |
bin_3b(X1::rgb()) -> binary()
by_name(X1::color_name()) -> rgb()
Builds a greyscale histogram from 8bit pixels binary
histogram_map_channel_to_rgb(Histogram8b::histogram(channel()), RGB::rgb()) -> [{rgb(), channel(), Freq::pos_integer()}]
Maps 8bit greyscale color histogram to the RGB color.
This is to, kind of, use colors from greyscale as a "saturation" value for RGB color. Or, to convert a greyscale image to a single-color-tone image.Create a palette by mapping Greyscale raster to RGB color
Returns a list with colors sorted by their frequency in desc order (most frequent first)
Colors with the same frequency are sorted by valueGet color index from palette
palette_size(Palette::palette()) -> non_neg_integer()
Number of colors in palette
Generated by EDoc