00001 /**************************************************************************** 00002 ** ui.h extension file, included from the uic-generated form implementation. 00003 ** 00004 ** If you want to add, delete, or rename functions or slots, use 00005 ** Qt Designer to update this file, preserving your code. 00006 ** 00007 ** You should not define a constructor or destructor in this file. 00008 ** Instead, write your code in functions called init() and destroy(). 00009 ** These will automatically be called by the form's constructor and 00010 ** destructor. 00011 *****************************************************************************/ 00012 00013 00014 void DescriptorVecDialog::init( DescriptorVec &dv ) 00015 { 00016 itsDV = &dv; 00017 Image<PixRGB<byte> > img = itsDV->getFoveaImage(); 00018 Image<PixRGB<byte> > histImg = itsDV->getHistogramImage(); 00019 if(img.initialized()){ 00020 imgDisp->setImage(img); 00021 histDisp->setImage(histImg); 00022 } 00023 00024 } 00025 00026 00027 void DescriptorVecDialog::update() 00028 { 00029 Image<PixRGB<byte> > img = itsDV->getFoveaImage(); 00030 Image<PixRGB<byte> > histImg = itsDV->getHistogramImage(); 00031 imgDisp->setImage(img); 00032 histDisp->setImage(histImg); 00033 00034 std::vector<double> FV = itsDV->getFV(); 00035 LINFO("Get desription\n"); 00036 FVtable->setNumRows(FV.size()); 00037 FVtable->setNumCols(1); 00038 00039 for(uint i=0; i<FV.size(); i++) 00040 { 00041 QString stat = QString("%L1").arg(FV[i]); 00042 FVtable->setText(i-1,1, stat); 00043 } 00044 FVtable->updateContents(); 00045 }