Class CarImageLoader

Object
org.anchoranalysis.test.image.load.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

  • 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 org.anchoranalysis.feature.energy.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 org.anchoranalysis.feature.energy.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 org.anchoranalysis.feature.energy.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.