|
Hello,
I have the coordinates of the top left Point of a rectangle as well as its width, height and rotation from 0 to 180 and -0 to -180.
I am trying to get the bounding coordinates of the actual box around the rectangle. What is a simple way of calculating...
Started by coulix on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Transform and call it max_x Ditto with the y's Your bounding....
If you think the rectangle may spill over the imagable area post respectively of the obtained x,y coordinates to define your new bounding box.
For all points concerned.
|
|
I have the need to determine the bounding rectangle for a polygon at an arbitrary angle. This picture illustrates what I need to do:
The pink rectangle is what I need to determine at various angles for simple 2d polygons.
Any solutions are much appreciated...
Started by kevin42 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Then you can use the min/max x/y coordinates....
For a given 2D polygon, how do you calculate the position of a bounding rectangle for whichTo get a bounding box with a certain angle, rotate the polygon the other way round by that angle.
|
|
I need some help coming up with an algorithm to determine the minimum bounding rectangle around a set of lat/lon coordinates. It is OK to assume a flat earth since the coordinates will not be too far apart. Pseudocode is OK, but if someone has done this...
Started by Matthew Belk on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
For more sophisticated solutions, see:
http://stackoverflow.com/questions/1298003/calculate-minimum-area-rectangle-for-a-polygon
If you're in Objective.
And use those as the bounds of your rectangle.
|
Ask your Facebook Friends
|
I need to perform a flood fill on a region of an image. However I do not actually need the resulting image, I only need to know the smallest rectangle containing all pixels that would be changed by the flood fill.
Is there a variant of a flood fill algorithm...
Started by finnw on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
When you can't go right+down anymore, then you need ... .
Find the bottom right corner of the real edge:
You can do this by going as far right+down as possible inside your color .
Basically you need to determine biggestX, biggestY, smallestX, and smallestY .
|
|
Maths101 question - does anyone know how to calculate an ellipse (width/height) that will enclose a given rectangle. Obviously there is no single ellipse - I'm after an algorithm that will give me various width/height combinations - or perhaps the smallest...
Answer Snippets (Read the full thread at stackoverflow):
For a square with half side length = 1, the radius of the circle would be sqrt is more precise than "enclosed"), you ... .
If you give your ellipse the same aspect ratio as the rectangle, you can work on the basis into the required rectangle.
|
|
In AS3, I have a Sprite that has a Z axis rotation applied.
How do I calculate that Sprite's dimensions (it's original size) from Sprite.rotationZ and Sprite.getRect(...)?
Started by Ben on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It can also be done without ever seeing it visually if you switch the rotationZ back once you get your width and height, like ... .
Antpaw's answer is best / easiest.
Sprite.width and sprite.height on sprite.rotationZ = 0 would give you the original size .
|
|
I am looking to find the bounding box of a rotated rectangle. I know the top left corner of the rotated rectangle and it's width height and rotation.
Here is an image to help out.
http://bisonkick.com/math/rect.png
I am looking to find the red line in...
Started by outermeasure on
, 8 posts
by 4 people.
Answer Snippets (Read the full thread at sosmath):
I am only given....
Http) and you have your box.
Here is an image to help out.
I know the top left corner of the rotated rectangle and it's width height and rotation.
|
|
I have a table with thousands of addresses as points.
Is there a function in postgis that will allow me to get a bounding polygon around these points and return it as a polygon?
update I am looking for a more complex polygon than just a bounding rectangle...
Started by ADAM on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It may be understood.
As
minimum bounding rectangle (also known as MBR or envelope) for which you can use ST_Envelope be not 100% clear from your question what you mean as more bounding polygon .
|
|
NI didn't leak the codes and examples fully for Vision Assistant so I have to use the assistant whenever I train some characters.
I want to add the simple training routine to my main program.
As a start point, I would like to detect the character bounding...
Started by labmaster on
, 2 posts
by 1 people.
Answer Snippets (Read the full thread at ni):
NI labview provided the code in OCR panel..
|
|
NI didn't leak the codes and examples fully for Vision Assistant so I have to use the assistant whenever I train some characters.
I want to add the simple training routine to my main program.
As a start point, I would like to detect the character bounding...
Started by labmaster on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at ni):
|