本文整理汇总了C++中ci::params::InterfaceGlRef::setPosition方法的典型用法代码示例。如果您正苦于以下问题:C++ InterfaceGlRef::setPosition方法的具体用法?C++ InterfaceGlRef::setPosition怎么用?C++ InterfaceGlRef::setPosition使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ci::params::InterfaceGlRef
的用法示例。
在下文中一共展示了InterfaceGlRef::setPosition方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setup
void SegmentationApp::setup()
{
#ifdef _WIN32
showWin32Console();
#endif
guiMode = GUI_MODE::LOAD_IMAGE;
drawMode = DRAW_MODE::INPUT_GROUNDTRUTH;
this->setWindowSize(WINDOW_WIDTH, WINDOW_HEIGHT);
this->setWindowPos(20, 20);
interface = params::InterfaceGl::create(this->getWindow(),
"Segmentation",
ci::app::toPixels(ci::Vec2i(WINDOW_WIDTH/6,GUI_HEIGHT)));
interface->setPosition(ci::Vec2i(25,50));
firstImageRect = Rectf(WINDOW_WIDTH/6.f+50, 50, 3.5f*WINDOW_WIDTH/6.f, GUI_HEIGHT);
secondImageRect = Rectf(3.5f*WINDOW_WIDTH/6.f+10, 50, 3.5f*WINDOW_WIDTH/6.f+10+firstImageRect.x2-firstImageRect.x1, GUI_HEIGHT);
colorThreshold = 120;
mahalonobisThreshold = 50;
greenWeight = 1.2f;
blueWeight = 2.9f;
filterRadius = 2;
hueThreshold = 0.075f;
hueAngle = -0.046f;
otsusIterations = 2;
diceCoefficientResult = 0;
mouse = new MouseUI(this->getWindow());
initInterface();
}