Sha256: 0aa45a0cbdc7e52231c4898c40224ffeba204ad01a66fce361c5ff684120768d

Contents?: true

Size: 676 Bytes

Versions: 13

Compression:

Stored size: 676 Bytes

Contents

# Export for Syntheyes tracker UVs
class Tracksperanto::Export::SynthEyes < Tracksperanto::Export::Base
  include Tracksperanto::UVCoordinates
  
  def self.desc_and_extension
    "syntheyes_2dt.txt"
  end
  
  def self.human_name
    "Syntheyes 2D tracker paths file"
  end
  
  def start_export( img_width, img_height)
    @width, @height = img_width, img_height
  end
  
  def start_tracker_segment(tracker_name)
    @tracker_name = tracker_name
  end
  
  def export_point(frame, abs_float_x, abs_float_y, float_residual)
    values = [@tracker_name, frame] + absolute_to_uv(abs_float_x, abs_float_y, @width, @height)
    @io.puts("%s %d %.6f %.6f 30" % values)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tracksperanto-1.7.3 lib/export/syntheyes.rb
tracksperanto-1.7.2 lib/export/syntheyes.rb
tracksperanto-1.7.1 lib/export/syntheyes.rb
tracksperanto-1.7.0 lib/export/syntheyes.rb
tracksperanto-1.6.9 lib/export/syntheyes.rb
tracksperanto-1.6.8 lib/export/syntheyes.rb
tracksperanto-1.6.7 lib/export/syntheyes.rb
tracksperanto-1.6.6 lib/export/syntheyes.rb
tracksperanto-1.6.5 lib/export/syntheyes.rb
tracksperanto-1.6.4 lib/export/syntheyes.rb
tracksperanto-1.6.3 lib/export/syntheyes.rb
tracksperanto-1.6.2 lib/export/syntheyes.rb
tracksperanto-1.6.1 lib/export/syntheyes.rb