Trying to undistort a single channel image via the Python API currently throws an error in version 1.3.2. FYI, my test image was 16 bit single channel.
cam = chunk.cameras[0]
img = cam.photo.image()
undistort = img.undistort(cam.sensor.calibration)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-26-89efc18f6ebf> in <module>()
----> 1 undistort = img.undistort(cam.sensor.calibration)
TypeError: source image should contain 3 color channels
I think it should be considered a bug now as most, it not all, of the available operations correctly handle single channel images in the recent versions and the workaround is cumbersome.
undistort = img.convert('___').undistort(cam.sensor.calibration).convert('_')