Sha256: dcd3f20a5b983b5f42830b538fd37a2bb9ae6c5b2129a7dda9319286eff05471

Contents?: true

Size: 720 Bytes

Versions: 16

Compression:

Stored size: 720 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::Middleware::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

16 entries across 16 versions & 1 rubygems

Version Path
tracksperanto-2.12.0 lib/tracksperanto/simple_export.rb
tracksperanto-2.11.3 lib/tracksperanto/simple_export.rb
tracksperanto-2.11.2 lib/tracksperanto/simple_export.rb
tracksperanto-2.11.1 lib/tracksperanto/simple_export.rb
tracksperanto-2.11.0 lib/tracksperanto/simple_export.rb
tracksperanto-2.10.0 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.9 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.8 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.7 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.6 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.5 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.4 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.3 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.2 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.1 lib/tracksperanto/simple_export.rb
tracksperanto-2.9.0 lib/tracksperanto/simple_export.rb