splat-transform API Reference - v2.0.5
    Preparing search index...

    Function getSHBands

    • Determines how many SH bands (0-3) the DataTable contains beyond the DC term. Detection assumes the channel-major layout used throughout the codebase: N coefficients per channel, 3 channels, stored as f_rest_0..f_rest_(3N-1).

      • 0 bands: no f_rest_* columns
      • 1 band : f_rest_0..f_rest_8 (9 coeffs)
      • 2 bands: f_rest_0..f_rest_23 (24 coeffs)
      • 3 bands: f_rest_0..f_rest_44 (45 coeffs)

      Parameters

      • dataTable: DataTable

        The DataTable to inspect.

      Returns number

      The number of SH bands (0-3).