---
title: VNTargetedImageRequest
framework: vision
role: symbol
role_heading: Class
path: vision/vntargetedimagerequest
---

# VNTargetedImageRequest

The abstract superclass for image analysis requests that operate on both the processed image and a secondary image.

## Declaration

```swift
class VNTargetedImageRequest
```

## Overview

Overview Other Vision request handlers that operate on both the processed image and a secondary image inherit from this abstract base class. Instantiate one of its subclasses to perform image analysis, and pass in auxiliary image data by filling in the options dictionary at initialization.

## Topics

### Creating a Request

- [init(targetedCGImage:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedcgimage:options:completionhandler:).md)
- [init(targetedCGImage:orientation:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedcgimage:orientation:options:completionhandler:).md)
- [init(targetedCIImage:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedciimage:options:completionhandler:).md)
- [init(targetedCIImage:orientation:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedciimage:orientation:options:completionhandler:).md)
- [init(targetedCVPixelBuffer:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedcvpixelbuffer:options:completionhandler:).md)
- [init(targetedCVPixelBuffer:orientation:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedcvpixelbuffer:orientation:options:completionhandler:).md)
- [init(targetedCMSampleBuffer:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedcmsamplebuffer:options:completionhandler:).md)
- [init(targetedCMSampleBuffer:orientation:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedcmsamplebuffer:orientation:options:completionhandler:).md)
- [init(targetedImageData:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedimagedata:options:completionhandler:).md)
- [init(targetedImageData:orientation:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedimagedata:orientation:options:completionhandler:).md)
- [init(targetedImageURL:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedimageurl:options:completionhandler:).md)
- [init(targetedImageURL:orientation:options:completionHandler:)](vision/vntargetedimagerequest/init(targetedimageurl:orientation:options:completionhandler:).md)

## Relationships

### Inherits From

- [VNImageBasedRequest](vision/vnimagebasedrequest.md)

### Inherited By

- [VNGenerateOpticalFlowRequest](vision/vngenerateopticalflowrequest.md)
- [VNImageRegistrationRequest](vision/vnimageregistrationrequest.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Image alignment

- [Aligning Similar Images](vision/aligning-similar-images.md)
- [VNImageRegistrationRequest](vision/vnimageregistrationrequest.md)
- [VNTranslationalImageRegistrationRequest](vision/vntranslationalimageregistrationrequest.md)
- [VNTrackTranslationalImageRegistrationRequest](vision/vntracktranslationalimageregistrationrequest.md)
- [VNHomographicImageRegistrationRequest](vision/vnhomographicimageregistrationrequest.md)
- [VNTrackHomographicImageRegistrationRequest](vision/vntrackhomographicimageregistrationrequest.md)
- [VNImageAlignmentObservation](vision/vnimagealignmentobservation.md)
- [VNImageTranslationAlignmentObservation](vision/vnimagetranslationalignmentobservation.md)
- [VNImageHomographicAlignmentObservation](vision/vnimagehomographicalignmentobservation.md)
