Hello Everyone,
Say, in Python I have a numpy.uint8 value within [0, 255] range, but Python’s ITK bindings are quick to point out:
TypeError: in method ‘itkImageUC2_SetPixel’, argument 3 of type ‘unsigned char’
And, when I have to cast the uint8 to an int, which is not pretty and a bit fishy, just between us.
Is there a better way of passing unsigned char values to SetPixel?