Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
CIccMinMaxEval Class Reference
+ Inheritance diagram for CIccMinMaxEval:
+ Collaboration diagram for CIccMinMaxEval:

Public Member Functions

 CIccMinMaxEval ()
 
 CIccMinMaxEval ()
 
void Compare (icFloatNumber *pixel, icFloatNumber *deviceLab, icFloatNumber *lab1, icFloatNumber *lab2)
 
void Compare (icFloatNumber *pixel, icFloatNumber *deviceLab, icFloatNumber *lab1, icFloatNumber *lab2)
 
icFloatNumber GetMean1 ()
 
icFloatNumber GetMean1 ()
 
icFloatNumber GetMean2 ()
 
icFloatNumber GetMean2 ()
 
- Public Member Functions inherited from CIccEvalCompare
icStatusCMM EvaluateProfile (CIccProfile *pProfile, icUInt8Number nGran=0, icRenderingIntent nIntent=((icRenderingIntent) 0x3f3f3f3f), icXformInterp nInterp=icInterpLinear, bool buseMpeTags=true)
 
icStatusCMM EvaluateProfile (const icChar *szProfilePath, icUInt8Number nGran=0, icRenderingIntent nIntent=((icRenderingIntent) 0x3f3f3f3f), icXformInterp nInterp=icInterpLinear, bool buseMpeTags=true)
 

Public Attributes

icUInt32Number m_nTotal
 
icFloatNumber maxDE1
 
icFloatNumber maxDE2
 
icFloatNumber maxLab1 [3]
 
icFloatNumber maxLab2 [3]
 
icFloatNumber minDE1
 
icFloatNumber minDE2
 
icUInt32Number num3
 

Protected Attributes

icFloatNumber num1
 
icFloatNumber num2
 
icFloatNumber sum1
 
icFloatNumber sum2
 

Detailed Description

Definition at line 79 of file iccRoundTrip.cpp.

Constructor & Destructor Documentation

◆ CIccMinMaxEval() [1/2]

CIccMinMaxEval::CIccMinMaxEval ( )

Definition at line 101 of file iccRoundTrip.cpp.

102{
103 minDE1 = minDE2 = 10000;
104 maxDE1 = maxDE2 = -1;
105 sum1 = sum2 = 0;
106 num1 = num2 = 0.0;
107 num3 = m_nTotal = 0;
108
109 memset(&maxLab1[0], 0, sizeof(maxLab1));
110 memset(&maxLab2[0], 0, sizeof(maxLab2));
111}
icFloatNumber maxLab2[3]
icFloatNumber minDE2
icFloatNumber maxLab1[3]
icUInt32Number num3
icFloatNumber minDE1
icUInt32Number m_nTotal
icFloatNumber num1
icFloatNumber sum1
icFloatNumber num2
icFloatNumber sum2
icFloatNumber maxDE2
icFloatNumber maxDE1

References m_nTotal, maxDE1, maxDE2, maxLab1, maxLab2, minDE1, minDE2, num1, num2, num3, sum1, and sum2.

◆ CIccMinMaxEval() [2/2]

CIccMinMaxEval::CIccMinMaxEval ( )

Member Function Documentation

◆ Compare() [1/2]

void CIccMinMaxEval::Compare ( icFloatNumber * pixel,
icFloatNumber * deviceLab,
icFloatNumber * lab1,
icFloatNumber * lab2 )
virtual

Implements CIccEvalCompare.

Definition at line 113 of file iccRoundTrip.cpp.

114{
115 icFloatNumber DE1 = icDeltaE(deviceLab, lab1);
116 icFloatNumber DE2 = icDeltaE(lab1, lab2);
117
118 if (DE1<minDE1) {
119 minDE1 = DE1;
120 }
121
122 if (DE1>maxDE1) {
123 maxDE1 = DE1;
124 memcpy(&maxLab1[0], deviceLab, sizeof(maxLab1));
125 }
126
127 if (DE2<minDE2) {
128 minDE2 = DE2;
129 }
130
131 if (DE2>maxDE2) {
132 maxDE2 = DE2;
133 memcpy(&maxLab2[0], deviceLab, sizeof(maxLab2));
134 }
135
136 if(DE2 <= 1.0)
137 num3 += 1;
138
139 sum1 += DE1;
140 num1 += 1.0;
141
142 sum2 += DE2;
143 num2 += 1.0;
144
145 m_nTotal += 1;
146}
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
icFloatNumber icDeltaE(const icFloatNumber *lab1, const icFloatNumber *lab2)
Definition IccUtil.cpp:527

References icDeltaE(), m_nTotal, maxDE1, maxDE2, maxLab1, maxLab2, minDE1, minDE2, num1, num2, num3, sum1, and sum2.

+ Here is the call graph for this function:

◆ Compare() [2/2]

void CIccMinMaxEval::Compare ( icFloatNumber * pixel,
icFloatNumber * deviceLab,
icFloatNumber * lab1,
icFloatNumber * lab2 )
virtual

Implements CIccEvalCompare.

◆ GetMean1() [1/2]

icFloatNumber CIccMinMaxEval::GetMean1 ( )
inline

Definition at line 86 of file iccRoundTrip.cpp.

86{ return sum1 / num1; }

References num1, and sum1.

Referenced by AnalyzeRoundTrip(), and main().

+ Here is the caller graph for this function:

◆ GetMean1() [2/2]

icFloatNumber CIccMinMaxEval::GetMean1 ( )
inline

Definition at line 896 of file wxProfileDump.cpp.

896{ return sum1 / num1; }

References num1, and sum1.

◆ GetMean2() [1/2]

icFloatNumber CIccMinMaxEval::GetMean2 ( )
inline

Definition at line 87 of file iccRoundTrip.cpp.

87{ return sum2 / num2; }

References num2, and sum2.

Referenced by AnalyzeRoundTrip(), and main().

+ Here is the caller graph for this function:

◆ GetMean2() [2/2]

icFloatNumber CIccMinMaxEval::GetMean2 ( )
inline

Definition at line 897 of file wxProfileDump.cpp.

897{ return sum2 / num2; }

References num2, and sum2.

Member Data Documentation

◆ m_nTotal

icUInt32Number CIccMinMaxEval::m_nTotal

Definition at line 91 of file iccRoundTrip.cpp.

Referenced by AnalyzeRoundTrip(), CIccMinMaxEval(), and Compare().

◆ maxDE1

icFloatNumber CIccMinMaxEval::maxDE1

Definition at line 90 of file iccRoundTrip.cpp.

Referenced by AnalyzeRoundTrip(), CIccMinMaxEval(), Compare(), and main().

◆ maxDE2

icFloatNumber CIccMinMaxEval::maxDE2

Definition at line 90 of file iccRoundTrip.cpp.

Referenced by AnalyzeRoundTrip(), CIccMinMaxEval(), Compare(), and main().

◆ maxLab1

icFloatNumber CIccMinMaxEval::maxLab1

Definition at line 93 of file iccRoundTrip.cpp.

Referenced by AnalyzeRoundTrip(), CIccMinMaxEval(), Compare(), and main().

◆ maxLab2

icFloatNumber CIccMinMaxEval::maxLab2

Definition at line 93 of file iccRoundTrip.cpp.

Referenced by AnalyzeRoundTrip(), CIccMinMaxEval(), Compare(), and main().

◆ minDE1

icFloatNumber CIccMinMaxEval::minDE1

Definition at line 89 of file iccRoundTrip.cpp.

Referenced by AnalyzeRoundTrip(), CIccMinMaxEval(), Compare(), and main().

◆ minDE2

icFloatNumber CIccMinMaxEval::minDE2

Definition at line 89 of file iccRoundTrip.cpp.

Referenced by AnalyzeRoundTrip(), CIccMinMaxEval(), Compare(), and main().

◆ num1

icFloatNumber CIccMinMaxEval::num1
protected

Definition at line 98 of file iccRoundTrip.cpp.

Referenced by CIccMinMaxEval(), Compare(), and GetMean1().

◆ num2

icFloatNumber CIccMinMaxEval::num2
protected

Definition at line 98 of file iccRoundTrip.cpp.

Referenced by CIccMinMaxEval(), Compare(), and GetMean2().

◆ num3

icUInt32Number CIccMinMaxEval::num3

Definition at line 91 of file iccRoundTrip.cpp.

Referenced by AnalyzeRoundTrip(), CIccMinMaxEval(), and Compare().

◆ sum1

icFloatNumber CIccMinMaxEval::sum1
protected

Definition at line 97 of file iccRoundTrip.cpp.

Referenced by CIccMinMaxEval(), Compare(), and GetMean1().

◆ sum2

icFloatNumber CIccMinMaxEval::sum2
protected

Definition at line 97 of file iccRoundTrip.cpp.

Referenced by CIccMinMaxEval(), Compare(), and GetMean2().


The documentation for this class was generated from the following files: