Package qupath.lib.gui.tools
Class MeasurementExporter
java.lang.Object
qupath.lib.gui.tools.MeasurementExporter
Helper class for exporting the measurements of one or more entries in a project.
- Author:
- Melvin Gelbard
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexcludeColumns
(String... excludeColumns) Specify the columns that will be excluded during the export.void
exportMeasurements
(File file) Exports the measurements of one or more entries in the project.void
exportMeasurements
(OutputStream stream) Exports the measurements of one or more entries in the project.exportType
(Class<? extends PathObject> type) Specify what type of object should be exported.filter
(Predicate<PathObject> filter) Filter thePathObject
s before export (objects returningtrue
for the predicate will be exported).Returns the list of columns to exclude from export.Returns the list of images (ProjectImageEntry
).Returns the list of columns to include in the export.Returns the separator used in between measurements.Class
<? extends PathObject> getType()
Returns the type of path objects used in the export.imageList
(List<ProjectImageEntry<BufferedImage>> imageList) Specify the list of images (ProjectImageEntry
) to export.includeOnlyColumns
(String... includeOnlyColumns) Specify the columns that will be included in the export.Specify the separator used between measurement values.
-
Constructor Details
-
MeasurementExporter
public MeasurementExporter()
-
-
Method Details
-
exportType
Specify what type of object should be exported. Default: image (root object).- Parameters:
type
-- Returns:
- this exporter
-
includeOnlyColumns
Specify the columns that will be included in the export. The column names are case sensitive.- Parameters:
includeOnlyColumns
-- Returns:
- this exporter
-
excludeColumns
Specify the columns that will be excluded during the export. The column names are case sensitive.- Parameters:
excludeColumns
-- Returns:
- this exporter
-
separator
Specify the separator used between measurement values. To avoid unexpected behavior, it is recommended to use either tab (\t
), comma (,
) or semicolon (;
).- Parameters:
sep
-- Returns:
- this exporter
-
imageList
Specify the list of images (ProjectImageEntry
) to export.- Parameters:
imageList
-- Returns:
- this exporter
-
filter
Filter thePathObject
s before export (objects returningtrue
for the predicate will be exported).- Parameters:
filter
-- Returns:
- this exporter
- Since:
- v0.3.2
-
getImageList
Returns the list of images (ProjectImageEntry
).- Returns:
- imageList
-
getExcludeColumns
Returns the list of columns to exclude from export.- Returns:
- list of column names
-
getIncludeColumns
Returns the list of columns to include in the export.- Returns:
- list of column names
-
getSeparator
Returns the separator used in between measurements.- Returns:
- separator
-
getType
Returns the type of path objects used in the export.- Returns:
- path object
-
exportMeasurements
Exports the measurements of one or more entries in the project. This function first opens all the images in the project to store all the column names and values of the measurements. Then, it loops through the maps containing the values to write them to the given output file.- Parameters:
file
-
-
exportMeasurements
Exports the measurements of one or more entries in the project. This function first opens all the images in the project to store all the column names and values of the measurements. Then, it loops through the maps containing the values to write them to the given output stream.- Parameters:
stream
-
-