AttocubeScan.asfloat

AttocubeScan.asfloat(normalise=True, clip=False, clip_negative=False, **kargs)

Convert stack to floating point type.

Keyword Arguments
  • normalise (bool) – normalise the image to the max value of current int type

  • clip (bool) – clip resulting range to values between -1 and 1

  • clip_negative (bool) – clip range further to 0,1

Notes

Analagous behaviour to ImageFile.asfloat()

If currently an int type and normalise then floats will be normalised to the maximum allowed value of the int type. If currently a float type then no change occurs. If clip_negative then clip values outside the range 0,1