<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIRAWFilter",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIRAWFilter"
  },
  "title" : "CIRAWFilter"
}
-->

# CIRAWFilter

A filter subclass that produces an image by manipulating RAW image sensor data from a digital camera or scanner.

```
class CIRAWFilter
```

## Overview

Use this class to generate a [`CIImage`](/documentation/CoreImage/CIImage) object based on the configuration parameters you provide.

You can use this object in conjunction with other Core Image classes—such as [`CIFilter`](/documentation/CoreImage/CIFilter-swift.class) and [`CIContext`](/documentation/CoreImage/CIContext)—to take advantage of the built-in Core Image filters when processing images or writing custom filters.

You can also query this object to find out about the supported camera models, decoders, and filters.

## Topics

### Creating a filter

[`+  filterWithCVPixelBuffer:properties:`](/documentation/CoreImage/CIRAWFilter/init(cvPixelBuffer:properties:)-6209q)

Creates a RAW filter from the pixel buffer and its properties that you specify.

[`+  filterWithImageData:identifierHint:`](/documentation/CoreImage/CIRAWFilter/init(imageData:identifierHint:))

Creates a RAW filter from the image data and type hint that you specify.

[`+  filterWithImageURL:`](/documentation/CoreImage/CIRAWFilter/init(imageURL:))

Creates a RAW filter from the image at the URL location that you specify.

### Inspecting supported camera models, decoders, and filters

[`supportedCameraModels`](/documentation/CoreImage/CIRAWFilter/supportedCameraModels)

An array containing the names of all supported camera models.

[`supportedDecoderVersions`](/documentation/CoreImage/CIRAWFilter/supportedDecoderVersions)

An array of all supported decoder versions for the given image type.

[`CIRAWDecoderVersion`](/documentation/CoreImage/CIRAWDecoderVersion)

[`colorNoiseReductionSupported`](/documentation/CoreImage/CIRAWFilter/isColorNoiseReductionSupported)

A Boolean that indicates if the current image supports color noise reduction adjustments.

[`contrastSupported`](/documentation/CoreImage/CIRAWFilter/isContrastSupported)

A Boolean that indicates if the current image supports contrast adjustments.

[`detailSupported`](/documentation/CoreImage/CIRAWFilter/isDetailSupported)

A Boolean that indicates if the current image supports detail enhancement adjustments.

[`lensCorrectionSupported`](/documentation/CoreImage/CIRAWFilter/isLensCorrectionSupported)

A Boolean that indicates if you can enable lens correction for the current image.

[`localToneMapSupported`](/documentation/CoreImage/CIRAWFilter/isLocalToneMapSupported)

A Boolean that indicates if the current image supports local tone curve adjustments.

[`luminanceNoiseReductionSupported`](/documentation/CoreImage/CIRAWFilter/isLuminanceNoiseReductionSupported)

A Boolean that indicates if the current image supports luminance noise reduction adjustments.

[`moireReductionSupported`](/documentation/CoreImage/CIRAWFilter/isMoireReductionSupported)

A Boolean that indicates if the current image supports moire artifact reduction adjustments.

[`sharpnessSupported`](/documentation/CoreImage/CIRAWFilter/isSharpnessSupported)

A Boolean that indicates if the current image supports sharpness adjustments.

[`nativeSize`](/documentation/CoreImage/CIRAWFilter/nativeSize)

The full native size of the unscaled image.

### Configuring a filter

[`baselineExposure`](/documentation/CoreImage/CIRAWFilter/baselineExposure)

A value that indicates the baseline exposure to apply to the image.

[`boostAmount`](/documentation/CoreImage/CIRAWFilter/boostAmount)

A value that indicates the amount of global tone curve to apply to the image.

[`boostShadowAmount`](/documentation/CoreImage/CIRAWFilter/boostShadowAmount)

A value that indicates the amount to boost the shadow areas of the image.

[`colorNoiseReductionAmount`](/documentation/CoreImage/CIRAWFilter/colorNoiseReductionAmount)

A value that indicates the amount of chroma noise reduction to apply to the image.

[`contrastAmount`](/documentation/CoreImage/CIRAWFilter/contrastAmount)

A value that indicates the amount of local contrast to apply to the edges of the image.

[`decoderVersion`](/documentation/CoreImage/CIRAWFilter/decoderVersion)

A value that indicates the decoder version to use.

[`detailAmount`](/documentation/CoreImage/CIRAWFilter/detailAmount)

A value that indicates the amount of detail enhancement to apply to the edges of the image.

[`exposure`](/documentation/CoreImage/CIRAWFilter/exposure)

A value that indicates the amount of exposure to apply to the image.

[`extendedDynamicRangeAmount`](/documentation/CoreImage/CIRAWFilter/extendedDynamicRangeAmount)

A value that indicates the amount of extended dynamic range (EDR) to apply to the image.

[`draftModeEnabled`](/documentation/CoreImage/CIRAWFilter/isDraftModeEnabled)

A Boolean that indicates whether to enable draft mode.

[`gamutMappingEnabled`](/documentation/CoreImage/CIRAWFilter/isGamutMappingEnabled)

A Boolean that indicates whether to enable gamut mapping.

[`lensCorrectionEnabled`](/documentation/CoreImage/CIRAWFilter/isLensCorrectionEnabled)

A Boolean that indicates whether to enable lens correction.

[`linearSpaceFilter`](/documentation/CoreImage/CIRAWFilter/linearSpaceFilter)

An optional filter you can apply to the RAW image while it’s in linear space.

[`localToneMapAmount`](/documentation/CoreImage/CIRAWFilter/localToneMapAmount)

A value that indicates the amount of local tone curve to apply to the image.

[`luminanceNoiseReductionAmount`](/documentation/CoreImage/CIRAWFilter/luminanceNoiseReductionAmount)

A value that indicates the amount of luminance noise reduction to apply to the image.

[`moireReductionAmount`](/documentation/CoreImage/CIRAWFilter/moireReductionAmount)

A value that indicates the amount of moire artifact reduction to apply to high frequency areas of the image.

[`neutralChromaticity`](/documentation/CoreImage/CIRAWFilter/neutralChromaticity)

A value that indicates the amount of white balance based on chromaticity values to apply to the image.

[`neutralLocation`](/documentation/CoreImage/CIRAWFilter/neutralLocation)

A value that indicates the amount of white balance based on pixel coordinates to apply to the image.

[`neutralTemperature`](/documentation/CoreImage/CIRAWFilter/neutralTemperature)

A value that indicates the amount of white balance based on temperature values to apply to the image.

[`neutralTint`](/documentation/CoreImage/CIRAWFilter/neutralTint)

A value that indicates the amount of white balance based on tint values to apply to the image.

[`orientation`](/documentation/CoreImage/CIRAWFilter/orientation)

A value that indicates the orientation of the image.

[`portraitEffectsMatte`](/documentation/CoreImage/CIRAWFilter/portraitEffectsMatte)

An optional auxiliary image that represents the portrait effects matte of the image.

[`previewImage`](/documentation/CoreImage/CIRAWFilter/previewImage)

An optional auxiliary image that represents a preview of the original image.

[`properties`](/documentation/CoreImage/CIRAWFilter/properties)

A dictionary that contains properties of the image source.

[`scaleFactor`](/documentation/CoreImage/CIRAWFilter/scaleFactor)

A value that indicates the desired scale factor to draw the output image.

[`semanticSegmentationGlassesMatte`](/documentation/CoreImage/CIRAWFilter/semanticSegmentationGlassesMatte)

An optional auxiliary image that represents the semantic segmentation glasses matte of the image.

[`semanticSegmentationHairMatte`](/documentation/CoreImage/CIRAWFilter/semanticSegmentationHairMatte)

An optional auxiliary image that represents the semantic segmentation hair matte of the image.

[`semanticSegmentationSkinMatte`](/documentation/CoreImage/CIRAWFilter/semanticSegmentationSkinMatte)

An optional auxiliary image that represents the semantic segmentation skin matte of the image.

[`semanticSegmentationSkyMatte`](/documentation/CoreImage/CIRAWFilter/semanticSegmentationSkyMatte)

An optional auxiliary image that represents the semantic segmentation sky matte of the image.

[`semanticSegmentationTeethMatte`](/documentation/CoreImage/CIRAWFilter/semanticSegmentationTeethMatte)

An optional auxiliary image that represents the semantic segmentation teeth matte of the image.

[`shadowBias`](/documentation/CoreImage/CIRAWFilter/shadowBias)

A value that indicates the amount to subtract from the shadows in the image.

[`sharpnessAmount`](/documentation/CoreImage/CIRAWFilter/sharpnessAmount)

A value that indicates the amount of sharpness to apply to the edges of the image.

## Relationships

### Conforms To

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

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

[`NSCopying`](/documentation/Foundation/NSCopying)

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

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

### Inherits From

[`CIFilter-swift.class`](/documentation/CoreImage/CIFilter-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)