Creating Widgets
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Creating Widgets
Prev Tutorial: Transformations
Next Tutorial: Creating a 3D histogram
In this tutorial you will learn how to
- Create your own widgets using WidgetAccessor and VTK.
- Show your widget in the visualization window.
Code
You can download the code from here.
#ifndef USE_VTK
#include <iostream>
int main()
{
std::cout << "This sample requires direct compilation with VTK. Stop" << ::;
;
}
#
# </.>
# <//.>
# <>
# <.>
# <.>
# <.>
# <.>
# <.>
# <.>
# <.>
# <.>
;
;
()
{
<< <<
<<
<< <<
<< <<
<< <<
<< ;
}
: ::
{
:
( &, &, &, :: & = ::::());
};
::( &, &, &, :: & )
{
<> = <>::();
->(., ., .);
->(., ., .);
->(., ., .);
<> = <>::();
->()->(,);
->()->(,);
->()->(,);
<> = <>::();
->();
<> = <>::();
->();
->();
<> = <>::();
# <=
->();
#
->();
#
<> = <>::();
->();
::::(*, );
();
}
()
{
();
:: ();
((,,), (,,), (,,), ::::());
.(, );
.();
;
}
#