Class ToUnsignedByteScaleByMinMaxValue


public final class ToUnsignedByteScaleByMinMaxValue
extends ToUnsignedByte
Converts voxel buffers to an unsigned 8-bit buffer scaling against a the minimum and maximum constant.

The scaling is linear between these two boundaries.

Author:
Owen Feehan
  • Constructor Details

    • ToUnsignedByteScaleByMinMaxValue

      public ToUnsignedByteScaleByMinMaxValue​(long minValue, long maxValue)
      Creates with the minimum- and maximum-values which existing values are scaled against.
      Parameters:
      minValue - the minimum-value that will be represented in the scaled-values (inclusive).
      maxValue - the maximum-value that will be represented in the scaled-values (inclusive).
  • Method Details