Commit 5e4e5577 authored by Andrey Filippov's avatar Andrey Filippov

added absolute contrast

parent 29e261ef
...@@ -8,11 +8,18 @@ public class ItemMatch { ...@@ -8,11 +8,18 @@ public class ItemMatch {
public double [] combo_pxy; // combo image {pixel_x, pixel_y} public double [] combo_pxy; // combo image {pixel_x, pixel_y}
public double [] lla; // add later public double [] lla; // add later
public HashMap<String, ItemPatternMatch> pattern_matches = new HashMap<String, ItemPatternMatch>(); public HashMap<String, ItemPatternMatch> pattern_matches = new HashMap<String, ItemPatternMatch>();
public double abs_contrast = 0;
public ItemMatch (double [] combo_pxy) { public ItemMatch (double [] combo_pxy) {
this.combo_pxy = combo_pxy; this.combo_pxy = combo_pxy;
} }
public void setAbsoluteContrast(double contrast) {
abs_contrast = contrast; // only for main scene
}
public double getAbsoluteContrast() {
return abs_contrast;
}
public double [] getXY() { public double [] getXY() {
return combo_pxy; return combo_pxy;
} }
......
...@@ -30,7 +30,7 @@ public class ItemPatternMatch { ...@@ -30,7 +30,7 @@ public class ItemPatternMatch {
best_sub = sub; best_sub = sub;
} }
public int getBestSub() { public int getBestSub() { // 1 - full, > 1 - partial
return best_sub; return best_sub;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment