bin/tracksperanto in tracksperanto-2.9.8 vs bin/tracksperanto in tracksperanto-2.9.9

- old
+ new

@@ -79,9 +79,19 @@ op.on(" -pad", "--pad PAD_FRACTION_VALUES_COMMA_SEPARATED", String, mwd("Pad")) do | pads| left, right, top, bottom = pads.split(",").map{|e| e.to_f } $middlewares.push(["Pad", {"left_pad" => left, "right_pad"=> right, "top_pad" => top, "bottom_pad" => bottom}]) end +op.on(" -u", "--undistort K_AND_KCUBE_COMMA_SEPARATED", String, mwd("LensDisto")) do | coefficients | + k, kcube = coefficients.split(",").map{|e| e.to_f } + $middlewares.push(["LensDisto", {"k" => k, "kcube"=> kcube, "remove" => true}]) +end + +op.on(" -d", "--distort K_AND_KCUBE_COMMA_SEPARATED", String, mwd("LensDisto")) do | coefficients | + k, kcube = coefficients.split(",").map{|e| e.to_f } + $middlewares.push(["LensDisto", {"k" => k, "kcube"=> kcube, "remove" => false}]) +end + op.on(" -crop", "--crop CROP_VALUES_COMMA_SEPARATED", String, mwd("Crop")) do | pads| left, right, top, bottom = pads.split(",").map{|e| e.to_i } $middlewares.push(["Crop", {"left" => left, "right"=> right, "top" => top, "bottom" => bottom}]) end \ No newline at end of file