Mac Developer Library

Developer

Core Image Reference Collection 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.

  • 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.

    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

    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 let CIFeatureTypeQRCode: String let CIFeatureTypeText: String

    Objective-C

    NSString* const CIFeatureTypeFace; NSString* const CIFeatureTypeRectangle; NSString* const CIFeatureTypeQRCode; NSString* const CIFeatureTypeText;

    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.

    • CIFeatureTypeQRCode

      CIFeatureTypeQRCode

      The discovered feature is a Quick Response code (2D barcode).

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

      Available in OS X v10.11 and later.

    • CIFeatureTypeText

      CIFeatureTypeText

      The discovered feature is a region likely to contain upright text.

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

      Available in OS X v10.11 and later.