Commit 32540c3c authored by Andrey Filippov's avatar Andrey Filippov

debugging

parent 270b2b7a
...@@ -3119,6 +3119,7 @@ public class CuasMotion { ...@@ -3119,6 +3119,7 @@ public class CuasMotion {
e.printStackTrace(); e.printStackTrace();
} }
uas_log_path = resourcePath.toString(); uas_log_path = resourcePath.toString();
System.out.println("uas_log_path="+uas_log_path);
} }
if (diamond_path == null) { if (diamond_path == null) {
String resource_name = TARGET_ICONS[target_type][scale2x? 1 : 0]; String resource_name = TARGET_ICONS[target_type][scale2x? 1 : 0];
...@@ -3186,6 +3187,9 @@ public class CuasMotion { ...@@ -3186,6 +3187,9 @@ public class CuasMotion {
} }
} }
} }
if (uaslog_pixels != null) {
System.out.println("uaslog_width="+uaslog_width+"uaslog_height="+uaslog_height);
}
final int num_scenes = fpixels.length; final int num_scenes = fpixels.length;
...@@ -3315,6 +3319,12 @@ public class CuasMotion { ...@@ -3315,6 +3319,12 @@ public class CuasMotion {
int yc = (int) Math.round(scale * uas_pXpYD[1]); int yc = (int) Math.round(scale * uas_pXpYD[1]);
int xl = xc - uaslog_width/2; int xl = xc - uaslog_width/2;
int yt = yc - uaslog_height/2; int yt = yc - uaslog_height/2;
if (nscene < 10) {
System.out.println(String.format("uas_pXpYD=[%f,%f,%f]",uas_pXpYD[0],uas_pXpYD[1],uas_pXpYD[2]));
System.out.println(String.format("xc=%f, yc=%f, xl=%f, yt=%f",xc,yc,xl,yt));
System.out.println(String.format("A=%f, T=%f, R=%f",uasLogReader.getCameraATR()[0],uasLogReader.getCameraATR()[1],uasLogReader.getCameraATR()[1]));
System.out.println(String.format("titles[nscene]=%s, startTimeStamp=%f",titles[nscene],uasLogReader.getStartTimestamp()));
}
for (int y = 0; y < uaslog_height; y++) { for (int y = 0; y < uaslog_height; y++) {
int py = yt + y; int py = yt + y;
if ((py >= 0) && (py < height)) { if ((py >= 0) && (py < height)) {
......
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