bob.ip.scale

bob.ip.scale((object)src, (object)dst[, (RescaleAlgorithm)algorithm=bob.ip._ip.RescaleAlgorithm.BilinearInterp]) → None :

Scales an image to the dimensions given by the allocated destination image. This function supports 2D and 3D input array/image (NumPy array) of type numpy.uint8, numpy.uint16 and numpy.float64. The output image must be a 2D or 3D array/image (NumPy array) of type numpy.float64.

scale( (object)src, (object)src_mask, (object)dst, (object)dst_mask [, (RescaleAlgorithm)algorithm=bob.ip._ip.RescaleAlgorithm.BilinearInterp]) -> None :
Scales an imageto the dimensions given by the destination array, taking boolean mask into account. This function supports 2D and 3D input array/image (NumPy array) of type numpy.uint8, numpy.uint16 and numpy.float64. The output image must be a 2D or 3D array/image (NumPy array) of type numpy.float64 and the output mask should be a boolean NumPy array of the same dimensions as the output image.