Module multires

Module multires 

Source
Expand description

Helper functions for generation of multi-resolution data.

Functions§

gradients_squared_norm
Compute centered gradients norm at each resolution from the image at the higher resolution.
gradients_xy
Compute centered gradients at each resolution from the image at the higher resolution.
halve
Halve the resolution of a matrix by applying a function to each 2x2 block.
limited_sequence
Recursively apply a function transforming an image until it’s not possible anymore or the max length is reached.
mean_pyramid
Recursively generate a pyramid of matrices where each following level is half the previous resolution, computed with the mean of each 2x2 block.
sequence
Recursively apply a function transforming data until it’s not possible anymore.