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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLookUpImageFilesByIndex(List<String> paths) LookUpImageFilesByIndex(List<String> paths, LookUpImageFilesByIndex.LoadImage loader) -
Method Summary
-
Constructor Details
-
LookUpImageFilesByIndex
-
LookUpImageFilesByIndex
-
-
Method Details
-
loadShape
Description copied from interface:LookUpImagesLoads the shape for an image- Specified by:
loadShapein 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:LookUpImagesLoads an image. If a multi change image is passed in it will load the image as a RGB image.- Specified by:
loadImagein interfaceLookUpImages- Parameters:
name- (Input) Name of the imageoutput- (Output) Storage for the image- Returns:
- true if the image was found or false if not
-