<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 7.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageGetResamplingFilterExtent(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageGetResamplingFilterExtent"
  },
  "title" : "vImageGetResamplingFilterExtent(_:_:)"
}
-->

# vImageGetResamplingFilterExtent(_:_:)

Returns the maximum sampling radius for a resampling filter.

```
func vImageGetResamplingFilterExtent(_ filter: ResamplingFilter, _ flags: vImage_Flags) -> vImagePixelCount
```

## Parameters

`filter`

The resampling filter to query.

`flags`

The flags you intend to pass to the horizontal or vertical shear function.

## Return Value

The maximum sampling radius for the specified resampling filter.

## Discussion

This function returns the maximum distance from any pixel that the filter will look, either horizontally or vertically, depending on whether a horizontal or vertical shear is used.  It’s analogous to `kernelWidth` in [`vImageNewResamplingFilterForFunctionUsingBuffer(_:_:_:_:_:_:)`](/documentation/Accelerate/vImageNewResamplingFilterForFunctionUsingBuffer(_:_:_:_:_:_:)), but might be slightly larger to allow for extra slope when dealing with subpixel coordinates during resampling.

---

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)