Skip to main content

split_into_blocks

Function split_into_blocks 

Source
pub fn split_into_blocks(
    img: &DynamicImage,
    block_size: u32,
    overlap: u32,
) -> Vec<(DynamicImage, u32, u32)>
Expand description

Split image into blocks (for high precision mode)

§Parameters

  • img: Input image
  • block_size: Block size
  • overlap: Overlap region size

§Returns

List of block images and their positions in original image (x, y)