Package org.anchoranalysis.test.image
Class EnergyStackFixture
Object
EnergyStackFixture
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 Summary
Modifier and TypeMethodDescriptionstatic EnergyStack
create
(boolean big, boolean do3D) Creates an energy-stack with default settings.static EnergyStack
create
(boolean big, boolean do3D, boolean singleChannel, boolean includeResolution) Creates the energy-stack to use.
-
Method Details
-
create
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 createddo3D
- 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 createddo3D
- iff true, a 3D image is created, otherwise 2DsingleChannel
- iff true, a stack with a single channel is created, otherwise three channelsincludeResolution
- include resolution information in the channel- Returns:
- the newly created energy-stack
-