Package boofcv.io.image
Class LookUpImageFilesByIndex
java.lang.Object
boofcv.io.image.LookUpImageFilesByIndex
- All Implemented Interfaces:
LookUpImages
Implementation of
LookUpImages
that converts the name into an integer. The integer represents the index
of the image in the list of paths provided. It's assumed that all images have the same shape and the first image
is loaded to get the shape.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLookUpImageFilesByIndex
(List<String> paths) LookUpImageFilesByIndex
(List<String> paths, LookUpImageFilesByIndex.LoadImage loader) -
Method Summary
-
Constructor Details
-
LookUpImageFilesByIndex
-
LookUpImageFilesByIndex
-
-
Method Details
-
loadShape
Description copied from interface:LookUpImages
Loads the shape for an image- Specified by:
loadShape
in interfaceLookUpImages
- Parameters:
name
- (Input) Name of the imageshape
- (Output) shape of the image- Returns:
- true if the image was found or false if not
-
loadImage
Description copied from interface:LookUpImages
Loads an image. If a multi change image is passed in it will load the image as a RGB image.- Specified by:
loadImage
in interfaceLookUpImages
- Parameters:
name
- (Input) Name of the imageoutput
- (Output) Storage for the image- Returns:
- true if the image was found or false if not
-