MBDPIBasedDewarpPolicy


@interface MBDPIBasedDewarpPolicy : MBDewarpPolicy

DPI based dewarp policy. Dewarp height will be calculated based on actual physical size provided by the MBQuadWithSizeDetector and requested DPI (dots per inch).

This policy is usually best for processor groups that prepare image for output (e.g. MBImageReturnProcessor).

  • Default DPI that will be used with default constructor.

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    convenience init()
  • Declaration

    Objective-C

    - (nonnull instancetype)initWithDesiredDPI:(NSUInteger)desiredDPI;

    Swift

    init(desiredDPI: UInt)

    Parameters

    desiredDPI

    Desired DPI (dots per inch)

  • Returns the desired DPI as defined by this policy.

    Default: 250

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readonly) NSUInteger desiredDPI;

    Swift

    var desiredDPI: UInt { get }