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.jpgcarGrayscale8bit.jpgcarGrayscale16bit.jpg
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description CarImageLoader() -
Method Summary
Modifier and Type Method Description StackcarGrayscale16Bit()Loads and returns the 16-bit grayscale image of a car.org.anchoranalysis.feature.energy.EnergyStackWithoutParameterscarGrayscale16BitAsEnergy()Loads the 16-bit grayscale image of a car and wraps it in an EnergyStackWithoutParameters.StackcarGrayscale8Bit()Loads and returns the 8-bit grayscale image of a car.org.anchoranalysis.feature.energy.EnergyStackWithoutParameterscarGrayscale8BitAsEnergy()Loads the 8-bit grayscale image of a car and wraps it in an EnergyStackWithoutParameters.StackcarRGB()Loads and returns the RGB image of a car.org.anchoranalysis.feature.energy.EnergyStackWithoutParameterscarRGBAsEnergy()Loads the RGB image of a car and wraps it in an EnergyStackWithoutParameters.PathmodelDirectory()Returns the root directory path for the model files.
-
Constructor Details
-
CarImageLoader
public CarImageLoader()
-
-
Method Details
-
carRGB
Loads and returns the RGB image of a car.- Returns:
- A Stack containing the RGB image of a car.
-
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
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
Returns the root directory path for the model files.- Returns:
- A Path object representing the root directory of the model files.
-