Background removal tool for a presentation application
First Claim
1. A method of displaying a graphical object, the method comprising:
- in a presentation application executing on an electronic device;
receiving a selection of a portion of a graphical object;
identifying an unknown pixel from the graphical object based on the selected portion;
identifying a plurality of neighboring pixels for the unknown pixel;
determining an alpha value for the unknown pixel that indicates a degree to which the unknown pixel is part of a foreground of the graphical object, the determination being based, at least in part, on determining a pixel of least resistance from among the plurality of neighboring pixels and determining whether the pixel of least resistance is in a direction that opposes a guidance vector;
designating, based on the alpha value, the unknown pixel as part of at least one of the foreground or a background of the graphical object;
creating a bitmap of the foreground only or the background only in response to the designation;
converting the bitmap to a vector graphic of the selected portion;
generating a masked graphical object by masking the vector graphic; and
displaying the masked graphical object using a display coupled to the electronic device.
0 Assignments
0 Petitions
Accused Products
Abstract
A presentation application for masking portions of an object, such as the background of an image, is provided. The presentation application may provide a background removal tool that allows a user to define an initial point in the background of the object. The presentation application may establish an initial background color based on the initial point, and may compute and automatically adjust a color tolerance of the background color based on the distance that a user-controlled cursor is from the initial point. Using a seed-fill algorithm, the presentation application can select a contiguous portion of the object for masking that includes the initial point and surrounding pixels that are within the background color tolerance. To smoothen the edges of the contiguous portion, the presentation application can convert the portion to a vector graphic before making the object.
-
Citations
27 Claims
-
1. A method of displaying a graphical object, the method comprising:
- in a presentation application executing on an electronic device;
receiving a selection of a portion of a graphical object; identifying an unknown pixel from the graphical object based on the selected portion; identifying a plurality of neighboring pixels for the unknown pixel; determining an alpha value for the unknown pixel that indicates a degree to which the unknown pixel is part of a foreground of the graphical object, the determination being based, at least in part, on determining a pixel of least resistance from among the plurality of neighboring pixels and determining whether the pixel of least resistance is in a direction that opposes a guidance vector; designating, based on the alpha value, the unknown pixel as part of at least one of the foreground or a background of the graphical object; creating a bitmap of the foreground only or the background only in response to the designation; converting the bitmap to a vector graphic of the selected portion; generating a masked graphical object by masking the vector graphic; and displaying the masked graphical object using a display coupled to the electronic device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
- in a presentation application executing on an electronic device;
-
10. An electronic device configured to display a graphical object, the electronic device comprising:
-
a processor configured to; receive, during execution of a presentation application, a selection of a portion of a graphical object; identify an unknown pixel of the graphical object based on the selected portion; identify a plurality of neighboring pixels for the unknown pixel; determine an alpha value for the unknown pixel that indicates a degree to which the unknown pixel is part of a foreground of the graphical object, the determination being based, at least in part on, determining a pixel of least resistance from among the plurality of neighboring pixels and determining whether the pixel of least resistance is in a direction that opposes a guidance vector; designate, based on the alpha value, the unknown pixel as part of at least one of the foreground or a background of the graphical object; create a bitmap of the foreground only or the background only in response to the designation; convert the bitmap to a vector graphic; generate a masked graphical object by masking the vector graphic; and cause the masked graphical object to be displayed using a display coupled to the electronic device. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A non-transitory computer readable storage device encoded with one or more instructions for displaying a graphical object, which when executed by a computer system, cause the computer system to:
-
receive during execution of a presentation application, a selection of a portion of a graphical object; identify an unknown pixel from the graphical object based on the selected portion; identify a plurality of neighboring pixels for the unknown pixel; determine an alpha value for the unknown pixel that indicates a degree to which the unknown pixel is part of a foreground of the graphical object, the determination being based, at least in part on, determining a pixel of least resistance from among the plurality of neighboring pixels and determining whether the pixel of least resistance is in a direction that opposes a guidance vector; designate, based on the alpha value, the unknown pixel as part of at least one of the foreground or a background of the graphical object; create a bitmap of the foreground only or the background only in response to the designation; convert the bitmap to a vector graphic; generate a masked graphical object by masking the vector graphic; and cause the masked graphical object to be displayed using a display coupled to the electronic device. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27)
-
Specification