![]() |
Perfectly Clear SDK Documentation
10.0.1.537
|
Data Structures | |
struct | PerfectlyClearImageTransfer |
Struct defining an image. More... | |
struct | PFCENGINE |
Struct defining an PFC engine instance. More... | |
struct | PFCIMAGE |
Struct defining an image to be used in PFC library. More... | |
struct | PFCIMAGEPROFILE |
Struct defining an image profile as calculated from PFC_Calc() function. More... | |
Public Member Functions | |
PerfectlyClear () | |
Special class constructor for multithreading. More... | |
PerfectlyClear (string path, string licenseCode="") | |
Class constructor. More... | |
unsafe ADPTRRETURNCODE | Calc (ref Bitmap bm) |
Performs precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref PFCImageFile imgfile) |
Overload method for precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref Bitmap bm, ref Bitmap bmds) |
Overload method for precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref PFCImageFile imgfile, PFCFEATURE feature) |
Overload method for precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref Bitmap bm, PFCFEATURE feature) |
Overload method for precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref Bitmap bm, ref Bitmap bmds, PFCFEATURE feature) |
Overload method for precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref Bitmap bm, PFCFEATURE feature, int ISO, string CameraModel, PFCREJECTOPTION rejectOption=PFCREJECTOPTION.PFC_REJECT_CLIPART) |
Overload method for precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref PFCImageFile imgfile, PFCFEATURE feature, int ISO, string CameraModel, PFCREJECTOPTION rejectOption=PFCREJECTOPTION.PFC_REJECT_CLIPART) |
Overload method for precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref Bitmap bm, ref Bitmap bmds, PFCFEATURE feature, int ISO, string CameraModel) |
Overload method for precalc analysis. More... | |
unsafe PFCAPPLYSTATUS | Apply (ref Bitmap bm) |
Apply correction. More... | |
unsafe PFCAPPLYSTATUS | Apply (ref PFCImageFile imgfile) |
Apply correction. More... | |
unsafe PFCAPPLYSTATUS | Apply (ref Bitmap bm, int iOpacity) |
Apply correction. More... | |
unsafe PFCAPPLYSTATUS | Apply (ref PFCImageFile imgfile, int iOpacity) |
Apply correction. More... | |
int | AutoCorrect (ref Bitmap bm) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref PFCImageFile imgfile) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref Bitmap bm, ref Bitmap bmds) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref Bitmap bm, int ISO, string CameraModel, bool bFastFAE) |
Performs auto correction. More... | |
int | AutoCorrect (ref PFCImageFile imgfile, int ISO, string CameraModel, bool bFastFAE) |
Performs auto correction. More... | |
int | AutoCorrect (ref Bitmap bm, ref Bitmap bmds, int ISO, string CameraModel, bool bFastFAE) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref Bitmap bm, string pathPreset) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref PFCImageFile imgfile, string pathPreset) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref Bitmap bm, ref Bitmap bmds, string pathPreset) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref Bitmap bm, string pathPreset, int ISO, string CameraModel, bool bFastFAE) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref PFCImageFile imgfile, string pathPreset, int ISO, string CameraModel, bool bFastFAE) |
Overload method for auto correction. More... | |
int | AutoCorrect (ref Bitmap bm, ref Bitmap bmds, string pathPreset, int ISO, string CameraModel, bool bFastFAE) |
Overload method for auto correction. More... | |
void | SetParam (PFCPRESETID id) |
Set process parameters in current instance. More... | |
int | ReadPresets (string path) |
Read a preset from .preset file. More... | |
int | ReadPresetsFromStream (FileStream fs) |
Read a preset from a file stream. More... | |
bool | HasFaceBeautification () |
Query if Face Beautification feature is available. More... | |
int | FBFaceCount () |
Get number of faces. More... | |
bool | GetFaceInfo (ref PFCFBFACEINFO info, int index) |
Get face information. More... | |
bool | AbnormalTintDetected (TINTCORRECTION eTintMethod) |
Query if Abnormal Tint detected. More... | |
void | ApplyStrengthToParam (int strength) |
Apply overall strength to parameters, same as Strength in Perfecly Clear products Adjusts the parameters in the adapter by the desired strength level, using the same method as in Perfectly Clear Complete, QuickDesk, and Workbench. More... | |
Bitmap | ReadImage (string filename) |
Utility function for reading image file into Bitmap. More... | |
unsafe bool | EnumFAEFaceRect (ref PFCFACERECT rect) |
Allows the user to iterate over the known faces to FAE. More... | |
int | FAEFaceCount () |
Returns the count of the faces recogniced by FAE. More... | |
int | LoadAiEngine (PFCAIFEATURE aifeatures, string binPath) |
Load AI models into engine. Takes time and memory. More... | |
unsafe int | LoadScenePresets (string filePath, int groupUUID=0, int *arrProfileUUID=null, int arrProfileUUIDLen=0) |
Loads scene optimized presets from presets file. Engine may be AI-enabled with PFC_LoadAIEngine(). Presets are checked for compatibility with loaded scene detection AI. If Engine does not have its own AI engine, pass groupUUID and optionally arrProfileUUID and arrProfileUUIDLen reported by AI-enabled Engine. More... | |
int | ReadScenePreset (ref PFCPARAM param, int scene) |
Fill param for the scene from the engine with previously loaded scene presets with LoadScenePresets. More... | |
int | GetScene (int *version) |
Get scene detection label from profile obtained with Pfc.Calc For this to work you need to pass AI_SCENE_DETECTION enabled engine as a last param of Pfc.Calc. More... | |
bool | GetCategorizationEngineInfo (int *groupUUID, int *arrProfileUUID, int *arrProfileUUIDLen) |
Get loaded (with PFC_LoadAIEngine) categorization model info Call first with arrProfileUUID to get arrProfileUUIDLen to preallocate. More... | |
void | SetAddonPath (string dirPath) |
Set path to directory containing runtime add-ons such as .looks file(s) This enables searching for add-on (such as v3.looks) in specified location instead of current working directory of the calling process. More... | |
Static Public Member Functions | |
static int | SetProtectionPath (string path, string licenseCode) |
Set path to location of SDK License files This enables license protection and allows activation using a license key file provided by EyeQ. Use either this function along with PerfectlyClear constuctor with no arguments, Or do not call this function, but use the PerfectlyClear constuctor with path and optional license key arguments. More... | |
static void | ReleaseProtectionPath () |
Releases resources from SetProtectionPath. More... | |
Name: PerfectlyClear Scope: public
C# wrapper class for PerfectlyClearPro dll.
Definition at line 632 of file PerfectlyClearAdapter.cs.
|
inline |
Query if Abnormal Tint detected.
eTintMethod | [in] The tint detection method to be queried. |
Definition at line 1770 of file PerfectlyClearAdapter.cs.
|
inline |
Apply correction.
bm | [in] Bitmap instance to be corrected. |
Definition at line 1138 of file PerfectlyClearAdapter.cs.
|
inline |
Apply correction.
bm | [in] Bitmap instance to be corrected. |
iOpacity | [in] Define opacity of the correction. Range from 0 to 100. 0 - No correction. 100 - Full correction. |
Definition at line 1159 of file PerfectlyClearAdapter.cs.
|
inline |
Apply correction.
imgfile | [in] Bitmap instance to be corrected. |
Definition at line 1148 of file PerfectlyClearAdapter.cs.
|
inline |
Apply correction.
imgfile | [in] PFCImageFile instance to be corrected. |
iOpacity | [in] Define opacity of the correction. Range from 0 to 100. 0 - No correction. 100 - Full correction. |
Definition at line 1216 of file PerfectlyClearAdapter.cs.
|
inline |
Apply overall strength to parameters, same as Strength in Perfecly Clear products Adjusts the parameters in the adapter by the desired strength level, using the same method as in Perfectly Clear Complete, QuickDesk, and Workbench.
strength | [in] - Strength of correction to apply. 0 = totally off 100 = default, 200 = Max |
Definition at line 1780 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
bm | [in,out] Image to be corrected. |
0 | The correction is successful. | ||||||||||||||||
> 0 |
| ||||||||||||||||
< 0 | returns a PFCAPPLYSTATUS enum | ||||||||||||||||
< -1000 |
|
Definition at line 1276 of file PerfectlyClearAdapter.cs.
|
inline |
Performs auto correction.
bm | [in,out] Image to be corrected. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
bFastFAE | [in] Set to TRUE to enable fast FAE calculation. |
Definition at line 1311 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
bm | [in,out] Image to be corrected. |
bmds | [in] Down sampled image to assist in precalc analysis. |
Definition at line 1298 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
bm | [in,out] Image to be corrected. |
bmds | [in] Down sampled image to assist in precalc analysis. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
bFastFAE | [in] Set to TRUE to enable fast FAE calculation. |
Definition at line 1464 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
bm | [in,out] Image to be corrected. |
bmds | [in] Down sampled image to assist in precalc analysis. |
pathPreset | [in] Path to .preset file exported from one of Athentech's desktop products. |
Definition at line 1571 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
bm | [in,out] Image to be corrected. |
bmds | [in] Down sampled image to assist in precalc analysis. |
pathPreset | [in] Path to .preset file exported from one of Athentech's desktop products. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
bFastFAE | [in] Set to TRUE to enable fast FAE calculation. |
Definition at line 1629 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
bm | [in,out] Image to be corrected. |
pathPreset | [in] Path to .preset file exported from one of Athentech's desktop products. |
Definition at line 1538 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
bm | [in,out] Image to be corrected. |
pathPreset | [in] Path to .preset file exported from one of Athentech's desktop products. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
bFastFAE | [in] Set to TRUE to enable fast FAE calculation. |
Definition at line 1590 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
imgfile | [in,out] Image to be corrected. |
Definition at line 1286 of file PerfectlyClearAdapter.cs.
|
inline |
Performs auto correction.
imgfile | [in,out] Image to be corrected. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
bFastFAE | [in] Set to TRUE to enable fast FAE calculation. |
Definition at line 1387 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
imgfile | [in,out] Image to be corrected. |
pathPreset | [in] Path to .preset file exported from one of Athentech's desktop products. |
Definition at line 1554 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
imgfile | [in,out] Image to be corrected. |
pathPreset | [in] Path to .preset file exported from one of Athentech's desktop products. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
bFastFAE | [in] Set to TRUE to enable fast FAE calculation. |
Definition at line 1609 of file PerfectlyClearAdapter.cs.
|
inline |
Performs precalc analysis.
bm | [in] Source image for precalc analysis. |
Definition at line 884 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for precalc analysis.
bm | [in] Source image for precalc analysis. |
feature | [in] PFCFEATURE that defines features for analysis. |
Definition at line 927 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for precalc analysis.
bm | [in] Source image for precalc analysis. |
feature | [in] PFCFEATURE that defines features for analysis. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
rejectOption | [in] Set the photo detection rejection mode, defaults to PFC_REJECT_CLIPART |
Definition at line 953 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for precalc analysis.
bm | [in] Source image for precalc analysis. |
bmds | [in] Down sampled version of source image to assist in analysis. |
Definition at line 905 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for precalc analysis.
bm | [in] Source image for precalc analysis. |
bmds | [in] Down sampled version of source image to assist in analysis. |
feature | [in] PFCFEATURE that defines features for analysis. |
Definition at line 939 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for precalc analysis.
bm | [in] Source image for precalc analysis. |
bmds | [in] Down sampled version of source image to assist in analysis. |
feature | [in] PFCFEATURE that defines features for analysis. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
Definition at line 1053 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for precalc analysis.
imgfile | [in] Source image for precalc analysis. |
Definition at line 894 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for precalc analysis.
imgfile | [in] Source image for precalc analysis. |
feature | [in] PFCFEATURE that defines features for analysis. |
Definition at line 916 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for precalc analysis.
imgfile | [in] Source image for precalc analysis. |
feature | [in] PFCFEATURE that defines features for analysis. |
ISO | [in] ISO number of image. |
CameraModel | [in] Camera model found in EXIF info block. |
rejectOption | [in] Set the photo detection rejection mode, defaults to PFC_REJECT_CLIPART |
Definition at line 1014 of file PerfectlyClearAdapter.cs.
|
inline |
Allows the user to iterate over the known faces to FAE.
This function wraps a c-style iteration over the known faces in the photo. It's intended calling pattern is:
rect | [out] current faceRect |
Definition at line 1983 of file PerfectlyClearAdapter.cs.
|
inline |
Returns the count of the faces recogniced by FAE.
Definition at line 2003 of file PerfectlyClearAdapter.cs.
|
inline |
Get number of faces.
Get number of faces found by the Face Beautification library.
Definition at line 1737 of file PerfectlyClearAdapter.cs.
|
inline |
Get loaded (with PFC_LoadAIEngine) categorization model info Call first with arrProfileUUID to get arrProfileUUIDLen to preallocate.
groupUUID | [out] - UUID of categories group supported by the model, to match preset loaded with PFC_LoadScenePresets() |
arrProfileUUID | [out] - array of preset UUIDS inside the categories group |
arrProfileUUIDLen | [out] - length of array to preallocate |
Definition at line 2091 of file PerfectlyClearAdapter.cs.
|
inline |
Get face information.
Fetch face information of faces found by the Face Beautification library.
info | [out] PFCFBFACEINFO structure to receive face information. |
index | [in] Zero based index of the face to be fetched. (index must be less than number returned from FBFaceCount.) |
Definition at line 1750 of file PerfectlyClearAdapter.cs.
|
inline |
Get scene detection label from profile obtained with Pfc.Calc For this to work you need to pass AI_SCENE_DETECTION enabled engine as a last param of Pfc.Calc.
version | [out] - version of detection engine |
Definition at line 2078 of file PerfectlyClearAdapter.cs.
|
inline |
Query if Face Beautification feature is available.
Definition at line 1727 of file PerfectlyClearAdapter.cs.
|
inline |
Load AI models into engine. Takes time and memory.
aifeatures | [in] - PFCAIFEATURE flags e.g. AI_SCENE_DETECTION | AI_CORRECTIONS |
binPath | [in] - utf8 path to folder containing dependency libs and models (.pnn) |
Definition at line 2014 of file PerfectlyClearAdapter.cs.
|
inline |
Loads scene optimized presets from presets file. Engine may be AI-enabled with PFC_LoadAIEngine(). Presets are checked for compatibility with loaded scene detection AI. If Engine does not have its own AI engine, pass groupUUID and optionally arrProfileUUID and arrProfileUUIDLen reported by AI-enabled Engine.
filePath | [in] - path to .preset file containing presets for all scenes supported by loaded scene detection engine |
groupUUID | [in] - preset group UUID required by loaded AI model |
arrProfileUUID | [in] - array of preset UUIDs required by loaded AI model, if NULL check for match is ignored |
arrProfileUUIDLen | [in] - length of arrProfileUUID |
Definition at line 2048 of file PerfectlyClearAdapter.cs.
|
inline |
Utility function for reading image file into Bitmap.
For convenience, this function is an alternative to the Bitmap class functions in reading image file in YCCK and 8bpp Black-n-white format.
filename | [in] The path of the image file. |
Definition at line 1891 of file PerfectlyClearAdapter.cs.
|
inline |
Read a preset from .preset file.
path | [in] The path to the preset (.preset) file. |
0 | Preset read successfully. |
-1 | Attribute errors. |
-2 | Unable to open file. |
-3 | File read error. |
-4 | Parse error. |
-5 | Cannot convert text. |
-6 | No text node. |
-7 | Element depth exceeded. |
-8 | Exception occurred while reading preset file. |
Definition at line 1665 of file PerfectlyClearAdapter.cs.
|
inline |
Read a preset from a file stream.
fs | [in] The file stream of the preset (.preset) file. |
0 | Preset read successfully. |
-3 | Stream read error. |
-4 | Parse error. |
-8 | Exception occurred while reading preset file. |
Definition at line 1698 of file PerfectlyClearAdapter.cs.
|
inline |
Fill param for the scene from the engine with previously loaded scene presets with LoadScenePresets.
param | [in, out] - PFCPARAM to be filled |
scene | [in] - detected scene |
Definition at line 2067 of file PerfectlyClearAdapter.cs.
|
inlinestatic |
Releases resources from SetProtectionPath.
Call this only if you are also using the static SetProtectionPath() function, and not when using PerfectlyClear() constructor with path and license key arguments.
Definition at line 767 of file PerfectlyClearAdapter.cs.
|
inline |
Set path to directory containing runtime add-ons such as .looks file(s) This enables searching for add-on (such as v3.looks) in specified location instead of current working directory of the calling process.
dirPath | [in] - path to the directory containing the add-ons to load |
Definition at line 2099 of file PerfectlyClearAdapter.cs.
|
inline |
Set process parameters in current instance.
id | [in] PFCPRESETID value to select preset. |
Definition at line 1643 of file PerfectlyClearAdapter.cs.
|
inlinestatic |
Set path to location of SDK License files This enables license protection and allows activation using a license key file provided by EyeQ. Use either this function along with PerfectlyClear constuctor with no arguments, Or do not call this function, but use the PerfectlyClear constuctor with path and optional license key arguments.
path | [in] - UTF8 encoded path to the folder that contains the SDK license files |
licenseCode | [in] - optional 18-digits license code to be used instead of license.key in path |
return code | meaning |
---|---|
0 | OK |
101 | Undetermined errors |
102 | Success: Active license |
103 | Success: Active trial |
104 | License expired |
105 | System time tampered |
106 | Product not authorized |
107 | Product not found |
108 | Invalid license |
109 | License returned |
110 | Product inactive |
111 | Invalid trial period |
112 | Too many activation |
113 | Trial expired |
114 | License number inactive |
115 | Exceed allowed activation |
116 | Subscription expired |
117 | Invalid system date |
118 | Product in invalid state |
119 | No available licenses |
120 | Duplicate device ID |
121 | High missing heartbeat |
Definition at line 728 of file PerfectlyClearAdapter.cs.
|
inline |
Special class constructor for multithreading.
Constructor for licensed version or for protected version for use if you intend to call multiple corrections at once (say in a threaded environment). Use this constructor after initializing the protection using the static function SetProtectionPath(), when you are done call ReleaseProtectionPath() after disposing any PerfectlyClear objects.
Definition at line 778 of file PerfectlyClearAdapter.cs.
|
inline |
Class constructor.
path | [in] (Protection version only) Path to license files issued by EyeQ |
licenseCode | [in] (Protection version only) This is the class constructor that accepts license path and optionally a license code. This version of the contstructor should be used in single-threaded applications when many simultaneous PerfectlyClear classed will not be instantiated concurrently. |
Definition at line 816 of file PerfectlyClearAdapter.cs.