tracksperanto 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/bin/tracksperanto +1 -1
- data/lib/pipeline/base.rb +1 -0
- data/lib/tracksperanto.rb +1 -1
- data/test/import/test_syntheyes_import.rb +15 -0
- metadata +1 -1
data/History.txt
CHANGED
data/bin/tracksperanto
CHANGED
@@ -79,7 +79,7 @@ end
|
|
79
79
|
|
80
80
|
pipe = Tracksperanto::Pipeline::Base.new
|
81
81
|
pipe.progress_block = lambda{|percent, msg| puts("#{msg}..#{percent.to_i}%") }
|
82
|
-
pipe.run(input_file, :pix_w => width, :pix_h => height, :parser =>
|
82
|
+
pipe.run(input_file, :pix_w => width, :pix_h => height, :parser => reader_klass) do | scaler, slipper, golden, reformat, shift |
|
83
83
|
slipper.slip = slip
|
84
84
|
scaler.x_factor = scale_x
|
85
85
|
scaler.y_factor = scale_y
|
data/lib/pipeline/base.rb
CHANGED
data/lib/tracksperanto.rb
CHANGED
@@ -27,4 +27,19 @@ class SyntheyesImportTest < Test::Unit::TestCase
|
|
27
27
|
assert_in_delta 886.212, first_kf.abs_y, DELTA
|
28
28
|
assert_in_delta 30.0, first_kf.residual, DELTA
|
29
29
|
end
|
30
|
+
|
31
|
+
def test_syntheyes_import_from_victorw
|
32
|
+
fixture = File.open(File.dirname(__FILE__) + "/samples/testalltrackers_VictorW.txt")
|
33
|
+
parser = Tracksperanto::Import::Syntheyes.new
|
34
|
+
parser.width = 1920
|
35
|
+
parser.height = 1080
|
36
|
+
|
37
|
+
trackers = parser.parse(fixture)
|
38
|
+
for tracker in trackers
|
39
|
+
puts tracker.inspect
|
40
|
+
STDOUT.flush
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
30
45
|
end
|