本文整理汇总了C++中Binary::setModal方法的典型用法代码示例。如果您正苦于以下问题:C++ Binary::setModal方法的具体用法?C++ Binary::setModal怎么用?C++ Binary::setModal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Binary
的用法示例。
在下文中一共展示了Binary::setModal方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: on_pushButton_clicked
void GroundTruth::on_pushButton_clicked()
{
QString filename = QFileDialog::getOpenFileName(
this,
tr("Open File"),
"/home/soumyadeep/work/stampVarOwnData/soumya/non_overlapped/",
"All Files (*.*)" );
string imagepath;
imagepath = filename.toUtf8().constData();
src = imread(imagepath,1);
cvtColor(src, src_gray, CV_BGR2GRAY);
//IITkgp_functions::statistical_analysis stat;
//stat.DrawHistogram(src_gray);
IITkgp_functions::folder folderobj;
imagename = imagepath.c_str();
substring = folderobj.input_image_name_cut(imagepath.c_str());
folderobj.makedir(substring);
/*
char *name;
name = (char *) malloc ( 2001 * sizeof(char));
if(name == NULL)
{
printf("Memory can not be allocated\n");
exit(0);
}
name = folderobj.CreateNameIntoFolder(substring,"gray.png");
imwrite(name,src_gray);
*/
namedWindow( "Src Image", CV_WINDOW_KEEPRATIO );
imshow("Src Image",src);
Binary BSelecWin;
BSelecWin.setModal(true);
BSelecWin.exec();
//waitKey(0);
}