![]() |
Perfectly Clear SDK Documentation
8.3.1.149
|
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 (string path="") | |
Class constructor. More... | |
unsafe ADPTRRETURNCODE | Calc (ref Bitmap bm) |
Performs precalc analysis. More... | |
unsafe ADPTRRETURNCODE | Calc (ref Bitmap bm, ref Bitmap bmds) |
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) |
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 Bitmap bm, int iOpacity) |
Apply correction. More... | |
int | AutoCorrect (ref Bitmap bm) |
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 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 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 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... | |
Bitmap | ReadImage (string filename) |
Utility function for reading image file into Bitmap. More... | |
Name: PerfectlyClear Scope: public
C# wrapper class for PerfectlyClearPro dll.
Definition at line 547 of file PerfectlyClearAdapter.cs.
|
inline |
Class constructor.
path | [in] (Protection version only) Path to license files issued by Athentech |
Definition at line 611 of file PerfectlyClearAdapter.cs.
|
inline |
Query if Abnormal Tint detected.
eTintMethod | [in] The tint detection method to be queried. |
Definition at line 1458 of file PerfectlyClearAdapter.cs.
|
inline |
Apply correction.
bm | [in] Bitmap instance to be corrected. |
Definition at line 847 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 857 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
0 | The correction is successful. | ||||||||||
> 0 |
| ||||||||||
< 0 | PFCAPPLYSTATUS enum. |
bm | [in,out] Image to be corrected. |
Definition at line 967 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
0 | The correction is successful. | ||||||||||
> 0 |
| ||||||||||
< 0 | PFCAPPLYSTATUS enum. |
bm | [in,out] Image to be corrected. |
bmds | [in] Down sampled image to assist in precalc analysis. |
Definition at line 991 of file PerfectlyClearAdapter.cs.
|
inline |
Performs auto correction.
0 | The correction is successful. | ||||||||||
> 0 |
| ||||||||||
< 0 | PFCAPPLYSTATUS enum. |
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 1017 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
0 | The correction is successful. | ||||||||||
> 0 |
| ||||||||||
< 0 | PFCAPPLYSTATUS enum. |
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 1095 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 1182 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
0 | The correction is successful. | ||||||||||||||||
> 0 |
| ||||||||||||||||
< 0 | PFCAPPLYSTATUS enum. | ||||||||||||||||
< -1000 |
|
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 1224 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
0 | The correction is successful. | ||||||||||||||||
> 0 |
| ||||||||||||||||
< 0 | PFCAPPLYSTATUS enum. | ||||||||||||||||
< -1000 |
|
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 1268 of file PerfectlyClearAdapter.cs.
|
inline |
Overload method for auto correction.
0 | The correction is successful. | ||||||||||||||||
> 0 |
| ||||||||||||||||
< 0 | PFCAPPLYSTATUS enum. | ||||||||||||||||
< -1000 |
|
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 1313 of file PerfectlyClearAdapter.cs.
|
inline |
Performs precalc analysis.
bm | [in] Source image for precalc analysis. |
Definition at line 661 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 671 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 681 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 692 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. |
Definition at line 704 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 764 of file PerfectlyClearAdapter.cs.
|
inline |
Get number of faces.
Get number of faces found by the Face Beautification library.
Definition at line 1427 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 1439 of file PerfectlyClearAdapter.cs.
|
inline |
Query if Face Beautification feature is available.
Return true if feature is available.
Definition at line 1418 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 1568 of file PerfectlyClearAdapter.cs.
|
inline |
Read a preset from .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. |
path | [in] The path to the preset (.preset) file. |
Definition at line 1348 of file PerfectlyClearAdapter.cs.
|
inline |
Read a preset from a file stream.
0 | Preset read successfully. |
-3 | Stream read error. |
-4 | Parse error. |
-8 | Exception occurred while reading preset file. |
fs | [in] The file stream of the preset (.preset) file. |
Definition at line 1389 of file PerfectlyClearAdapter.cs.
|
inline |
Set process parameters in current instance.
id | [in] PFCPRESETID value to select preset. |
Definition at line 1327 of file PerfectlyClearAdapter.cs.