Method: Panomosity::Optimizer#recalculate_average_distance
- Defined in:
- lib/panomosity/optimizer.rb
#recalculate_average_distance(roll:) ⇒ Object
148 149 150 151 152 |
# File 'lib/panomosity/optimizer.rb', line 148 def recalculate_average_distance(roll:) panorama.images.each { |i| i.r = roll } panorama.control_points = ControlPoint.calculate_distances(panorama.images, panorama.variable) calculate_average_distance end |