Package qupath.lib.roi
Class GeometryTools.GeometryConverter.Builder
java.lang.Object
qupath.lib.roi.GeometryTools.GeometryConverter.Builder
- Enclosing class:
GeometryTools.GeometryConverter
Builder to help define how ROIs and Geometry objects should be converted.
-
Constructor Summary
ConstructorDescriptionBuilder()
Default constructor for a builder with flatness 0.5 and pixel width/height of 1.0. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a new converter with the specified parameters.factory
(GeometryFactory factory) Specify the GeometryFactory, which can define a precision model in JTS.flatness
(double flatness) Specify the flatness for any operation where a PathIterator is required.pixelSize
(double pixelWidth, double pixelHeight) Specify the pixel width and height, used to scale x and y coordinates during conversion (default is 1.0 for both).
-
Constructor Details
-
Builder
public Builder()Default constructor for a builder with flatness 0.5 and pixel width/height of 1.0.
-
-
Method Details
-
pixelSize
Specify the pixel width and height, used to scale x and y coordinates during conversion (default is 1.0 for both).- Parameters:
pixelWidth
-pixelHeight
-- Returns:
-
flatness
Specify the flatness for any operation where a PathIterator is required.- Parameters:
flatness
-- Returns:
-
factory
Specify the GeometryFactory, which can define a precision model in JTS.- Parameters:
factory
-- Returns:
-
build
Build a new converter with the specified parameters.- Returns:
-