Mac Developer Library

Developer

QuartzCore Framework Reference CIFeature Class Reference

Options
Deployment Target:

On This Page
Language:

CIFeature

Conforms To


Import Statement


Swift

import QuartzCore

Objective-C

@import QuartzCore;

Availability


Available in OS X v10.7 and later.

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.

  • 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 QuartzCore;

    Swift

    import QuartzCore

    Availability

    Available in OS X v10.7 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 QuartzCore;

    Swift

    import QuartzCore

    Availability

    Available in OS X v10.7 and later.

    See Also

    Feature Types

  • Strings that define specific kinds of findable features.

    Declaration

    Swift

    let CIFeatureTypeFace: String let CIFeatureTypeRectangle: String

    Objective-C

    NSString* const CIFeatureTypeFace; NSString* const CIFeatureTypeRectangle;

    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 OS X v10.7 and later.

    • CIFeatureTypeRectangle

      CIFeatureTypeRectangle

      The discovered feature is a rectangular object, though it might appear in perspective in the image.

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

      Available in OS X v10.10 and later.