Class CreateTrainingImageCommand

java.lang.Object
qupath.process.gui.commands.CreateTrainingImageCommand

public class CreateTrainingImageCommand extends Object
Command to generate a SparseImageServer from multiple image regions across a project. This can be useful as a training image for a pixel classifier, for example.
Author:
Pete Bankhead
  • Constructor Details

    • CreateTrainingImageCommand

      public CreateTrainingImageCommand()
  • Method Details

    • promptToCreateTrainingImage

      public static ProjectImageEntry<BufferedImage> promptToCreateTrainingImage(Project<BufferedImage> project, List<PathClass> availableClasses)
      Prompt to create a training image, based upon annotations throughout a project.
      Parameters:
      project -
      availableClasses -
      Returns:
      the entry of the new training image, created within the project