Sha256: ae85ff297c921706b93b1f975cdfa7942e9f2ffe40656b476eeafe7b6d2657b3

Contents?: true

Size: 714 Bytes

Versions: 26

Compression:

Stored size: 714 Bytes

Contents

# -*- encoding : utf-8 -*-
# Implements just_export for quickly pushing trackers out through an exporter without using Pipeline
# plumbing
module Tracksperanto::SimpleExport
  # Acccepts an array of Tracker objects and comp size.
  # Before calling this, initialize the exporter with the proper
  # IO handle
  def just_export(trackers_array, comp_width, comp_height)
    lint = Tracksperanto::Tool::Lint.new(self)
    
    lint.start_export(comp_width, comp_height)
    trackers_array.each do | t |
      lint.start_tracker_segment(t.name)
      t.each do | kf |
        lint.export_point(kf.frame, kf.abs_x, kf.abs_y, kf.residual)
      end
      lint.end_tracker_segment
    end
    lint.end_export
  end
end


Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
tracksperanto-3.5.9 lib/tracksperanto/simple_export.rb
tracksperanto-3.5.8 lib/tracksperanto/simple_export.rb
tracksperanto-3.5.7 lib/tracksperanto/simple_export.rb
tracksperanto-3.5.6 lib/tracksperanto/simple_export.rb
tracksperanto-3.5.5 lib/tracksperanto/simple_export.rb
tracksperanto-3.5.4 lib/tracksperanto/simple_export.rb
tracksperanto-3.5.2 lib/tracksperanto/simple_export.rb
tracksperanto-3.5.1 lib/tracksperanto/simple_export.rb
tracksperanto-3.5.0 lib/tracksperanto/simple_export.rb
tracksperanto-3.4.1 lib/tracksperanto/simple_export.rb
tracksperanto-3.4.0 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.13 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.12 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.11 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.10 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.9 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.8 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.7 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.6 lib/tracksperanto/simple_export.rb
tracksperanto-3.3.0.pre lib/tracksperanto/simple_export.rb