BNBTransformedMask

Objective-C

@interface BNBTransformedMask : NSObject
- (nonnull instancetype)initWithWidth:(int32_t)width
                               height:(int32_t)height
                              channel:(int32_t)channel
                              inverse:(BOOL)inverse
                       basisTransform:(nonnull NSArray<NSNumber *> *)basisTransform;
+ (nonnull instancetype)transformedMaskWithWidth:(int32_t)width
                                          height:(int32_t)height
                                         channel:(int32_t)channel
                                         inverse:(BOOL)inverse
                                  basisTransform:(nonnull NSArray<NSNumber *> *)basisTransform;

@property (nonatomic, readonly) int32_t width;

@property (nonatomic, readonly) int32_t height;

@property (nonatomic, readonly) int32_t channel;

@property (nonatomic, readonly) BOOL inverse;

/** (common -> mask) transformation */
@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> * basisTransform;

@end

Swift

class BNBTransformedMask : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithWidth:(int32_t)width
                                   height:(int32_t)height
                                  channel:(int32_t)channel
                                  inverse:(BOOL)inverse
                           basisTransform:(nonnull NSArray<NSNumber *> *)basisTransform;

    Swift

    init(width: Int32, height: Int32, channel: Int32, inverse: Bool, basisTransform: [NSNumber])
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)transformedMaskWithWidth:(int32_t)width
                                              height:(int32_t)height
                                             channel:(int32_t)channel
                                             inverse:(BOOL)inverse
                                      basisTransform:(nonnull NSArray<NSNumber *> *)basisTransform;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) int32_t width

    Swift

    var width: Int32 { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) int32_t height

    Swift

    var height: Int32 { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) int32_t channel

    Swift

    var channel: Int32 { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL inverse

    Swift

    var inverse: Bool { get }
  • (common -> mask) transformation

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *basisTransform;

    Swift

    var basisTransform: [NSNumber] { get }