<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 15.4.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTFrameProcessorOpticalFlow",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:objc(cs)VTFrameProcessorOpticalFlow"
  },
  "title" : "VTFrameProcessorOpticalFlow"
}
-->

# VTFrameProcessorOpticalFlow

A class to wrap bidirectional optical flow to send to the processor.

```
class VTFrameProcessorOpticalFlow
```

## Overview

Instances retain the buffers backing them.

## Topics

### Creating an optical flow configuration

[`-  initWithForwardFlow:backwardFlow:`](/documentation/VideoToolbox/VTFrameProcessorOpticalFlow/init(forwardFlow:backwardFlow:))

Creates an object with forward and backward optical flow pixel buffers.

### Inspecting the configuration

[`backwardFlow`](/documentation/VideoToolbox/VTFrameProcessorOpticalFlow/backwardFlow)

The backward optical flow pixel buffer that was provided when the object was created.

[`forwardFlow`](/documentation/VideoToolbox/VTFrameProcessorOpticalFlow/forwardFlow)

The forward optical flow pixel that was provided when the object was created.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)