Package org.anchoranalysis.mpp.mark
Class MarkToObjectConverter
Object
MarkToObjectConverter
Converts a confidence-associated
Mark to an equivalent ObjectMask.
A ScaleFactor is also applied to scale the Mark before conversion.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionMarkToObjectConverter(Optional<ScaleFactor> scaleFactor, Dimensions dimensions) Create for particularDimensionswith a scaling-factor.MarkToObjectConverter(Optional<ScaleFactor> scaleFactor, Dimensions dimensions, RegionMembershipWithFlags regionMembership, BinaryValuesByte binaryValuesOut) Creates a newMarkToObjectConverterinstance.MarkToObjectConverter(Dimensions dimensions) Create for particularDimensionswithout a scaling-factor. -
Method Summary
-
Constructor Details
-
MarkToObjectConverter
Create for particularDimensionswithout a scaling-factor.- Parameters:
dimensions- the dimensions of the final scaled-up scene, to ensure theObjectMaskis contained within.
-
MarkToObjectConverter
Create for particularDimensionswith a scaling-factor.- Parameters:
scaleFactor- the scaling-factor.dimensions- the dimensions of the final scaled-up scene, to ensure theObjectMaskis contained within.
-
MarkToObjectConverter
public MarkToObjectConverter(Optional<ScaleFactor> scaleFactor, Dimensions dimensions, RegionMembershipWithFlags regionMembership, BinaryValuesByte binaryValuesOut) Creates a newMarkToObjectConverterinstance.- Parameters:
scaleFactor- An optional scaling factor to apply to the mark, before converting to anObjectMask.dimensions- The dimensions of the final scaled-up scene, to ensure theObjectMaskis contained within.regionMembership- The region-membership to use when convering the mark.binaryValuesOut- The binary-values to use in the createdObjectMask's buffers.
-
-
Method Details
-
convert
Converts aMarkto an equivalentObjectMask.- Parameters:
mark- theMarkto convert (whose state will be internally modified if a scale-factor is applied).- Returns:
- an
ObjectMaskwith scaling applied.
-