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 SummaryConstructorsConstructorDescriptionBuilder()Default constructor for a builder with flatness 0.5 and pixel width/height of 1.0.
- 
Method SummaryModifier 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- 
Builderpublic Builder()Default constructor for a builder with flatness 0.5 and pixel width/height of 1.0.
 
- 
- 
Method Details- 
pixelSizeSpecify the pixel width and height, used to scale x and y coordinates during conversion (default is 1.0 for both).- Parameters:
- pixelWidth-
- pixelHeight-
- Returns:
 
- 
flatnessSpecify the flatness for any operation where a PathIterator is required.- Parameters:
- flatness-
- Returns:
 
- 
factorySpecify the GeometryFactory, which can define a precision model in JTS.- Parameters:
- factory-
- Returns:
 
- 
buildBuild a new converter with the specified parameters.- Returns:
 
 
-