Using the SDK
Architecture, core objects, and API patterns for integrating Perfectly Clear
The Perfectly Clear SDK provides two API options for integrating image correction into your applications. Choose the API that best fits your development environment and requirements.
Available APIs
The SDK includes a native C API and a .NET wrapper for C# applications. Both APIs provide access to the same underlying correction engine and produce identical results.
| API | Languages | Platforms | Use case |
|---|---|---|---|
| C API | C, C++ | Linux, macOS, Windows | Native applications, server-side processing, maximum performance |
| .NET API | C#, VB.NET | Windows | Windows desktop applications, .NET services |
Processing workflow
Both APIs follow the same general workflow for image correction:
- Initialize — Set up license protection and create an engine instance
- Load AI models — Load scene detection and AI correction models (optional but recommended)
- Load image — Read image data into memory
- Analyze — Calculate correction profile for the image
- Apply — Apply corrections using the profile and parameters
- Save — Write the corrected image to disk or memory
The SDK supports two approaches: a simplified single-function call (AutoCorrect) or a two-step process (Calc + Apply) that allows inspection and modification of parameters between analysis and correction.
Choosing an approach
For most batch processing scenarios, use AutoCorrect with AI scene detection enabled. This provides optimal corrections with minimal code.
For interactive applications where users adjust parameters, use the two-step Calc + Apply approach. This lets you analyze the image once, then apply corrections multiple times with different settings without re-analyzing.
Next steps
Explore more on the architecture, core objects and API patterns:
C API
Architecture, core objects, and patterns for C/C++ integration
.NET API
C# wrapper classes and parameter mapping
PFC-SDK Version 10.7.3.1317 built from df9dbc8727c92fb9b1d2c68b21e60ea9c7229e1a on 03-23-2026.
Copyright © 2026 EyeQ Imaging Inc. All rights reserved.