Class LookUpImageFilesByIndex

java.lang.Object
boofcv.io.image.LookUpImageFilesByIndex
All Implemented Interfaces:
LookUpImages

public class LookUpImageFilesByIndex extends Object implements 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.
  • Constructor Details

  • Method Details

    • loadShape

      public boolean loadShape(String name, ImageDimension shape)
      Description copied from interface: LookUpImages
      Loads the shape for an image
      Specified by:
      loadShape in interface LookUpImages
      Parameters:
      name - (Input) Name of the image
      shape - (Output) shape of the image
      Returns:
      true if the image was found or false if not
    • loadImage

      public <LT extends ImageBase<LT>> boolean loadImage(String name, LT output)
      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 interface LookUpImages
      Parameters:
      name - (Input) Name of the image
      output - (Output) Storage for the image
      Returns:
      true if the image was found or false if not