# ImageProcessor.Response

Artifact: [androidx.camera:camera-core](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/core/ImageProcessor.java+class:androidx.camera.core.ImageProcessor.Response) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/camera#1.3.0)

*** ** * ** ***


```
public interface ImageProcessor.Response
```

<br />

*** ** * ** ***

A response for returning a processed `https://developer.android.com/reference/androidx/camera/core/ImageProxy` to CameraX.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/ImageProxy` | `https://developer.android.com/reference/androidx/camera/core/ImageProcessor.Response#getOutputImage()()` Gets the output image returned by the `https://developer.android.com/reference/androidx/camera/core/ImageProcessor`. |

## Public methods

### getOutputImage

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/camera#1.3.0)

```
abstract @NonNull ImageProxy getOutputImage()
```

Gets the output image returned by the `https://developer.android.com/reference/androidx/camera/core/ImageProcessor`.

`https://developer.android.com/reference/androidx/camera/core/ImageProcessor` should implement the `https://developer.android.com/reference/androidx/camera/core/ImageProxy` and `https://developer.android.com/reference/androidx/camera/core/ImageProxy.PlaneProxy` interfaces to create the return value. Once return, CameraX will inject the image back to the processing pipeline.

The `https://developer.android.com/reference/androidx/camera/core/ImageProxy` must follow the instruction in the request, or CameraX may throw error. For example, the image format must match the description of the `https://developer.android.com/reference/androidx/camera/core/ImageProcessor.Request#getOutputFormat()`.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/ImageProxy` | the output image. |