|
Operator Console
|
contains the details of an Blemish test to be performed including all relevant fields for determining pass or fail More...
#include <BlemishTest.h>
Public Member Functions | |
| BlemishTest (void) | |
| virtual | ~BlemishTest (void) |
| BlemishTest (void) | |
| virtual | ~BlemishTest (void) |
Public Member Functions inherited from ImageTest | |
| ImageTest (void) | |
| virtual | ~ImageTest (void) |
| virtual void | Run () |
| Runs the test pointed to by m_imatestFunc. More... | |
| virtual void | Run (void *raw_pixels, int width, int height, const Config *config) |
| void | GetLog (CString &dst) |
| void | GetFailInfo (CString &dst) |
| void | GetJSON (CString &dst) |
| void | GetName (CString &name) |
| void | GetSummary (CString &dst) |
| void | Init (void *raw_pixels, int width, int height, const Config *config) |
| bool | Passed () |
| void | SetBuffer (void *buf) |
| ImageTest (void) | |
| virtual | ~ImageTest (void) |
| virtual void | Run () |
| virtual void | Run (void *raw_pixels, int width, int height, const Config *config) |
| void | GetLog (CString &dst) |
| void | GetFailInfo (CString &dst) |
| void | GetJSON (CString &dst) |
| void | GetName (CString &name) |
| void | GetSummary (CString &dst) |
| void | Init (void *raw_pixels, int width, int height, const Config *config) |
| bool | Passed () |
| void | SetBuffer (void *buf) |
Protected Member Functions | |
| void | ParseResults (string &results) |
| Parses the JSON output of an sfrPlus test to determine the pass/fail status of the various metrics. More... | |
| void | ParseResults (string &results) |
| This must be implemented by subclass. More... | |
Protected Member Functions inherited from ImageTest | |
| bool | AllocateRGB () |
| void | AppendLog (CString &log) |
| void | ClearLog () |
| void | ClearJSON () |
| void | ClearFailInfo () |
| void | ClearSummary () |
| void | DeleteRGB () |
| bool | GetDataNode (string &results, JSONNode &data, bool logErrors=true) |
| bool | GetPassFailNode (JSONNode &data, JSONNode &passFail, bool logErrors=true) |
| void | PlanesFromRGB () |
| converts from m_rawPixels to m_rgb More... | |
| void | GetString (JSONNode &node, const char *name, json_string &string, bool logErrors=true) |
| void | InitResults () |
| void | ParseFailures (const JSONNode *data) |
| void | RGBFromPlanes (UINT *rgb) |
| converts from m_rgb to rgb More... | |
| void | SaveImage (RGBQUAD *buf, const char *filename) |
| void | SetJSON (string &src) |
| void | SetSummary (CString &src) |
| bool | AllocateRGB () |
| void | AppendLog (CString &log) |
| void | ClearLog () |
| void | ClearJSON () |
| void | ClearFailInfo () |
| void | ClearSummary () |
| void | DeleteRGB () |
| bool | GetDataNode (string &results, JSONNode &data, bool logErrors=true) |
| bool | GetPassFailNode (JSONNode &data, JSONNode &passFail, bool logErrors=true) |
| void | PlanesFromRGB () |
| void | GetString (JSONNode &node, const char *name, json_string &string, bool logErrors=true) |
| void | InitResults () |
| void | ParseFailures (const JSONNode *data) |
| void | RGBFromPlanes (UINT *rgb) |
| void | SaveImage (RGBQUAD *buf, const char *filename) |
| void | SetJSON (string &src) |
| void | SetSummary (CString &src) |
Additional Inherited Members | |
Static Public Member Functions inherited from ImageTest | |
| static UINT __cdecl | ThreadProc (void *param) |
| param must be a pointer to a ThreadControl object; param->m_data must point to an ImageTest object More... | |
| static UINT __cdecl | ThreadProc (void *param) |
| param must be a pointer to a ThreadControl object; param->m_data must point to an ImageTest object More... | |
Public Attributes inherited from ImageTest | |
| int | m_width |
| int | m_height |
| int | m_ncolors |
| const char * | m_extension |
| const char * | m_fileroot |
| const char * | m_serialNumber |
| const char * | m_partNumber |
| const char * | m_iniFilePathName |
| const char * | m_programPath |
| const char * | m_name |
| long long | m_elapsed |
| CString | m_elapsedStr |
| Timestamp | m_timestamp |
Protected Attributes inherited from ImageTest | |
| const void * | m_rawPixels |
| unsigned char * | m_rgb |
| bool | m_passed |
| const TestID * | m_tests |
| int | m_numTests |
| Timer | m_time |
| ImatestShellFunc | m_imatestFunc |
| CriticalCString | m_jsonResults |
| the full results of the test in JSON format More... | |
| CriticalCString | m_summary |
| the summary results of the test (these get displayed in the dialog) More... | |
| CriticalCString | m_failInfo |
| reasons that image failed the test More... | |
| CriticalCString | m_log |
| log message(s) More... | |
contains the details of an Blemish test to be performed including all relevant fields for determining pass or fail
| BlemishTest::BlemishTest | ( | void | ) |
|
virtual |
|
protectedvirtual |
Parses the JSON output of an sfrPlus test to determine the pass/fail status of the various metrics.
Implements ImageTest.
References JSONNode::as_array(), JSONNode::as_bool(), getIntFromArray(), getStringArray(), PIXEL_ERROR_REGIONS, JSONNode::size(), and sumArrayInt().
|
protectedvirtual |
This must be implemented by subclass.
Implements ImageTest.
1.8.6