---
title: "applied(to:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/mlmodelimagefeatureextractor/applied(to:eventhandler:)"
---

# applied(to:eventHandler:)

Uses the CoreML model to create image features from the input pixel buffer.

## Declaration

```swift
func applied(to input: CIImage, eventHandler: EventHandler? = nil) async throws -> MLShapedArray<Float>
```

## Parameters

- `input`: An image.
- `eventHandler`: An event handler.

## Return Value

Return Value ImageFeatures generated by passing the pixelBuffer through the model.

## See Also

### Applying

- [MLModelImageFeatureExtractor.Error](createmlcomponents/mlmodelimagefeatureextractor/error.md)
