Class CarImageLoader

Object
CarImageLoader

public class CarImageLoader extends Object
Loads some images of a car.

The directory car/ should be present in source/test/resources of any project that uses this class, containing the necessary files:

  • car.jpg
  • carGrayscale8bit.jpg
  • carGrayscale16bit.jpg
Author:
Owen Feehan
  • Constructor Details

    • CarImageLoader

      public CarImageLoader()
  • Method Details

    • carRGB

      public Stack carRGB()
      Loads and returns the RGB image of a car.
      Returns:
      A Stack containing the RGB image of a car.
    • carGrayscale8Bit

      public Stack carGrayscale8Bit()
      Loads and returns the 8-bit grayscale image of a car.
      Returns:
      A Stack containing the 8-bit grayscale image of a car.
    • carGrayscale16Bit

      public Stack carGrayscale16Bit()
      Loads and returns the 16-bit grayscale image of a car.
      Returns:
      A Stack containing the 16-bit grayscale image of a car.
    • carRGBAsEnergy

      public EnergyStackWithoutParameters carRGBAsEnergy()
      Loads the RGB image of a car and wraps it in an EnergyStackWithoutParameters.
      Returns:
      An EnergyStackWithoutParameters containing the RGB image of a car.
    • carGrayscale8BitAsEnergy

      public EnergyStackWithoutParameters carGrayscale8BitAsEnergy()
      Loads the 8-bit grayscale image of a car and wraps it in an EnergyStackWithoutParameters.
      Returns:
      An EnergyStackWithoutParameters containing the 8-bit grayscale image of a car.
    • carGrayscale16BitAsEnergy

      public EnergyStackWithoutParameters carGrayscale16BitAsEnergy()
      Loads the 16-bit grayscale image of a car and wraps it in an EnergyStackWithoutParameters.
      Returns:
      An EnergyStackWithoutParameters containing the 16-bit grayscale image of a car.
    • modelDirectory

      public Path modelDirectory()
      Returns the root directory path for the model files.
      Returns:
      A Path object representing the root directory of the model files.