Difference between revisions of "Pto mask"

From PanoTools.org Wiki
Jump to navigation Jump to search
(Added pto_mask)
 
 
Line 2: Line 2:
  
 
The general use is:
 
The general use is:
     pto_mask [switches] --mask=mask.msk@imgNr input.pto
+
     pto_mask [switches] options input.pto
  
'''--mask=mask.msk@imgNr''' Load the mask from the file named mask.msk and apply it to the image with the number imgNr. The mask file can be generated from the [[Hugin Mask tab|mask tab]] - '''Save mask'''. This switch can be specified several times to add several mask at once.
+
== Options ==
 +
* '''--mask=mask.msk@imgNr''' Load the mask from the file named mask.msk and apply it to the image with the number imgNr. The mask file can be generated from the [[Hugin Mask tab|mask tab]] - '''Save mask'''. This switch can be specified several times to add several mask at once.
 +
* '''--delete-mask=all|all@imgNr|maskNr@imgNr''' Deletes the specified mask from the project. (The switch can be given several times to remove several masks in one go.)
 +
** '''all''' removes all masks from all images
 +
** '''all@imgNr''' removes all masks for the given image
 +
** '''maskNr@imgNr''' removes only the specified mask from the given image
  
 
==Switches==
 
==Switches==

Latest revision as of 17:58, 14 April 2022

Pto_mask can add mask to Hugin .pto project files.

The general use is:

   pto_mask [switches] options input.pto

Options

  • --mask=mask.msk@imgNr Load the mask from the file named mask.msk and apply it to the image with the number imgNr. The mask file can be generated from the mask tab - Save mask. This switch can be specified several times to add several mask at once.
  • --delete-mask=all|all@imgNr|maskNr@imgNr Deletes the specified mask from the project. (The switch can be given several times to remove several masks in one go.)
    • all removes all masks from all images
    • all@imgNr removes all masks for the given image
    • maskNr@imgNr removes only the specified mask from the given image

Switches

  • -o|--output output.pto Output a pto file with the given filename. If not given it will append "_mask" to the input filename.
  • --rotate=CLOCKWISE|90|COUNTERCLOCKWISE|-90 Rotates the mask 90° clockwise or counter-clockwise before apply the mask to the image.
  • --process=CLIP|SCALE|PROP_SCALE Processing options, if the mask size does not correspond to the image size
    • CLIP Does clip the mask at the image borders.
    • SCALE Scale the mask independently at x and y scale to fit inside the image.
    • PROP_SCALE Scale the mask proportional to fit inside the image.
  • -h | --help Display help.