The lasso (or "free form selection") is an editing tool available, with minor variations, in most digital image editing softwares[1] and some specific strategy games. It is often accessed from the standard main menu (in Photoshop,[2] Paint Tool SAI,[3] and GIMP,[4] as common examples), by clicking the icon of a dotted line shaped like a rope lasso, from which the common name arises.

Standard operation

edit

The lasso tool operates on the active layer of an image, and is used by clicking and dragging to trace the edges of a selection.[5] Most software supports multiple closed contours, which can be selected by crossing over the edge path multiple times. It is also typically not necessary to close the shape: releasing the mouse button triggers the software to close any open loop(s) automatically. The area enclosed by the cursor path will remain selected and open to various transform operators (shift, scale, cut, copy, and paste, for example) until elsewhere in the image is clicked. At this point, the lassoed selection will merge with the layer it was selected from.[citation needed]

Characteristics

edit

In contrast to other image selection algorithms such as intelligent scissors, magic wand, or grabcut, lassoing places no requirements on the image, as the user is free to create any closed path.[6]

Technical description

edit

From an image processing standpoint, the lasso is fundamentally a masking tool. The edges of the mask are defined by user input: the path of the cursor while the button is held down. A temporary new active layer is created which contains the logical AND of the masking layer and the active image layer. Meanwhile, the original active layer is masked (logical AND) with the inverse of the lasso selection. This creates the impression that the tool has sliced out a piece of the original image for selective transforms and edits. Most operations available for a full image can now be applied to the temporary active layer.[citation needed]

When the layers are merged, pixels in the temporary active layer will replace the pixels in the active layer with which they coincide. "Empty" pixels are handled in one of two ways depending on whether or not the imaging software supports alpha compositing. They may take on the value of a default "background" color, or they may continue to be defined as transparent with an alpha channel value of zero.[citation needed]

References

edit
  1. ^ "Selection Tools". University of Washington. Retrieved 26 May 2018.
  2. ^ "Select with lasso tools in Photoshop". helpx.adobe.com. Retrieved 2018-04-24.
  3. ^ "Tools - SAI Paint Tool". saipainttool.com. Retrieved 2018-04-24.
  4. ^ "Free Selection (Lasso)". GIMP. Retrieved 25 May 2018.
  5. ^ Chmielewski, Leszek J.; Datta, Amitava; Kozera, Ryszard; Wojciechowski, Konrad (2016-09-09). Computer Vision and Graphics: International Conference, ICCVG 2016, Warsaw, Poland, September 19-21, 2016, Proceedings. Springer. pp. 99–. ISBN 978-3-319-46418-3.
  6. ^ Long, Mian (2013-02-11). World Congress on Medical Physics and Biomedical Engineering May 26-31, 2012, Beijing, China. Springer Science & Business Media. pp. 915–. ISBN 978-3-642-29305-4.