¡@

Home 

python Programming Glossary: radius

OpenCV dot target detection not finding all targets, and found circles are offset

http://stackoverflow.com/questions/10404062/opencv-dot-target-detection-not-finding-all-targets-and-found-circles-are-offse

circles i cv Point center cvRound p 0 cvRound p 1 int radius cvRound p 2 draw the circle center cvCircle rgbcanny center.. 0 1 8 0 draw the circle outline cvCircle rgbcanny center radius 1 CV_RGB 0 0 255 2 8 0 printf x d y d r d n center.x center.y.. 0 0 255 2 8 0 printf x d y d r d n center.x center.y radius cvNamedWindow circles 1 cvShowImage circles rgbcanny cvSaveImage..

Python/matplotlib : plotting a 3d cube, a sphere and a vector?

http://stackoverflow.com/questions/11140163/python-matplotlib-plotting-a-3d-cube-a-sphere-and-a-vector

a side length of 2 a wireframe sphere centered in 0 with a radius of 1 a point at coordinates 0 0 0 a vector that starts at this..

2D and 3D Scatter Histograms from arrays in Python

http://stackoverflow.com/questions/14002480/2d-and-3d-scatter-histograms-from-arrays-in-python

above were created using temperature 4 3 1 4 6 7 8 3 1 radius 0 2 3 4 0 1 2 10 7 density 1 10 2 24 7 10 21 102 203 import.. 'font.size' 14 points sub hist2d_bubble radius density bins 4 sub.axes.set_xlabel 'radius' sub.axes.set_ylabel.. hist2d_bubble radius density bins 4 sub.axes.set_xlabel 'radius' sub.axes.set_ylabel 'density' points sub hist3d_bubble temperature..

Mutli-threading python with Tkinter

http://stackoverflow.com/questions/14379106/mutli-threading-python-with-tkinter

circles class Fourmis def __init__ self can posx posy name radius self.can can self.largeur_can int self.can.cget width self.hauteur_can.. height self.posx posx self.posy posy self.name name self.radius radius self.ball1 self.can.create_oval self.posy self.posx self.posy.. self.posx posx self.posy posy self.name name self.radius radius self.ball1 self.can.create_oval self.posy self.posx self.posy..

Is there a matplotlib equivalent of MATLAB's datacursormode?

http://stackoverflow.com/questions/4652439/is-there-a-matplotlib-equivalent-of-matlabs-datacursormode

of artists that will be selected. tolerance is the radius in points that the mouse click must be within to select the..

Haversine Formula in Python (Bearing and Distance between two GPS points)

http://stackoverflow.com/questions/4913349/haversine-formula-in-python-bearing-and-distance-between-two-gps-points

cos lat2 sin dlon 2 2 c 2 asin sqrt a # 6367 km is the radius of the Earth km 6367 c return km share improve this answer..

Is it possible to specify your own distance function using Scikits.Learn K-Means Clustering?

http://stackoverflow.com/questions/5529625/is-it-possible-to-specify-your-own-distance-function-using-scikits-learn-k-means

j r90 j np.percentile dist 50 90 print kmeans cluster 50 radius r50.astype int print kmeans cluster 90 radius r90.astype int.. cluster 50 radius r50.astype int print kmeans cluster 90 radius r90.astype int # scale L1 dim L2 sqrt dim return centres xtoc..

Get lat/long given current point, distance and bearing

http://stackoverflow.com/questions/7222382/get-lat-long-given-current-point-distance-and-bearing

where d is the distance travelled and R is the earth ™s radius. Here's the code I've got in Python. import math R 6378.1 #Radius..

How to apply a disc shaped mask to a numpy array?

http://stackoverflow.com/questions/8647024/how-to-apply-a-disc-shaped-mask-to-a-numpy-array

1. 1. 1. 1. 1. 1. 1. I'm creating a disc shaped mask with radius 3 thus y x np.ogrid 3 3 1 3 3 1 mask x 2 y 2 3 2 This gives.. array mask 255 will mask the array using centre point 0 radius 0 radius . However I'd like to be able to place any size mask.. mask 255 will mask the array using centre point 0 radius 0 radius . However I'd like to be able to place any size mask at any..

writing robust (color and size invariant) circle detection with opencv (based on Hough transform or other features)

http://stackoverflow.com/questions/9860667/writing-robust-color-and-size-invariant-circle-detection-with-opencv-based-on

assume we are looking for circles with a given size radius. Thus the problem boils down to finding the centers. Every pixel..

python3 recursion animation in QuickDraw

http://stackoverflow.com/questions/13520435/python3-recursion-animation-in-quickdraw

Saturn Uranus Neptune Ceres Pluto Haumea Makemake Eris Radius 20890260 Orbital Radius 0 Object Miranda Orbital Radius 5822550.. Ceres Pluto Haumea Makemake Eris Radius 20890260 Orbital Radius 0 Object Miranda Orbital Radius 5822550 Radius 23500 Period.. Radius 20890260 Orbital Radius 0 Object Miranda Orbital Radius 5822550 Radius 23500 Period 1.413 Object Ariel Orbital Radius..

2D and 3D Scatter Histograms from arrays in Python

http://stackoverflow.com/questions/14002480/2d-and-3d-scatter-histograms-from-arrays-in-python

My arrays look like Temperature 4 3 1 4 6 7 8 3 1 Radius 0 2 3 4 0 1 2 10 7 Density 1 10 2 24 7 10 21 102 203 And the.. look Density X 10^2 X X 10^1 X 10^0 ___ ___ ___ ___ ___ Radius 0 3.3 6.6 10 And the 2D plot should qualitative look like Density.. should qualitative look like Density 2 10^2 11249 233 Radius 10^1 12 1 10^0 ___ ___ ___ ___ ___ Temperature 0 3 5 8 So..

writing robust (color and size invariant) circle detection with opencv (based on Hough transform or other features)

http://stackoverflow.com/questions/9860667/writing-robust-color-and-size-invariant-circle-detection-with-opencv-based-on

i in range 0 len np.asarray storage print circle # d i Radius int np.asarray storage i 0 2 x int np.asarray storage i 0 0.. center 1 cv.CV_RGB 0 255 0 1 8 0 cv.Circle orig center Radius cv.CV_RGB 255 0 0 3 8 0 cv.Circle processed center 1 cv.CV_RGB.. 1 cv.CV_RGB 0 255 0 1 8 0 cv.Circle processed center Radius cv.CV_RGB 255 0 0 3 8 0 except print nothing found pass # show..