---
title: "apply(input:regionOfInterest:output:filterParameters:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnns/cropresizelayer/apply(input:regionofinterest:output:filterparameters:)"
---

# apply(input:regionOfInterest:output:filterParameters:)

Applies the layer to a set of input objects, writing the result to a set of output objects.

## Declaration

```swift
func apply(input: BNNSNDArrayDescriptor, regionOfInterest: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, filterParameters: BNNSFilterParameters? = nil) throws
```

## See Also

### Applying a Crop-Resize Layer

- [applyBackward(regionOfInterest:outputGradient:generatingInputGradient:filterParameters:)](accelerate/bnns/cropresizelayer/applybackward(regionofinterest:outputgradient:generatinginputgradient:filterparameters:).md)
