Questions tagged [bounding-box]

A Bounding Box is the smallest box that encloses a geometry. There are two common classes of Bounding Boxes that are employed: Oriented Bounding Boxes (OBB), and an Axis-Aligned Bounding Boxes (AABB). Bounding boxes are commonly employed as a cheap way to approximate more complex geometries in a range of applications, including collision detection.

A Bounding Box is the smallest box that encloses a geometry. There are two common classes of Bounding Boxes that are employed: Oriented Bounding Boxes (OBB) and an Axis-Aligned Bounding Boxes (AABB). Bounding boxes are commonly employed as a cheap way to approximate more complex geometries in a range of applications, including collision detection.

A minimum Bounding Box can also be referred to as the minimum bounding or minimum enclosing box.

Reference Books

External References:

Related Tags:

1096 questions
0
votes
1 answer

How make a Rect for tiles from a Tiled Map

For my collision detection I need to check of the ball rect intersects any of the wall rects. Right now I have it working but its checking to see if the ball's position is at one of the tile's GID, using this. -(void) checkHits:(CGPoint)position { …
stenger96
  • 224
  • 3
  • 17
0
votes
2 answers

Cocos2d bounding box remains zero

I am creating a toggle switch. I have a CCScene containing a CCLayer containing a ToggleNode. The ToggleNode shows properly with the sprites and labels I put in. The touch handling is not working because the ToggleNode's bounding box seems to remain…
mmvie
  • 2,571
  • 7
  • 24
  • 39
0
votes
1 answer

WPF ensure transformed content is visible

Does WPF provide a control that automatically transforms contained content to be visible? I can compute things manually, but I'd rather work with existing Dependency Properties. I'd like to add content to this hypothetical control, rotate the…
Cat Zimmermann
  • 1,422
  • 2
  • 21
  • 38
0
votes
2 answers

boundingBox still there after child is removed

I instance a sprite, and then when it collides with a second sprite, the child of that sprite is removed: if (CGRectIntersectsRect(spriteOne.boundingBox, self.swat.boundingBox)) { if (spriteOne.tag == 0){ [self…
0
votes
1 answer

Bounding Box within N degrees from a coordinate

Given a coordinate, construct a bounding box that is +/- N degrees from that coordinate. The bounding box will be determined by lat_min, lat_max, lng_min and lng_max.I have the following code in Java (Assume all input are in degrees): static class…
Prasanna
  • 3,703
  • 9
  • 46
  • 74
0
votes
1 answer

Determining "boxes of interest" on a PDF page

I want to be able to determine the bounding box of areas of text, images and paths on a PDF page, similar to what is shown here: http://www.windjack.com/products/screenshot/pdfcanscreenshot2.html Looking at the PDF spec, I can see how to determine…
hatfinch
  • 3,095
  • 24
  • 35
-1
votes
2 answers

Bounding Box Regression

I generated a data-set of (200 x 200x 3) images in which each image contains a 40 X 40 box of different color. Create a model using tensorflow which can predict coords of this 40 x 40 box. enter image description here The code i used for generating…
-1
votes
1 answer

How to compute bounding boxes of specific roads from Overpass api

I have a high volume dataset with keys like this: lat:6.897585, long:52.785805, speed:12, bearing:144 Basically it is a dataset of records of various trips on cars. The data was stored every few seconds during each trip. The main goal of this…
-1
votes
3 answers

Draw a bounding box of second class on main image which was cropped to get detection of second class

I have a problem. I have an object detection model that detects two classes, what I want to do is: Detect class 1 (say c1) on source image (640x640) Draw bounding box and crop bounding box -> (c1 image) and then resize it to (640x640) (DONE) Detect…
M Zaid
  • 7
  • 9
-1
votes
1 answer

How to differentiate between rotated character or a number from a simple line with OpenCV

At the moment I am trying to get an idea how to distinguish a character or a number from a simple line. This way I'm trying to filter irrelevant input for Tesseract OCR. My idea is to use connectedComponentsWithStats to get the minimum box around my…
-1
votes
1 answer

Creating bounding box for a polygon using Revit API in C#

I am trying to create a bounding box for any given ploygon using Revit API. Can someone help? namespace Revit_SquarePlacement.Command { [Transaction(TransactionMode.Manual)] class cmd_Training : IExternalCommand { public Result…
Hunter
  • 1
-1
votes
1 answer

How to detect an object and draw a bounding box based on cnn

Here is my cnn code in python: x_train, x_valid, y_train, y_valid = train_test_split(X, Y, test_size=0.3, shuffle=True) x_train=x_train/255. #Normalize the dataset x_valid=x_valid/255. model =…
-1
votes
1 answer

Python - opencv Draw Bounding Boxes around Canny edge image

I have a image that processed to find edges with canny edges algorithm, now i need to draw bounding boxes around this shapes. The problem is that when i use cv2.findContours i get this error error: OpenCV(4.1.2)…
TTT2
  • 549
  • 2
  • 13
-1
votes
2 answers

How can I get the pixels values and coordinates inside bounding box (rect) in c++? is there any method?

I'm trying to get the pixel's values and their x and y coordinate inside the bounding box of objects. here's my part of the code : vector detected_objects; for (int i = 0; i < detected_objects.size(); ++i) { int xmin =…
-1
votes
1 answer

Bounding Box using eight points MATLAB

I have eight points(four pairs) (x1,y1), (x2,y2), (x3,y3), (x4,y4). How can I make the transparent bounding box on the image using these points?
Aadnan Farooq A
  • 626
  • 4
  • 8
  • 19