![]() |
Perfectly Clear SDK Documentation
8.3.4.175
|
The image corrections available include:
V3 LOOKs support is not available at this time on mobile platforms, and is provided via an optional "v3.looks" file. The supported LOOKs are listed here.
These various corrections are best previewed and evaluated in our desktop applications like Perfectly Clear Complete or QuickDesk.
There are several parameters which affect our automatic exposure correction:
PFCCOREPARAM.iStrength is what will actually be applied to the image. When PFCCOREPARAM.bUseAutomaticStrengthSelection is 'true' then iStrength will be set automatically, and is influenced by all the other parameters. The actual value of iStrength will also depend on image content, of course. Attempting to set iStrength to a specific value while bUseAutomaticStrengthSelection is true has no effect.
This last option is not able to be directly set within our Perfectly Clear desktop applications. Instead, it's automatically set to 50, 100, or 150 based on the value of PFCCOREPARAM.eAggressiveness (low, med, or high). However, manually setting PFCCOREPARAM.iMaxStrength can still have an affect on the exposure correction level. Specifically, the recommended exposure level will not exceed the iMaxStrength value you set when FAE is disabled, or when FAE is enabled, but a face is not detected. In FAE exposure cases (enabled and faces are found), the maximum exposure will be (50, 100, 150) based on eAggressiveness.
There are two operating modes for Face Aware Exposure: High Quality and High Speed. This affects the performance of the face detection process, which is used by Face Aware Exposure to gain insight into the exposure values of the people in your photos. High Quality takes slightly longer to process, but find more faces - especially backlit, small faces. High Speed is quicker, but is not as good at finding smaller faces. The speed difference is between 10% and 20% of total processing time, and the detection rate is about 1% to 2% better on High Quality. The one used by default in this SDK and in our Perfectly Clear desktop software is High Quality. To change this to High Speed, you can:
There are three ways you can set the correction parameters to be applied in this SDK:
Let's look at each of these in a little more detail.
The quickest way to get started with this SDK is to use one of our built-in presets to populate the PFCPARAM struct that you'll need when calling PFC_Apply or PFC_AutoCorrect. This is as simple as:
Now, the param struct is populated with all the various correction parameters defined with our Intelligent Auto preset. This preset has been carefully designed with years of feedback from our customers, and is used on millions of photos per day. If you want to make a few changes to these parameters, you can set individual parameters:
All our desktop applications can export presets to XML files which will end in the .preset file extension. These files can then easily be read using PFC_ReadPresets like this:
Now, the param struct is populated with all the various correction parameters defined with the settings you created in the file /path/to/approved_parameters.preset . Here's a link to the User Guide of Perfectly Clear that explains how to export these .preset files: https://www.athentech.com/help/plugins/PerfectlyClearComplete-v3/index.html?about_the_perfectly_clear_interface.html
This is the quickest way for you to get your custom parameters in use with this SDK.
Lastly, you can export the standard C or C# code from Perfectly Clear Complete (with a special 'Workbench' license code) or QuickDesk. Notes on how to do that are here: https://www.athentech.com/help/plugins/PerfectlyClearWorkbench-v3/what-is-workbench_.html
Once you have this exported text file, open it up and you will see various sections for C or C# syntax. Within these major sections, you will find the various parameters for each of the PFCPARAM groups: PFCCOREPARAM, PFCNRPARAM, PFCREPARAM, PFCFBPARAM, and PFCV3PARAM, including layers and masks.
For example, here is the full C code required to set all the parameters for our Intelligent Auto preset (see below). All of the PFCV3PARAM sections are empty or zero value, so these can safely be omitted.
This method allows you to hard-code specific parameters into the applications you compile with this SDK. This can be useful to prevent accidental changes to the parameters, which would be possible if they were being read from an external .presets file.
If your application allows the end-user to change parameters, then this method also allows you change individual parameter programmatically.