Automated bounding box generation within the boundaries of arbitrary shapes
First Claim
1. A computer program, embodied on a non-transitory computer readable medium, the computer program configured to control a processor to automatically generate a bounding box, the generating comprising:
- sampling a plurality of points that lie within an interior of an arbitrary shape;
automatically creating a rectangle from each of the points, wherein each of the rectangles lies completely within the interior and each rectangle comprises a pair of height sides and a pair of width sides;
increasing the height sides and the width sides of the rectangles until each of the rectangles touches at least one side of the arbitrary shape;
assigning a largest of the increased rectangles as an interior bounding box for the arbitrary shape, wherein the largest of the increased rectangles is the rectangle that has the largest area of the increased rectangles; and
placing an item within the interior bounding box, wherein the item is contained within the arbitrary shape and the item is at least one of an image or text.
1 Assignment
0 Petitions
Accused Products
Abstract
One embodiment is directed to a computer program, embodied on a computer readable medium. The computer program is configured to control a processor to execute instructions. The instructions include sampling a plurality of points that lie within the interior of an arbitrary shape, drawing one or more rectangles from each of the points, gradually increasing the length and width of the rectangles until the rectangles no longer falls within the interior of the arbitrary shape, and assigning the largest of the increased rectangles as the interior bounding box.
35 Citations
18 Claims
-
1. A computer program, embodied on a non-transitory computer readable medium, the computer program configured to control a processor to automatically generate a bounding box, the generating comprising:
-
sampling a plurality of points that lie within an interior of an arbitrary shape; automatically creating a rectangle from each of the points, wherein each of the rectangles lies completely within the interior and each rectangle comprises a pair of height sides and a pair of width sides; increasing the height sides and the width sides of the rectangles until each of the rectangles touches at least one side of the arbitrary shape; assigning a largest of the increased rectangles as an interior bounding box for the arbitrary shape, wherein the largest of the increased rectangles is the rectangle that has the largest area of the increased rectangles; and placing an item within the interior bounding box, wherein the item is contained within the arbitrary shape and the item is at least one of an image or text. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for automatically generating a bounding box within an arbitrary shape, the method comprising:
-
sampling a plurality of points that lie within interior bounds of an arbitrary shape; automatically creating a rectangle from each of the sampled points, wherein each of the rectangles lies completely within the interior and each rectangle comprises a pair of height sides and a pair of width sides; stretching the height sides and the width sides of each of the rectangles until they no longer fall within the interior of the arbitrary shape; assigning the largest of the stretched rectangles as the interior bounding box, wherein the largest of the stretched rectangles is the rectangle that has the largest area of the stretched rectangles; and placing an item within the interior bounding box, wherein the item is contained within the arbitrary shape and the item is at least one of an image or text. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. An apparatus for placing an item within an arbitrary shape, the apparatus comprising:
-
a processor; a storage device coupled to the processor and storing a bounding box module, the bounding box module, when executed by the processor, causing the processor to implement a sampler, a generator and an assignor; the sampler configured to sample a plurality of points that lie within an interior of the arbitrary shape; the generator configured to automatically create a rectangle comprising a pair of height sides and a pair of width sides from each of the points, and to increase the height sides and the width sides of the rectangles until each of the rectangles touches at least one side of the arbitrary shape; the assignor configured to assign a largest of the increased rectangles as the interior bounding box, wherein the largest of the increased rectangles is the rectangle that has the largest area of the increased rectangles, and place the item within the interior bounding box, wherein the item is contained within the arbitrary shape and the item is at least one of an image or text. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification