Skip to content

RandomFisheye

RandomFisheye class

dlf.preprocessing.fisheye.RandomFisheye(fov=179.9)

Data augmentation method to create an interpolated fisheye distorted image of a perspective image

Aliases

  • fisheye
  • fisheye_distortion
  • random_fisheye
  • radnom_fisheye_distortion

Arguments

  • fov: float, optional. Field of view for distortion. Defaults to 179.0.

Example

YAML Configuration

preprocess_list:
    fisheye:

Warning

This module is very experimental and slow. You should install numba (pip install numba) otherwise it's realy unusable.

Note

The bottleneck of this function is remap = self.fisheye_transform(*image.shape[:-1]). Maybe we should write it in cython or the are further optimizations available.