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 particularDimensions
with a scaling-factor.MarkToObjectConverter
(Optional<ScaleFactor> scaleFactor, Dimensions dimensions, RegionMembershipWithFlags regionMembership, BinaryValuesByte binaryValuesOut) Creates a newMarkToObjectConverter
instance.MarkToObjectConverter
(Dimensions dimensions) Create for particularDimensions
without a scaling-factor. -
Method Summary
-
Constructor Details
-
MarkToObjectConverter
Create for particularDimensions
without a scaling-factor.- Parameters:
dimensions
- the dimensions of the final scaled-up scene, to ensure theObjectMask
is contained within.
-
MarkToObjectConverter
Create for particularDimensions
with a scaling-factor.- Parameters:
scaleFactor
- the scaling-factor.dimensions
- the dimensions of the final scaled-up scene, to ensure theObjectMask
is contained within.
-
MarkToObjectConverter
public MarkToObjectConverter(Optional<ScaleFactor> scaleFactor, Dimensions dimensions, RegionMembershipWithFlags regionMembership, BinaryValuesByte binaryValuesOut) Creates a newMarkToObjectConverter
instance.- 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 theObjectMask
is 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 aMark
to an equivalentObjectMask
.- Parameters:
mark
- theMark
to convert (whose state will be internally modified if a scale-factor is applied).- Returns:
- an
ObjectMask
with scaling applied.
-