Package qupath.lib.io
Class PointIO
java.lang.Object
qupath.lib.io.PointIO
Helper class for reading/writing point objects in terms of their x,y coordinates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<PathObject> readPoints(File file) Read a list of point annotations from a file.static List<PathObject> readPoints(InputStream stream) Read a list of point annotations from a stream.static List<PathObject> readPointsObjectList(File file) Deprecated.static voidwritePoints(File file, Collection<? extends PathObject> pathObjects) Write a list of point annotations to a file.static voidwritePoints(OutputStream stream, Collection<? extends PathObject> pathObjects) Write a list of point annotations to a stream.
-
Constructor Details
-
PointIO
public PointIO()
-
-
Method Details
-
readPoints
Read a list of point annotations from a stream.- Parameters:
stream-- Returns:
- list of PathObjects
- Throws:
IOException
-
readPoints
Read a list of point annotations from a file.- Parameters:
file-- Returns:
- list of PathObjects
- Throws:
IOException
-
writePoints
public static void writePoints(OutputStream stream, Collection<? extends PathObject> pathObjects) throws IOException Write a list of point annotations to a stream.- Parameters:
stream-pathObjects-- Throws:
IOException
-
writePoints
public static void writePoints(File file, Collection<? extends PathObject> pathObjects) throws IOException Write a list of point annotations to a file.- Parameters:
file-pathObjects-- Throws:
IOException
-
readPointsObjectList
@Deprecated public static List<PathObject> readPointsObjectList(File file) throws ZipException, IOException Deprecated.Read a list of point annotations from a file. Not recommended for use (will be removed in future releases).- Parameters:
file-- Returns:
- Throws:
ZipExceptionIOException
-