Class CarImageLoader
Object
CarImageLoader
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads and returns the 16-bit grayscale image of a car.Loads the 16-bit grayscale image of a car and wraps it in an EnergyStackWithoutParameters.Loads and returns the 8-bit grayscale image of a car.Loads the 8-bit grayscale image of a car and wraps it in an EnergyStackWithoutParameters.carRGB()
Loads and returns the RGB image of a car.Loads the RGB image of a car and wraps it in an EnergyStackWithoutParameters.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
Loads the RGB image of a car and wraps it in an EnergyStackWithoutParameters.- Returns:
- An EnergyStackWithoutParameters containing the RGB image of a car.
-
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
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.
-