dfof_to_rescaled

seas.colormaps.dfof_to_rescaled(dfof_value: float, slope: float, array_min: float)[source]

Convert a dfof value to 8-bit rescaled units (0-255).

Parameters
  • dfof_value – The rescaled_value in dfof units to convert

  • slope – The slope returned by video.rescale during the dfof to rescaled operation

  • array_min – The new minimum value returned by video.rescale during the dfof to rescaled operation

Returns

The rescaled_value converted to rescaled units by the scale and array_min parameters.

Return type

rescaled_value