Perfectly Clear SDK Documentation
Perfectly Clear SDK

Welcome to the Perfectly Clear SDK!. This guide will explain how to use the Perfectly Clear SDK to enable fully-automatic or interactive image corrections in your applications. In the Table of Contents on the left, the first several pages provide an overview of the SDK. Next you'll find several examples for various platforms, and finally a full reference section.

Quick Introduction

Applying the Perfectly Clear corrections will require the following steps:

  1. Enabling License setup with PFC_SetProtectionPath
  2. Loading image data into a PFCIMAGE (either directly from existing memory raster data, or using PFCImageFile)
  3. Setting the corrections you want to apply in a PFCPARAM (detailed here)
  4. Apply the corrections with PFC_AutoCorrect(), or separately call PFC_Calc() and then PFC_Apply() functions
  5. Reading the corrected data out of the PFCIMAGE, or again using PFCImageFile to write the results to a JPEG or PNG file

There are three main functional reference sections - one for the standard C library (PerfectlyClearPro.h), one for .NET development platform (PerfectlyClearAdapter.cs), and one for Android ( The function names are very similar, and the calling patterns are nearly identical. They are easy to confuse when looking back and forth through examples and this document. The correction parameter structures are also slightly different across the three platforms. Our Workbench application allows exporting these parameters into code ready to copy/paste into your projects.

There are sample projects (Linux & OSX Sample Code, Windows Sample Code, C# Sample Code) that show this in all platforms we support. Our sample applications also read and write from JPEG and PNG image files, and can read .preset files, as exported from our Desktop Applications, to make setting the correction parameters as easy as possible.

This was build from b7102b288755d425aded7b75d82f55d4d33ced1f on Mon May 18 15:25:41 UTC 2020