geometry Questions

6

Solved

I am trying to detect full circles and semicircles in an image. I am following the below mentioned procedure: Process image (including Canny edge detection). Find contours and draw them on an emp...
Faintheart asked 20/12, 2013 at 7:42

3

Solved

I want to find the maximum inscribing circle of contour. I have detected the contour with cv::findContours and it is there as a vector<Point>. I know how to detect the minimum enclosing cir...
Gaffrigged asked 6/12, 2018 at 6:53

2

Language doesn't matter all that much since this is an algorithm problem, but let's say I'm using Python 3. Imagine there are two spheres in a 3D space. The spheres have a center position [x, y, z]...
Clamorous asked 12/8, 2022 at 11:9

9

Solved

Given the following path (for example) which describes a SVG cubic bezier curve: M 300,140 C 300,40, 500,40, 500,140 And assuming a straight line connecting the end points 300,140 to 500,140 (closi...
Brent asked 6/4, 2012 at 5:52

12

Solved

I want to calculate a point on a given line that is perpendicular from a given point. I have a line segment AB and have a point C outside line segment. I want to calculate a point D on AB such th...
Tirewoman asked 24/4, 2012 at 15:23

4

Is there any extension to the Hilbert space/plane filling curve that maps a non-square surface to a vector/line [for image mapping to vector]?
Eduardo asked 10/10, 2015 at 19:52

2

Solved

I have recently learned how to create the appearance of a triangle div with CSS and HTML. Now, I would like to know if it is at all possible to add a border around any of the sides of the triangle ...
Postorbital asked 26/2, 2013 at 6:46

4

Solved

I have some radiobuttons in an app that works with touch. Because the end-user can have thick fingers, I want to make the circle and text int he radiobutton bigger. Problem is, I can only make th...
Storage asked 22/7, 2013 at 14:39

0

I am currently writing a FBX Importer using FBX SDK 2020, and I've been validating that the data I have is correct, by dragging and dropping the FBX into Maya, and viewing what Maya's Component Edi...
Dearr asked 5/7, 2022 at 23:13

4

I have in mind this video, or this simulation, and I would like to reproduce the geodesic lines on some sort of surface in 3D, given by a function f(x,y), from some starting point. The midpoint me...

3

Solved

consider an image like this: by grouping pixels by color into distinct rectangles, different configurations might be achieved, for example: the goal is to find one of the best configurations, i.e...
Overfeed asked 28/6, 2022 at 15:38

4

Solved

I'm trying to implement a line-of-sight algorithm on a 2-dimensional grid. I know how it needs to work conceptually, but I can't think of how to implement it as an algorithm. The basic idea is pre...
Pushy asked 21/7, 2010 at 21:16

6

Solved

I am trying to sample around 1000 points from a 3-D ellipsoid, uniformly. Is there some way to code it such that we can get points starting from the equation of the ellipsoid? I want points on the...
Carbo asked 1/6, 2019 at 6:29

13

Solved

I don't seem to be able to find the answer to this- I need to draw a simple triangle using for loops. * *** ***** ******* ********* I can make a half triangle, but I don't know how to add to m...
Dahomey asked 10/7, 2012 at 8:43

4

Solved

Note: I asked this question before but it was closed as a duplicate, however, I, along with several others believe it was unduely closed, I explain why in an edit in my original post. So I would li...
Pallaten asked 28/2, 2018 at 20:21

9

Solved

Given a point (pX, pY) and a circle with a known center (cX,cY) and radius (r), what is the shortest amount of code you can come up with to find the point on the circle closest to (pX, pY) ? I've ...
Milieu asked 19/11, 2008 at 2:49

4

For a simple particle system I'm making, I need to, given an ellipse with width and height, calculate a random point X, Y which lies in that ellipse. Now I'm not the best at maths, so I wanted to ...
Disinclination asked 3/4, 2011 at 10:55

21

Solved

Let's say you have a two dimensional plane with 2 points (called a and b) on it represented by an x integer and a y integer for each point. How can you determine if another point c is on the line ...
Restrictive asked 29/11, 2008 at 22:37

11

Solved

I am trying to create a circle with only a border using XML in android: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:sh...
Arrearage asked 19/4, 2013 at 6:27

17

If you have a circle with center (center_x, center_y) and radius radius, how do you test if a given point with coordinates (x, y) is inside the circle?
Expiration asked 26/1, 2009 at 20:7

3

Solved

I have an image with the size of W * H, I want to draw a line on this and the line should be automatically fit to the image, for example if I draw it: I want this: How can I do this in Python and...
Stockdale asked 2/5, 2022 at 8:5

11

Given a line with first end point P(x1,y1) another end point is unknown, intersect with a circle that located at origin with radius R at only one point(tangent) T(x2,y2). Anyone know how to get the...
Involved asked 29/8, 2009 at 15:52

6

Solved

I'm looking for a way of to do a cross-browser iphone-like badge in CSS3. I'd obviously like to use one div for this, but alternative solutions would be fine. The important factor is that it needs ...
Batson asked 26/1, 2011 at 3:26

4

Solved

In Java, I have a class Line that has two variables : m and b, such that the line follows the formula mx + b. I have two such lines. How am I to find the x and y coordinates of the intersection of ...
Blithering asked 19/7, 2015 at 22:48

3

Solved

I am experimenting with the typing module and I wanted to know how to properly type something like a Nonagon (a 9 point polygon), which should be a Tuple and not a List because it should be immutab...
Lepore asked 24/4, 2022 at 23:46

© 2022 - 2024 — McMap. All rights reserved.