Home
last modified time | relevance | path

Searched refs:rectangle (Results 1 – 25 of 150) sorted by relevance

123456

/external/opencv3/samples/python2/
Dgrabcut.py48 rectangle = False # flag for drawing rect variable
55 global img,img2,drawing,value,mask,rectangle,rect,rect_or_mask,ix,iy,rect_over
59 rectangle = True
63 if rectangle == True:
65 cv2.rectangle(img,(ix,iy),(x,y),BLUE,2)
70 rectangle = False
72 cv2.rectangle(img,(ix,iy),(x,y),BLUE,2)
151 rectangle = False variable
/external/opencv3/doc/py_tutorials/py_gui/py_mouse_handling/
Dpy_mouse_handling.markdown54 function has two parts, one to draw rectangle and other to draw the circles. This specific example
62 mode = True # if True, draw rectangle. Press 'm' to toggle to curve
76 cv2.rectangle(img,(ix,iy),(x,y),(0,255,0),-1)
83 cv2.rectangle(img,(ix,iy),(x,y),(0,255,0),-1)
88 a keyboard binding for key 'm' to toggle between rectangle and circle.
110 -# In our last example, we drew filled rectangle. You modify the code to draw an unfilled
111 rectangle.
/external/opencv3/doc/py_tutorials/py_imgproc/py_contours/py_contour_features/
Dpy_contour_features.markdown110 we will take the rectangle image above. First I found its contour as cnt. Now I found its convex
112 [[[234 202]], [[ 51 202]], [[ 51 79]], [[234 79]]] which are the four corner points of rectangle.
135 It is a straight rectangle, it doesn't consider the rotation of the object. So area of the bounding
136 rectangle won't be minimum. It is found by the function **cv2.boundingRect()**.
138 Let (x,y) be the top-left coordinate of the rectangle and (w,h) be its width and height.
141 cv2.rectangle(img,(x,y),(x+w,y+h),(0,255,0),2)
146 Here, bounding rectangle is drawn with minimum area, so it considers the rotation also. The function
148 center (x,y), (width, height), angle of rotation ). But to draw this rectangle, we need 4 corners of
149 the rectangle. It is obtained by the function **cv2.boxPoints()**
156 Both the rectangles are shown in a single image. Green rectangle shows the normal bounding rect. Red
[all …]
/external/opencv3/doc/py_tutorials/py_imgproc/py_grabcut/
Dpy_grabcut.markdown19 How it works from user point of view ? Initially user draws a rectangle around the foreground region
20 (foreground region shoule be completely inside the rectangle). Then algorithm segments it
27 See the image below. First player and football is enclosed in a blue rectangle. Then some final
35 - User inputs the rectangle. Everything outside this rectangle will be taken as sure background
36 (That is the reason it is mentioned before that your rectangle should include all the
37 objects). Everything inside rectangle is unknown. Similarly any user input specifying
74 - *rect* - It is the coordinates of a rectangle which includes the foreground object in the
80 which decides whether we are drawing rectangle or final touchup strokes.
83 *fgdModel* and *bgdModel*. We give the rectangle parameters. It's all straight-forward. Let the
85 rectangle. Then run the grabcut. It modifies the mask image. In the new mask image, pixels will be
[all …]
/external/opencv3/doc/tutorials/core/basic_geometric_drawing/
Dbasic_geometric_drawing.markdown13 - Draw a **rectangle** by using the OpenCV function @ref cv::rectangle
80 -# And to draw the rook we employed *MyLine*, *rectangle* and a *MyPolygon*:
88 rectangle( rook_image,
220 - *rectangle*
222 rectangle( rook_image,
228 Finally we have the @ref cv::rectangle function (we did not create a special function for
231 - The rectangle will be drawn on **rook_image**
232 - Two opposite vertices of the rectangle are defined by *\* Point( 0, 7*w/8.0 )*\*
234 - The color of the rectangle is given by **Scalar(0, 255, 255)** which is the BGR value
236 - Since the thickness value is given by **-1**, the rectangle will be filled.
/external/opencv3/doc/py_tutorials/py_gui/py_drawing_functions/
Dpy_drawing_functions.markdown8 - You will learn these functions : **cv2.line()**, **cv2.circle()** , **cv2.rectangle()**,
40 To draw a rectangle, you need top-left corner and bottom-right corner of rectangle. This time we
41 will draw a green rectangle at the top-right corner of image.
43 cv2.rectangle(img,(384,0),(510,128),(0,255,0),3)
48 rectangle drawn above.
/external/autotest/client/cros/ui/
Dui_test_base.py180 def draw_image_mask(self, filepath, rectangle, fill='white'): argument
194 draw.rectangle(rectangle, fill=fill)
/external/opencv3/doc/py_tutorials/py_imgproc/py_template_matching/
Dpy_template_matching.markdown23 is the maximum/minimum value. Take it as the top-left corner of rectangle and take (w,h) as width
24 and height of the rectangle. That rectangle is your region of template.
65 cv2.rectangle(img,top_left, bottom_right, 255, 2)
124 cv2.rectangle(img_rgb, pt, (pt[0] + w, pt[1] + h), (0,0,255), 2)
/external/opencv3/samples/gpu/
Dalpha_comp.cpp26 rectangle(src1, Rect(50, 50, 200, 200), Scalar(0, 0, 255, 128), 30); in main()
27 rectangle(src2, Rect(100, 100, 200, 200), Scalar(255, 0, 0, 128), 30); in main()
/external/opencv3/modules/imgproc/test/
Dtest_pc.cpp73 cv::rectangle(r1, Point(100, 100), Point(110, 110), Scalar(0, 0, 0), CV_FILLED); in run()
74 cv::rectangle(r2, Point(90, 80), Point(100, 90), Scalar(0, 0, 0), CV_FILLED); in run()
/external/libxml2/result/
Ddia1.sax41 SAX.startElement(dia:rectangle, val='1.9,6.8;11,8.55')
42 SAX.endElement(dia:rectangle)
141 SAX.startElement(dia:rectangle, val='2.579,3.96359;7.021,4.96359')
142 SAX.endElement(dia:rectangle)
239 SAX.startElement(dia:rectangle, val='10.9,7.45;13.05,9.55')
240 SAX.endElement(dia:rectangle)
Ddia2.sax41 SAX.startElement(dia:rectangle, val='1.9,6.8;11,8.55')
42 SAX.endElement(dia:rectangle)
141 SAX.startElement(dia:rectangle, val='2.579,3.96359;7.021,4.96359')
142 SAX.endElement(dia:rectangle)
239 SAX.startElement(dia:rectangle, val='10.9,7.45;13.05,9.55')
240 SAX.endElement(dia:rectangle)
Ddia2.rdr37 4 1 dia:rectangle 1 0
127 4 1 dia:rectangle 1 0
217 4 1 dia:rectangle 1 0
Ddia1.rdr37 4 1 dia:rectangle 1 0
127 4 1 dia:rectangle 1 0
217 4 1 dia:rectangle 1 0
Ddia2.rde37 4 1 dia:rectangle 1 0
127 4 1 dia:rectangle 1 0
217 4 1 dia:rectangle 1 0
Ddia1.rde37 4 1 dia:rectangle 1 0
127 4 1 dia:rectangle 1 0
217 4 1 dia:rectangle 1 0
/external/skia/site/user/api/
Dskrect.md49 In Skia, rectangle coordinates describe the boundary of what is drawn,
50 such that an empty rectangle encloses zero pixels:
65 rectangle should be initialized as follows:
/external/opencv3/samples/cpp/tutorial_code/Histograms_Matching/
DMatchTemplate_Demo.cpp84rectangle( img_display, matchLoc, Point( matchLoc.x + templ.cols , matchLoc.y + templ.rows ), Scal… in MatchingMethod()
85rectangle( result, matchLoc, Point( matchLoc.x + templ.cols , matchLoc.y + templ.rows ), Scalar::a… in MatchingMethod()
/external/opencv3/samples/cpp/
Dfacial_features.cpp142 rectangle(img, Point(face.x, face.y), Point(face.x+face.width, face.y+face.height), in detectFacialFeaures()
200rectangle(ROI, Point(m.x, m.y), Point(m.x+m.width, m.y+m.height), Scalar(0, 255, 0), 1, 4); in detectFacialFeaures()
205rectangle(ROI, Point(m.x, m.y), Point(m.x+m.width, m.y+m.height), Scalar(0, 255, 0), 1, 4); in detectFacialFeaures()
/external/opencv3/samples/cpp/tutorial_code/video/
Dbg_sub.cpp112 rectangle(frame, cv::Point(10, 2), cv::Point(100,20), in processVideo()
157 rectangle(frame, cv::Point(10, 2), cv::Point(100,20), in processImages()
/external/opencv3/doc/tutorials/imgproc/histograms/template_matching/
Dtemplate_matching.markdown48 red circle is probably the one with the highest value, so that location (the rectangle formed by
97 - Draw a rectangle around the area corresponding to the highest match
187 -# Display the source image and the result matrix. Draw a rectangle around the highest possible
190rectangle( img_display, matchLoc, Point( matchLoc.x + templ.cols , matchLoc.y + templ.rows ), Scal…
191rectangle( result, matchLoc, Point( matchLoc.x + templ.cols , matchLoc.y + templ.rows ), Scalar::a…
219 -# The right match is shown below (black rectangle around the face of the guy at the right). Notice
/external/opencv3/apps/annotation/
Dopencv_annotation.cpp58 rectangle(current_view, Point(roi_x0,roi_y0), Point(x,y), Scalar(0,0,255)); in on_mouse()
130rectangle(input_image, Point(roi_x0,roi_y0), Point(roi_x1,roi_y1), Scalar(0,255,0), 1); in get_annotations()
/external/skia/src/gpu/
DGrTestUtils.cpp133 SkRect rectangle = SkRect::MakeWH(10.f, 20.f); in TestRRectSimple() local
135 gRRect[0].setRectXY(rectangle, 1.f, 1.f); in TestRRectSimple()
137 gRRect[1].setRectXY(rectangle, 2.0f, 1.0f); in TestRRectSimple()
/external/deqp/doc/testspecs/GLES3/
Dfunctional.instanced.txt37 For each instance a rectangle-shaped grid of triangles is drawn. Instanced
38 variables are rectangle offset and color components R, G and B. Offsets are
/external/clang/test/FixIt/
Dtypo.c38 rectangle *r2 = &r1; // expected-error{{unknown type name 'rectangle'; did you mean 'Rectangle'?}} in test()

123456