iOS Developer Library

Developer

CoreImage Framework Reference CIFeature Class Reference

Options
Deployment Target:

On This Page
Language:

CIFeature

A CIFeature object represents a portion of an image that a detector believes matches its criteria. Subclasses of CIFeature typically hold additional information specific to the detector that discovered the feature.

Conforms To


Import Statement


Swift

import CoreImage

Objective-C

@import CoreImage;

Availability


Available in iOS 5.0 and later.
  • bounds bounds Property

    The rectangle that holds discovered feature. (read-only)

    Declaration

    Swift

    var bounds: CGRect { get }

    Objective-C

    @property(readonly, assign) CGRect bounds

    Discussion

    The rectangle is in the coordinate system of the image.

    Import Statement

    Objective-C

    @import CoreImage;

    Swift

    import CoreImage

    Availability

    Available in iOS 5.0 and later.

  • type type Property

    The type of feature that was discovered. (read-only)

    Declaration

    Swift

    var type: String! { get }

    Objective-C

    @property(readonly, retain) NSString *type

    Import Statement

    Objective-C

    @import CoreImage;

    Swift

    import CoreImage

    Availability

    Available in iOS 5.0 and later.

    See Also

    Feature Types

  • Strings that define specific kinds of findable features.

    Declaration

    Swift

    let CIFeatureTypeFace: NSString!

    Objective-C

    NSString* const CIFeatureTypeFace;

    Constants

    • CIFeatureTypeFace

      CIFeatureTypeFace

      The discovered feature is a person’s face.

      Use the CIFaceFeature class to find more information about the detected feature.

      Available in iOS 5.0 and later.