yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::VisualDiffConfig Struct Reference

Configuration for visual diff engine. More...

#include <visual_diff_engine.h>

Public Types

enum class  DiffStyle { kRedHighlight , kSideBySide , kHeatmap , kBlinkComposite }
 
enum class  Algorithm { kPixelExact , kSSIM , kPerceptualHash }
 

Public Attributes

float tolerance = 0.95f
 
int color_threshold = 10
 
bool generate_diff_image = true
 
DiffStyle diff_style = DiffStyle::kRedHighlight
 
Algorithm algorithm = Algorithm::kPixelExact
 
int region_merge_distance = 16
 
int min_region_size = 4
 
std::vector< ScreenRegionignore_regions
 

Detailed Description

Configuration for visual diff engine.

Definition at line 63 of file visual_diff_engine.h.

Member Enumeration Documentation

◆ DiffStyle

Enumerator
kRedHighlight 
kSideBySide 
kHeatmap 
kBlinkComposite 

Definition at line 72 of file visual_diff_engine.h.

◆ Algorithm

Enumerator
kPixelExact 
kSSIM 
kPerceptualHash 

Definition at line 81 of file visual_diff_engine.h.

Member Data Documentation

◆ tolerance

float yaze::test::VisualDiffConfig::tolerance = 0.95f

◆ color_threshold

int yaze::test::VisualDiffConfig::color_threshold = 10

◆ generate_diff_image

bool yaze::test::VisualDiffConfig::generate_diff_image = true

Definition at line 71 of file visual_diff_engine.h.

Referenced by yaze::test::VisualDiffEngine::CompareImpl().

◆ diff_style

DiffStyle yaze::test::VisualDiffConfig::diff_style = DiffStyle::kRedHighlight

Definition at line 78 of file visual_diff_engine.h.

Referenced by yaze::test::VisualDiffEngine::CompareImpl().

◆ algorithm

Algorithm yaze::test::VisualDiffConfig::algorithm = Algorithm::kPixelExact

Definition at line 86 of file visual_diff_engine.h.

Referenced by yaze::test::VisualDiffEngine::CompareImpl().

◆ region_merge_distance

int yaze::test::VisualDiffConfig::region_merge_distance = 16

◆ min_region_size

int yaze::test::VisualDiffConfig::min_region_size = 4

Definition at line 90 of file visual_diff_engine.h.

◆ ignore_regions

std::vector<ScreenRegion> yaze::test::VisualDiffConfig::ignore_regions

The documentation for this struct was generated from the following file: