Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/highgui/src/window.cpp
16337 views
1
/*M///////////////////////////////////////////////////////////////////////////////////////
2
//
3
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4
//
5
// By downloading, copying, installing or using the software you agree to this license.
6
// If you do not agree to this license, do not download, install,
7
// copy or use the software.
8
//
9
//
10
// Intel License Agreement
11
// For Open Source Computer Vision Library
12
//
13
// Copyright (C) 2000, Intel Corporation, all rights reserved.
14
// Third party copyrights are property of their respective owners.
15
//
16
// Redistribution and use in source and binary forms, with or without modification,
17
// are permitted provided that the following conditions are met:
18
//
19
// * Redistribution's of source code must retain the above copyright notice,
20
// this list of conditions and the following disclaimer.
21
//
22
// * Redistribution's in binary form must reproduce the above copyright notice,
23
// this list of conditions and the following disclaimer in the documentation
24
// and/or other materials provided with the distribution.
25
//
26
// * The name of Intel Corporation may not be used to endorse or promote products
27
// derived from this software without specific prior written permission.
28
//
29
// This software is provided by the copyright holders and contributors "as is" and
30
// any express or implied warranties, including, but not limited to, the implied
31
// warranties of merchantability and fitness for a particular purpose are disclaimed.
32
// In no event shall the Intel Corporation or contributors be liable for any direct,
33
// indirect, incidental, special, exemplary, or consequential damages
34
// (including, but not limited to, procurement of substitute goods or services;
35
// loss of use, data, or profits; or business interruption) however caused
36
// and on any theory of liability, whether in contract, strict liability,
37
// or tort (including negligence or otherwise) arising in any way out of
38
// the use of this software, even if advised of the possibility of such damage.
39
//
40
//M*/
41
42
#include "precomp.hpp"
43
#include <map>
44
#include "opencv2/core/opengl.hpp"
45
46
// in later times, use this file as a dispatcher to implementations like cvcap.cpp
47
48
CV_IMPL void cvSetWindowProperty(const char* name, int prop_id, double prop_value)
49
{
50
switch(prop_id)
51
{
52
//change between fullscreen or not.
53
case CV_WND_PROP_FULLSCREEN:
54
55
if (!name || (prop_value!=CV_WINDOW_NORMAL && prop_value!=CV_WINDOW_FULLSCREEN))//bad argument
56
break;
57
58
#if defined (HAVE_QT)
59
cvSetModeWindow_QT(name,prop_value);
60
#elif defined(HAVE_WIN32UI)
61
cvSetModeWindow_W32(name,prop_value);
62
#elif defined (HAVE_GTK)
63
cvSetModeWindow_GTK(name,prop_value);
64
#elif defined (HAVE_CARBON)
65
cvSetModeWindow_CARBON(name,prop_value);
66
#elif defined (HAVE_COCOA)
67
cvSetModeWindow_COCOA(name,prop_value);
68
#elif defined (WINRT)
69
cvSetModeWindow_WinRT(name, prop_value);
70
#endif
71
72
break;
73
74
case CV_WND_PROP_AUTOSIZE:
75
#if defined (HAVE_QT)
76
cvSetPropWindow_QT(name,prop_value);
77
#endif
78
break;
79
80
case CV_WND_PROP_ASPECTRATIO:
81
#if defined (HAVE_QT)
82
cvSetRatioWindow_QT(name,prop_value);
83
#endif
84
break;
85
86
default:;
87
}
88
}
89
90
/* return -1 if error */
91
CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
92
{
93
if (!name)
94
return -1;
95
96
switch(prop_id)
97
{
98
case CV_WND_PROP_FULLSCREEN:
99
100
#if defined (HAVE_QT)
101
return cvGetModeWindow_QT(name);
102
#elif defined(HAVE_WIN32UI)
103
return cvGetModeWindow_W32(name);
104
#elif defined (HAVE_GTK)
105
return cvGetModeWindow_GTK(name);
106
#elif defined (HAVE_CARBON)
107
return cvGetModeWindow_CARBON(name);
108
#elif defined (HAVE_COCOA)
109
return cvGetModeWindow_COCOA(name);
110
#elif defined (WINRT)
111
return cvGetModeWindow_WinRT(name);
112
#else
113
return -1;
114
#endif
115
break;
116
117
case CV_WND_PROP_AUTOSIZE:
118
119
#if defined (HAVE_QT)
120
return cvGetPropWindow_QT(name);
121
#elif defined(HAVE_WIN32UI)
122
return cvGetPropWindowAutoSize_W32(name);
123
#elif defined (HAVE_GTK)
124
return cvGetPropWindowAutoSize_GTK(name);
125
#else
126
return -1;
127
#endif
128
break;
129
130
case CV_WND_PROP_ASPECTRATIO:
131
132
#if defined (HAVE_QT)
133
return cvGetRatioWindow_QT(name);
134
#elif defined(HAVE_WIN32UI)
135
return cvGetRatioWindow_W32(name);
136
#elif defined (HAVE_GTK)
137
return cvGetRatioWindow_GTK(name);
138
#else
139
return -1;
140
#endif
141
break;
142
143
case CV_WND_PROP_OPENGL:
144
145
#if defined (HAVE_QT)
146
return cvGetOpenGlProp_QT(name);
147
#elif defined(HAVE_WIN32UI)
148
return cvGetOpenGlProp_W32(name);
149
#elif defined (HAVE_GTK)
150
return cvGetOpenGlProp_GTK(name);
151
#else
152
return -1;
153
#endif
154
break;
155
156
case CV_WND_PROP_VISIBLE:
157
#if defined (HAVE_QT)
158
return cvGetPropVisible_QT(name);
159
#else
160
return -1;
161
#endif
162
break;
163
default:
164
return -1;
165
}
166
}
167
168
cv::Rect cvGetWindowImageRect(const char* name)
169
{
170
if (!name)
171
return cv::Rect(-1, -1, -1, -1);
172
173
#if defined (HAVE_QT)
174
return cvGetWindowRect_QT(name);
175
#elif defined(HAVE_WIN32UI)
176
return cvGetWindowRect_W32(name);
177
#elif defined (HAVE_GTK)
178
return cvGetWindowRect_GTK(name);
179
#elif defined (HAVE_CARBON)
180
return cvGetWindowRect_CARBON(name);
181
#elif defined (HAVE_COCOA)
182
return cvGetWindowRect_COCOA(name);
183
#else
184
return cv::Rect(-1, -1, -1, -1);
185
#endif
186
}
187
188
cv::Rect cv::getWindowImageRect(const String& winname)
189
{
190
CV_TRACE_FUNCTION();
191
return cvGetWindowImageRect(winname.c_str());
192
}
193
194
void cv::namedWindow( const String& winname, int flags )
195
{
196
CV_TRACE_FUNCTION();
197
cvNamedWindow( winname.c_str(), flags );
198
}
199
200
void cv::destroyWindow( const String& winname )
201
{
202
CV_TRACE_FUNCTION();
203
cvDestroyWindow( winname.c_str() );
204
}
205
206
void cv::destroyAllWindows()
207
{
208
CV_TRACE_FUNCTION();
209
cvDestroyAllWindows();
210
}
211
212
void cv::resizeWindow( const String& winname, int width, int height )
213
{
214
CV_TRACE_FUNCTION();
215
cvResizeWindow( winname.c_str(), width, height );
216
}
217
218
void cv::resizeWindow(const String& winname, const cv::Size& size)
219
{
220
CV_TRACE_FUNCTION();
221
cvResizeWindow(winname.c_str(), size.width, size.height);
222
}
223
224
void cv::moveWindow( const String& winname, int x, int y )
225
{
226
CV_TRACE_FUNCTION();
227
cvMoveWindow( winname.c_str(), x, y );
228
}
229
230
void cv::setWindowProperty(const String& winname, int prop_id, double prop_value)
231
{
232
CV_TRACE_FUNCTION();
233
cvSetWindowProperty( winname.c_str(), prop_id, prop_value);
234
}
235
236
double cv::getWindowProperty(const String& winname, int prop_id)
237
{
238
CV_TRACE_FUNCTION();
239
return cvGetWindowProperty(winname.c_str(), prop_id);
240
}
241
242
int cv::waitKeyEx(int delay)
243
{
244
CV_TRACE_FUNCTION();
245
return cvWaitKey(delay);
246
}
247
248
int cv::waitKey(int delay)
249
{
250
CV_TRACE_FUNCTION();
251
int code = waitKeyEx(delay);
252
#ifndef WINRT
253
static int use_legacy = -1;
254
if (use_legacy < 0)
255
{
256
use_legacy = getenv("OPENCV_LEGACY_WAITKEY") != NULL ? 1 : 0;
257
}
258
if (use_legacy > 0)
259
return code;
260
#endif
261
return (code != -1) ? (code & 0xff) : -1;
262
}
263
264
int cv::createTrackbar(const String& trackbarName, const String& winName,
265
int* value, int count, TrackbarCallback callback,
266
void* userdata)
267
{
268
CV_TRACE_FUNCTION();
269
return cvCreateTrackbar2(trackbarName.c_str(), winName.c_str(),
270
value, count, callback, userdata);
271
}
272
273
void cv::setTrackbarPos( const String& trackbarName, const String& winName, int value )
274
{
275
CV_TRACE_FUNCTION();
276
cvSetTrackbarPos(trackbarName.c_str(), winName.c_str(), value );
277
}
278
279
void cv::setTrackbarMax(const String& trackbarName, const String& winName, int maxval)
280
{
281
CV_TRACE_FUNCTION();
282
cvSetTrackbarMax(trackbarName.c_str(), winName.c_str(), maxval);
283
}
284
285
void cv::setTrackbarMin(const String& trackbarName, const String& winName, int minval)
286
{
287
CV_TRACE_FUNCTION();
288
cvSetTrackbarMin(trackbarName.c_str(), winName.c_str(), minval);
289
}
290
291
int cv::getTrackbarPos( const String& trackbarName, const String& winName )
292
{
293
CV_TRACE_FUNCTION();
294
return cvGetTrackbarPos(trackbarName.c_str(), winName.c_str());
295
}
296
297
void cv::setMouseCallback( const String& windowName, MouseCallback onMouse, void* param)
298
{
299
CV_TRACE_FUNCTION();
300
cvSetMouseCallback(windowName.c_str(), onMouse, param);
301
}
302
303
int cv::getMouseWheelDelta( int flags )
304
{
305
CV_TRACE_FUNCTION();
306
return CV_GET_WHEEL_DELTA(flags);
307
}
308
309
int cv::startWindowThread()
310
{
311
CV_TRACE_FUNCTION();
312
return cvStartWindowThread();
313
}
314
315
// OpenGL support
316
317
void cv::setOpenGlDrawCallback(const String& name, OpenGlDrawCallback callback, void* userdata)
318
{
319
CV_TRACE_FUNCTION();
320
cvSetOpenGlDrawCallback(name.c_str(), callback, userdata);
321
}
322
323
void cv::setOpenGlContext(const String& windowName)
324
{
325
CV_TRACE_FUNCTION();
326
cvSetOpenGlContext(windowName.c_str());
327
}
328
329
void cv::updateWindow(const String& windowName)
330
{
331
CV_TRACE_FUNCTION();
332
cvUpdateWindow(windowName.c_str());
333
}
334
335
#ifdef HAVE_OPENGL
336
namespace
337
{
338
std::map<cv::String, cv::ogl::Texture2D> wndTexs;
339
std::map<cv::String, cv::ogl::Texture2D> ownWndTexs;
340
std::map<cv::String, cv::ogl::Buffer> ownWndBufs;
341
342
void glDrawTextureCallback(void* userdata)
343
{
344
cv::ogl::Texture2D* texObj = static_cast<cv::ogl::Texture2D*>(userdata);
345
346
cv::ogl::render(*texObj);
347
}
348
}
349
#endif // HAVE_OPENGL
350
351
void cv::imshow( const String& winname, InputArray _img )
352
{
353
CV_TRACE_FUNCTION();
354
const Size size = _img.size();
355
#ifndef HAVE_OPENGL
356
CV_Assert(size.width>0 && size.height>0);
357
{
358
Mat img = _img.getMat();
359
CvMat c_img = cvMat(img);
360
cvShowImage(winname.c_str(), &c_img);
361
}
362
#else
363
const double useGl = getWindowProperty(winname, WND_PROP_OPENGL);
364
CV_Assert(size.width>0 && size.height>0);
365
366
if (useGl <= 0)
367
{
368
Mat img = _img.getMat();
369
CvMat c_img = cvMat(img);
370
cvShowImage(winname.c_str(), &c_img);
371
}
372
else
373
{
374
const double autoSize = getWindowProperty(winname, WND_PROP_AUTOSIZE);
375
376
if (autoSize > 0)
377
{
378
resizeWindow(winname, size.width, size.height);
379
}
380
381
setOpenGlContext(winname);
382
383
cv::ogl::Texture2D& tex = ownWndTexs[winname];
384
385
if (_img.kind() == _InputArray::CUDA_GPU_MAT)
386
{
387
cv::ogl::Buffer& buf = ownWndBufs[winname];
388
buf.copyFrom(_img);
389
buf.setAutoRelease(false);
390
391
tex.copyFrom(buf);
392
tex.setAutoRelease(false);
393
}
394
else
395
{
396
tex.copyFrom(_img);
397
}
398
399
tex.setAutoRelease(false);
400
401
setOpenGlDrawCallback(winname, glDrawTextureCallback, &tex);
402
403
updateWindow(winname);
404
}
405
#endif
406
}
407
408
void cv::imshow(const String& winname, const ogl::Texture2D& _tex)
409
{
410
CV_TRACE_FUNCTION();
411
#ifndef HAVE_OPENGL
412
CV_UNUSED(winname);
413
CV_UNUSED(_tex);
414
CV_Error(cv::Error::OpenGlNotSupported, "The library is compiled without OpenGL support");
415
#else
416
const double useGl = getWindowProperty(winname, WND_PROP_OPENGL);
417
418
if (useGl <= 0)
419
{
420
CV_Error(cv::Error::OpenGlNotSupported, "The window was created without OpenGL context");
421
}
422
else
423
{
424
const double autoSize = getWindowProperty(winname, WND_PROP_AUTOSIZE);
425
426
if (autoSize > 0)
427
{
428
Size size = _tex.size();
429
resizeWindow(winname, size.width, size.height);
430
}
431
432
setOpenGlContext(winname);
433
434
cv::ogl::Texture2D& tex = wndTexs[winname];
435
436
tex = _tex;
437
438
tex.setAutoRelease(false);
439
440
setOpenGlDrawCallback(winname, glDrawTextureCallback, &tex);
441
442
updateWindow(winname);
443
}
444
#endif
445
}
446
447
// Without OpenGL
448
449
#ifndef HAVE_OPENGL
450
451
CV_IMPL void cvSetOpenGlDrawCallback(const char*, CvOpenGlDrawCallback, void*)
452
{
453
CV_Error(CV_OpenGlNotSupported, "The library is compiled without OpenGL support");
454
}
455
456
CV_IMPL void cvSetOpenGlContext(const char*)
457
{
458
CV_Error(CV_OpenGlNotSupported, "The library is compiled without OpenGL support");
459
}
460
461
CV_IMPL void cvUpdateWindow(const char*)
462
{
463
CV_Error(CV_OpenGlNotSupported, "The library is compiled without OpenGL support");
464
}
465
466
#endif // !HAVE_OPENGL
467
468
#if defined (HAVE_QT)
469
470
cv::QtFont cv::fontQt(const String& nameFont, int pointSize, Scalar color, int weight, int style, int spacing)
471
{
472
CvFont f = cvFontQt(nameFont.c_str(), pointSize, cvScalar(color), weight, style, spacing);
473
void* pf = &f; // to suppress strict-aliasing
474
return *(cv::QtFont*)pf;
475
}
476
477
void cv::addText( const Mat& img, const String& text, Point org, const QtFont& font)
478
{
479
CvMat _img = cvMat(img);
480
cvAddText( &_img, text.c_str(), cvPoint(org), (CvFont*)&font);
481
}
482
483
void cv::addText( const Mat& img, const String& text, Point org, const String& nameFont,
484
int pointSize, Scalar color, int weight, int style, int spacing)
485
{
486
CvFont f = cvFontQt(nameFont.c_str(), pointSize, cvScalar(color), weight, style, spacing);
487
CvMat _img = cvMat(img);
488
cvAddText( &_img, text.c_str(), cvPoint(org), &f);
489
}
490
491
void cv::displayStatusBar(const String& name, const String& text, int delayms)
492
{
493
cvDisplayStatusBar(name.c_str(),text.c_str(), delayms);
494
}
495
496
void cv::displayOverlay(const String& name, const String& text, int delayms)
497
{
498
cvDisplayOverlay(name.c_str(),text.c_str(), delayms);
499
}
500
501
int cv::startLoop(int (*pt2Func)(int argc, char *argv[]), int argc, char* argv[])
502
{
503
return cvStartLoop(pt2Func, argc, argv);
504
}
505
506
void cv::stopLoop()
507
{
508
cvStopLoop();
509
}
510
511
void cv::saveWindowParameters(const String& windowName)
512
{
513
cvSaveWindowParameters(windowName.c_str());
514
}
515
516
void cv::loadWindowParameters(const String& windowName)
517
{
518
cvLoadWindowParameters(windowName.c_str());
519
}
520
521
int cv::createButton(const String& button_name, ButtonCallback on_change, void* userdata, int button_type , bool initial_button_state )
522
{
523
return cvCreateButton(button_name.c_str(), on_change, userdata, button_type , initial_button_state );
524
}
525
526
#else
527
528
static const char* NO_QT_ERR_MSG = "The library is compiled without QT support";
529
530
cv::QtFont cv::fontQt(const String&, int, Scalar, int, int, int)
531
{
532
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
533
}
534
535
void cv::addText( const Mat&, const String&, Point, const QtFont&)
536
{
537
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
538
}
539
540
void cv::addText(const Mat&, const String&, Point, const String&, int, Scalar, int, int, int)
541
{
542
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
543
}
544
545
void cv::displayStatusBar(const String&, const String&, int)
546
{
547
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
548
}
549
550
void cv::displayOverlay(const String&, const String&, int )
551
{
552
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
553
}
554
555
int cv::startLoop(int (*)(int argc, char *argv[]), int , char**)
556
{
557
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
558
}
559
560
void cv::stopLoop()
561
{
562
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
563
}
564
565
void cv::saveWindowParameters(const String&)
566
{
567
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
568
}
569
570
void cv::loadWindowParameters(const String&)
571
{
572
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
573
}
574
575
int cv::createButton(const String&, ButtonCallback, void*, int , bool )
576
{
577
CV_Error(CV_StsNotImplemented, NO_QT_ERR_MSG);
578
}
579
580
#endif
581
582
#if defined (HAVE_WIN32UI) // see window_w32.cpp
583
#elif defined (HAVE_GTK) // see window_gtk.cpp
584
#elif defined (HAVE_COCOA) // see window_carbon.cpp
585
#elif defined (HAVE_CARBON)
586
#elif defined (HAVE_QT) // see window_QT.cpp
587
#elif defined (WINRT) && !defined (WINRT_8_0) // see window_winrt.cpp
588
589
#else
590
591
// No windowing system present at compile time ;-(
592
//
593
// We will build place holders that don't break the API but give an error
594
// at runtime. This way people can choose to replace an installed HighGUI
595
// version with a more capable one without a need to recompile dependent
596
// applications or libraries.
597
598
void cv::setWindowTitle(const String&, const String&)
599
{
600
CV_Error(Error::StsNotImplemented, "The function is not implemented. "
601
"Rebuild the library with Windows, GTK+ 2.x or Carbon support. "
602
"If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script");
603
}
604
605
#define CV_NO_GUI_ERROR(funcname) \
606
cv::error(cv::Error::StsError, \
607
"The function is not implemented. " \
608
"Rebuild the library with Windows, GTK+ 2.x or Carbon support. "\
609
"If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script", \
610
funcname, __FILE__, __LINE__)
611
612
613
CV_IMPL int cvNamedWindow( const char*, int )
614
{
615
CV_NO_GUI_ERROR("cvNamedWindow");
616
}
617
618
CV_IMPL void cvDestroyWindow( const char* )
619
{
620
CV_NO_GUI_ERROR( "cvDestroyWindow" );
621
}
622
623
CV_IMPL void
624
cvDestroyAllWindows( void )
625
{
626
CV_NO_GUI_ERROR( "cvDestroyAllWindows" );
627
}
628
629
CV_IMPL void
630
cvShowImage( const char*, const CvArr* )
631
{
632
CV_NO_GUI_ERROR( "cvShowImage" );
633
}
634
635
CV_IMPL void cvResizeWindow( const char*, int, int )
636
{
637
CV_NO_GUI_ERROR( "cvResizeWindow" );
638
}
639
640
CV_IMPL void cvMoveWindow( const char*, int, int )
641
{
642
CV_NO_GUI_ERROR( "cvMoveWindow" );
643
}
644
645
CV_IMPL int
646
cvCreateTrackbar( const char*, const char*,
647
int*, int, CvTrackbarCallback )
648
{
649
CV_NO_GUI_ERROR( "cvCreateTrackbar" );
650
}
651
652
CV_IMPL int
653
cvCreateTrackbar2( const char* /*trackbar_name*/, const char* /*window_name*/,
654
int* /*val*/, int /*count*/, CvTrackbarCallback2 /*on_notify2*/,
655
void* /*userdata*/ )
656
{
657
CV_NO_GUI_ERROR( "cvCreateTrackbar2" );
658
}
659
660
CV_IMPL void
661
cvSetMouseCallback( const char*, CvMouseCallback, void* )
662
{
663
CV_NO_GUI_ERROR( "cvSetMouseCallback" );
664
}
665
666
CV_IMPL int cvGetTrackbarPos( const char*, const char* )
667
{
668
CV_NO_GUI_ERROR( "cvGetTrackbarPos" );
669
}
670
671
CV_IMPL void cvSetTrackbarPos( const char*, const char*, int )
672
{
673
CV_NO_GUI_ERROR( "cvSetTrackbarPos" );
674
}
675
676
CV_IMPL void cvSetTrackbarMax(const char*, const char*, int)
677
{
678
CV_NO_GUI_ERROR( "cvSetTrackbarMax" );
679
}
680
681
CV_IMPL void cvSetTrackbarMin(const char*, const char*, int)
682
{
683
CV_NO_GUI_ERROR( "cvSetTrackbarMin" );
684
}
685
686
CV_IMPL void* cvGetWindowHandle( const char* )
687
{
688
CV_NO_GUI_ERROR( "cvGetWindowHandle" );
689
}
690
691
CV_IMPL const char* cvGetWindowName( void* )
692
{
693
CV_NO_GUI_ERROR( "cvGetWindowName" );
694
}
695
696
CV_IMPL int cvWaitKey( int )
697
{
698
CV_NO_GUI_ERROR( "cvWaitKey" );
699
}
700
701
CV_IMPL int cvInitSystem( int , char** )
702
{
703
704
CV_NO_GUI_ERROR( "cvInitSystem" );
705
}
706
707
CV_IMPL int cvStartWindowThread()
708
{
709
710
CV_NO_GUI_ERROR( "cvStartWindowThread" );
711
}
712
713
//-------- Qt ---------
714
CV_IMPL void cvAddText( const CvArr*, const char*, CvPoint , CvFont* )
715
{
716
CV_NO_GUI_ERROR("cvAddText");
717
}
718
719
CV_IMPL void cvDisplayStatusBar(const char* , const char* , int )
720
{
721
CV_NO_GUI_ERROR("cvDisplayStatusBar");
722
}
723
724
CV_IMPL void cvDisplayOverlay(const char* , const char* , int )
725
{
726
CV_NO_GUI_ERROR("cvNamedWindow");
727
}
728
729
CV_IMPL int cvStartLoop(int (*)(int argc, char *argv[]), int , char* argv[])
730
{
731
CV_UNUSED(argv);
732
CV_NO_GUI_ERROR("cvStartLoop");
733
}
734
735
CV_IMPL void cvStopLoop()
736
{
737
CV_NO_GUI_ERROR("cvStopLoop");
738
}
739
740
CV_IMPL void cvSaveWindowParameters(const char* )
741
{
742
CV_NO_GUI_ERROR("cvSaveWindowParameters");
743
}
744
745
// CV_IMPL void cvLoadWindowParameterss(const char* name)
746
// {
747
// CV_NO_GUI_ERROR("cvLoadWindowParameters");
748
// }
749
750
CV_IMPL int cvCreateButton(const char*, void (*)(int, void*), void*, int, int)
751
{
752
CV_NO_GUI_ERROR("cvCreateButton");
753
}
754
755
756
#endif
757
758
/* End of file. */
759
760