---
title: "Cleaning up noisy images in C# .NET | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/ocr/preprocess/remove-noise-from-image/"
md_url: "https://www.nutrient.io/guides/dotnet/ocr/preprocess/remove-noise-from-image.md"
last_updated: "2026-05-28T01:45:39.254Z"
description: "How to remove speckle noise from images using Nutrient .NET SDK."
---

# Cleaning up noisy images

This guide focuses on a simple image-cleanup workflow. For broader OCR preprocessing techniques, refer to the [OCR preprocessing overview](https://www.nutrient.io/guides/dotnet/ocr/preprocess.md) guide.

Noise in scanned images can reduce readability and affect downstream tasks such as OCR and archival processing.

This guide shows how to:

- Load a noisy image

- Run despeckle processing

- Save the cleaned result

## Prepare the project

Register the SDK license before running image-processing operations. For setup details, refer to the [getting started with.NET SDK](https://www.nutrient.io/sdk/dotnet/getting-started.md) guide.

```csharp

using GdPicture14;

LicenseManager licence = new LicenseManager();
licence.RegisterKEY(""); // Set your license key

```

## Load the noisy image

Create a `GdPictureImaging` instance and load the source image:

```csharp

using GdPictureImaging imaging = new GdPictureImaging();

int imageId = imaging.CreateGdPictureImageFromFile(@"input_noise.png");

```

## Remove noise

Run despeckle processing on the loaded image:

```csharp

imaging.FxDespeckle(imageId);

```

## Save the cleaned image

Export the processed image to PNG:

```csharp

imaging.SaveAsPNG(imageId, @"output.png");

```

## Additional options

Combine despeckling with other enhancement steps, such as:

- Contrast adjustment

- Thresholding

- Morphological cleanup

Tune processing order and parameters based on your document quality targets.

## Conclusion

This workflow removes image speckle noise and writes a cleaned output file for viewing, OCR, or archival use.
---

## Related pages

- [Auto-invert images and PDFs in C#](/guides/dotnet/ocr/preprocess/auto-invert.md)
- [Deskew PDFs and images in C#](/guides/dotnet/ocr/preprocess/deskew.md)
- [Enhance characters in PDFs and images in C#](/guides/dotnet/ocr/preprocess/enhance-characters.md)
- [Image preprocessing and OCR accuracy in C#](/guides/dotnet/ocr/preprocess.md)
- [Remove lines from images and PDFs in C#](/guides/dotnet/ocr/preprocess/remove-lines.md)
- [Remove punch holes from images and PDFs in C#](/guides/dotnet/ocr/preprocess/remove-punch-holes.md)
- [Remove noise from images in C#](/guides/dotnet/ocr/preprocess/remove-noise.md)

