Class EnergyStackFixture

Object
EnergyStackFixture

public class EnergyStackFixture extends Object
A fixture for creating EnergyStack objects for testing purposes.

This class provides utility methods to create energy stacks with various configurations, including different sizes (2D or 3D), single or multiple channels, and with or without resolution information. It's designed to be used in test scenarios where standardized EnergyStack objects are needed.

The created energy stacks use predefined intensity functions to populate the channel data, ensuring consistent and predictable test data.

  • Method Details

    • create

      public static EnergyStack create(boolean big, boolean do3D)
      Creates an energy-stack with default settings.

      This method creates an energy-stack with three channels and includes resolution information. It's a convenience method that calls the more detailed create(boolean, boolean, boolean, boolean) with default values for single-channel and resolution inclusion.

      Parameters:
      big - if true, an image of larger size is created; if false, a medium-sized image is created
      do3D - if true, a 3D image is created; if false, a 2D image is created
      Returns:
      the newly created energy-stack
      See Also:
    • create

      public static EnergyStack create(boolean big, boolean do3D, boolean singleChannel, boolean includeResolution)
      Creates the energy-stack to use.
      Parameters:
      big - iff true, an image of larger size is created
      do3D - iff true, a 3D image is created, otherwise 2D
      singleChannel - iff true, a stack with a single channel is created, otherwise three channels
      includeResolution - include resolution information in the channel
      Returns:
      the newly created energy-stack