Module utils

Module utils 

Source
Expand description

Utility functions for visual cryptography

Functionsยง

apply_halftone
Apply halftone to an image
apply_pattern_to_block
Apply a pattern to a block of pixels
calculate_contrast
Calculate the contrast between two regions
combine_rgb_channels
Combine RGB channels into a color image
convert_to_binary
Convert an image to binary (black and white)
create_noise_image
Create a random noise image
expand_pixel
Expand a pixel into a block
extract_channel
Extract a color channel from an RGB image
resize_to_match
Resize an image to match target dimensions