Package qupath.process.gui.commands
Class CreateTrainingImageCommand
java.lang.Object
qupath.process.gui.commands.CreateTrainingImageCommand
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectImageEntry
<BufferedImage> promptToCreateTrainingImage
(Project<BufferedImage> project, List<PathClass> availableClasses) Prompt to create a training image, based upon annotations throughout a project.
-
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
-