pub mod analysis;
pub mod colorfill;
pub mod coloring;
pub mod colorspace;
pub mod error;
pub mod quantize;
pub mod segment;
pub mod threshold;
pub use crate::core;
pub use error::{ColorError, ColorResult};
pub use colorspace::{
ColorChannel,
Hsv,
Lab,
RegionFlag,
Xyz,
Yuv,
hsv_to_rgb,
lab_to_rgb,
lab_to_xyz,
make_histo_hs,
make_histo_hv,
make_histo_sv,
make_range_mask_hs,
make_range_mask_hv,
make_range_mask_sv,
pix_convert_hsv_to_rgb,
pix_convert_rgb_to_hsv,
pix_convert_rgb_to_yuv,
pix_convert_to_gray,
pix_convert_yuv_to_rgb,
pix_extract_channel,
rgb_to_gray,
rgb_to_hsv,
rgb_to_lab,
rgb_to_xyz,
rgb_to_yuv,
xyz_to_lab,
xyz_to_rgb,
yuv_to_rgb,
};
pub use threshold::{
AdaptiveMethod,
AdaptiveThresholdOptions,
adaptive_threshold,
compute_otsu_threshold,
dither_to_binary,
dither_to_binary_with_threshold,
generate_mask_by_band,
generate_mask_by_value,
ordered_dither,
otsu_adaptive_threshold,
sauvola_binarize_tiled,
sauvola_threshold,
threshold_otsu,
threshold_to_2bpp,
threshold_to_4bpp,
threshold_to_binary,
var_threshold_to_binary,
};
pub use quantize::{
MedianCutOptions,
OctreeOptions,
fixed_octcube_quant_256,
median_cut_quant,
median_cut_quant_mixed,
median_cut_quant_simple,
octree_quant,
octree_quant_256,
octree_quant_by_population,
octree_quant_num_colors,
quant_from_cmap,
remove_unused_colors,
};
pub use analysis::{
ColorMagnitudeType,
ColorStats,
color_content,
color_fraction,
color_magnitude,
colors_for_quantization,
count_colors,
grayscale_histogram,
is_grayscale,
is_grayscale_tolerant,
mask_over_color_pixels,
mask_over_color_range,
mask_over_gray_pixels,
most_populated_colors,
num_significant_gray_colors,
rgb_histogram,
};
pub use segment::{
ColorSegmentOptions,
assign_to_nearest_color,
color_segment,
color_segment_cluster,
color_segment_simple,
};
pub use colorfill::{
ColorFillOptions,
ColorFillResult,
ColorRegions,
Connectivity,
color_fill,
color_fill_from_seed,
pixel_is_on_color_boundary,
};
pub use coloring::{
ColorGrayOptions,
PaintType,
pix_color_gray,
pix_color_gray_masked,
pix_linear_map_to_target_color,
pix_map_with_invariant_hue,
pix_shift_by_component,
pix_snap_color,
pixel_fractional_shift,
pixel_linear_map_to_target_color,
pixel_shift_by_component,
};