¡@

Home 

c++ Programming Glossary: rect

Setting ROI with mouse from a rectangle on a video

http://stackoverflow.com/questions/10881397/setting-roi-with-mouse-from-a-rectangle-on-a-video

ROI with mouse from a rectangle on a video I have video when the program is run the video's.. is taken as an image and the user is allowed to draw a rectangle on the image after the rectangle is drawn the user must.. user is allowed to draw a rectangle on the image after the rectangle is drawn the user must right click on the image to confirm..

Does const mean thread-safe in C++11?

http://stackoverflow.com/questions/14127379/does-const-mean-thread-safe-in-c11

17.6.5.9 3 A C standard library function shall not directly or indirectly modify objects 1.10 accessible by threads other.. 3 A C standard library function shall not directly or indirectly modify objects 1.10 accessible by threads other than the current.. than the current thread unless the objects are accessed directly or indirectly via the function ™s non const arguments including..

Determine if two rectangles overlap each other?

http://stackoverflow.com/questions/306316/determine-if-two-rectangles-overlap-each-other

if two rectangles overlap each other I am trying to write a C program that.. that takes the following inputs from the user to construct rectangles between 2 and 5 height width x pos y pos. All of these.. between 2 and 5 height width x pos y pos. All of these rectangles will exist parallel to the x and the y axis that is all..

OpenCV C++/Obj-C: Detecting a sheet of paper / Square Detection

http://stackoverflow.com/questions/8667818/opencv-c-obj-c-detecting-a-sheet-of-paper-square-detection

255 0 0 1 8 std vector cv Vec4i 0 cv Point draw bounding rect cv Rect rect boundingRect cv Mat squares i cv rectangle image.. std vector cv Vec4i 0 cv Point draw bounding rect cv Rect rect boundingRect cv Mat squares i cv rectangle image rect.tl rect.br.. rect cv Rect rect boundingRect cv Mat squares i cv rectangle image rect.tl rect.br cv Scalar 0 255 0 2 8 0 draw rotated..

Inverse fourier transformation in OpenCV

http://stackoverflow.com/questions/10269456/inverse-fourier-transformation-in-opencv

1 CV_MINMAX int cx dst.cols 2 int cy dst.rows 2 Mat q0 dst Rect 0 0 cx cy Mat q1 dst Rect cx 0 cx cy Mat q2 dst Rect 0 cy cx.. 2 int cy dst.rows 2 Mat q0 dst Rect 0 0 cx cy Mat q1 dst Rect cx 0 cx cy Mat q2 dst Rect 0 cy cx cy Mat q3 dst Rect cx cy.. dst Rect 0 0 cx cy Mat q1 dst Rect cx 0 cx cy Mat q2 dst Rect 0 cy cx cy Mat q3 dst Rect cx cy cx cy Mat tmp q0.copyTo tmp..

OpenCv 2.3 C - How to isolate object inside image

http://stackoverflow.com/questions/10315551/opencv-2-3-c-how-to-isolate-object-inside-image

0 maxVal.val 0 max i if minFound min i minFound 1 CvRect findBB IplImage imgSrc CvRect aux int xmin xmax ymin ymax xmin.. min i minFound 1 CvRect findBB IplImage imgSrc CvRect aux int xmin xmax ymin ymax xmin xmax ymin ymax 0 findX imgSrc.. ymax 0 findX imgSrc xmin xmax findY imgSrc ymin ymax aux cvRect xmin ymin xmax xmin ymax ymin printf BB d d d d n aux.x aux.y..

How to determine a region of interest and then crop an image using OpenCV

http://stackoverflow.com/questions/15693900/how-to-determine-a-region-of-interest-and-then-crop-an-image-using-opencv

reason width height of the box are switched. cv RotatedRect box cv minAreaRect cv Mat box_points std cout box w box.size.width.. of the box are switched. cv RotatedRect box cv minAreaRect cv Mat box_points std cout box w box.size.width h box.size.height.. switched they were switched manually in the code below cv Rect roi roi.x box.center.x box.size.height 2 roi.y box.center.y..

Determine if two rectangles overlap each other?

http://stackoverflow.com/questions/306316/determine-if-two-rectangles-overlap-each-other

does the following Gets all the vertices for Rectangle 1 and stores them in an array arrRect1 point 1 x arrRect1.. vertices for Rectangle 1 and stores them in an array arrRect1 point 1 x arrRect1 0 point 1 y arrRect1 1 and so on... Gets.. 1 and stores them in an array arrRect1 point 1 x arrRect1 0 point 1 y arrRect1 1 and so on... Gets all the vertices for..

int vs const int&

http://stackoverflow.com/questions/4705593/int-vs-const-int

P2d operator const P2d p x p.x y p.y return this struct Rect P2d tl br Rect const P2d tl const P2d br tl tl bt br Rect operator.. const P2d p x p.x y p.y return this struct Rect P2d tl br Rect const P2d tl const P2d br tl tl bt br Rect operator const P2d.. Rect P2d tl br Rect const P2d tl const P2d br tl tl bt br Rect operator const P2d p tl p br p return this Rect operator const..

Equivalent to cvSetImageROI in the OpenCV C++ interface

http://stackoverflow.com/questions/7041181/equivalent-to-cvsetimageroi-in-the-opencv-c-interface

it's right on the docs . Shame on me. Make a rectangle Rect roi 10 20 100 50 Point a cv Mat header at it no allocation is..

Stitching 2 images in opencv

http://stackoverflow.com/questions/8205835/stitching-2-images-in-opencv

mImg2.rows 2 CV_8UC3 velikost img1 Mat roi1 final Rect 0 0 mImg1.cols mImg1.rows Mat roi2 final Rect 0 0 warpImage2.cols.. roi1 final Rect 0 0 mImg1.cols mImg1.rows Mat roi2 final Rect 0 0 warpImage2.cols warpImage2.rows warpImage2.copyTo roi2 mImg1.copyTo..

How to set ROI in OpenCV?

http://stackoverflow.com/questions/8206466/how-to-set-roi-in-opencv

whom I want the second image colourMiniBinMask copied upon Rect ROI 478 359 160 120 Mat imageROI output ROI colourMiniBinMask.copyTo.. one in the second one I think this code should work cv Rect roi cv Rect img2.cols img1.cols 2 img2.rows img1.rows 2 img1.cols.. second one I think this code should work cv Rect roi cv Rect img2.cols img1.cols 2 img2.rows img1.rows 2 img1.cols img1.rows..

OpenCV C++/Obj-C: Detecting a sheet of paper / Square Detection

http://stackoverflow.com/questions/8667818/opencv-c-obj-c-detecting-a-sheet-of-paper-square-detection

1 8 std vector cv Vec4i 0 cv Point draw bounding rect cv Rect rect boundingRect cv Mat squares i cv rectangle image rect.tl.. Vec4i 0 cv Point draw bounding rect cv Rect rect boundingRect cv Mat squares i cv rectangle image rect.tl rect.br cv Scalar.. cv Scalar 0 255 0 2 8 0 draw rotated rect cv RotatedRect minRect minAreaRect cv Mat squares i cv Point2f rect_points..

Ruby win32 api interface

http://stackoverflow.com/questions/1202262/ruby-win32-api-interface

DWORD cbSize HWND hWnd UINT uCallbackMessage UINT uEdge RECT rc LPARAM lParam APPBARDATA PAPPBARDATA I tried to define this.. raise FindWindow failed if h 0 h end # From winddef.h RECT Struct.new left top right bottom RECT.class_eval do def pack.. end # From winddef.h RECT Struct.new left top right bottom RECT.class_eval do def pack left top right bottom .pack 'l4' end..

Fast rectangle to rectangle intersection

http://stackoverflow.com/questions/2752349/fast-rectangle-to-rectangle-intersection

of C . struct LONG left LONG top LONG right LONG bottom RECT bool IntersectRect const RECT r1 const RECT r2 return r2 left.. top LONG right LONG bottom RECT bool IntersectRect const RECT r1 const RECT r2 return r2 left r1 right r2 right left r2 top.. LONG bottom RECT bool IntersectRect const RECT r1 const RECT r2 return r2 left r1 right r2 right left r2 top r1 bottom r2..

Bitmap transfer using Winsock, GetDIBits and SetDiBits [closed]

http://stackoverflow.com/questions/3539874/bitmap-transfer-using-winsock-getdibits-and-setdibits

buf gets the bitmap data HBITMAP hBitmap BITMAP Bitmap RECT r HDC ActiveDC GetDC hActive HDC CopyDC CreateCompatibleDC ActiveDC.. newWidth scrWidth scrWidth newWidth scrHeight newHeight RECT r GetWindowRect hwnd r SetWindowPos hwnd NULL r.left r.top..

How to check if an other program is running in fullscreen mode, eg. a media player

http://stackoverflow.com/questions/3797802/how-to-check-if-an-other-program-is-running-in-fullscreen-mode-eg-a-media-play

bool IsFullScreenSize HWND hwnd const int cx const int cy RECT r GetWindowRect hwnd r return r.right r.left cx r.bottom r.top..

Creating a transparent window in C++ Win32

http://stackoverflow.com/questions/3970066/creating-a-transparent-window-in-c-win32

splash screen in the middle of the primary work area const RECT rcWork monitorinfo.rcWork POINT ptOrigin ptOrigin.x 0 ptOrigin.y..

window border width and height in Win32 - how do I get it?

http://stackoverflow.com/questions/431470/window-border-width-and-height-in-win32-how-do-i-get-it

I know the title bar is taller than ONE pixel I also tried RECT r r.left r.top 0 r.right r.bottom 400 AdjustWindowRect & r WS_OVERLAPPED.. code void ClientResize HWND hWnd int nWidth int nHeight RECT rcClient rcWind POINT ptDiff GetClientRect hWnd rcClient GetWindowRect..

How to save the client area of a child Window to a Bitmap file?

http://stackoverflow.com/questions/5950259/how-to-save-the-client-area-of-a-child-window-to-a-bitmap-file

visual c bitmapimage share improve this question RECT rect 0 GetWindowRect hwnd rect ATL CImage image_ new CImage.. HDC hDC GetDC hwnd HDC hTargetDC CreateCompatibleDC hDC RECT rect 0 GetWindowRect hwnd rect HBITMAP hBitmap CreateCompatibleBitmap..

How to get screenshot of a window as bitmap object in C++?

http://stackoverflow.com/questions/7292757/how-to-get-screenshot-of-a-window-as-bitmap-object-in-c

#define _WIN32_WINNT 0x0501 xp #include windows.h int main RECT rc HWND hwnd FindWindow TEXT Notepad NULL the window can't be..

How to display OpenCV Mat on MFC View

http://stackoverflow.com/questions/8501753/how-to-display-opencv-mat-on-mfc-view

the image you want to display CvvImage tempdefault RECT myrect specifiy where on the screen you want it to be displayed..

How to get screen resolution in C++? [duplicate]

http://stackoverflow.com/questions/8690619/how-to-get-screen-resolution-in-c

void GetDesktopResolution int horizontal int vertical RECT desktop Get a handle to the desktop window const HWND hDesktop..