MCPcopy Create free account
hub / github.com/audeering/opensmile / OnInit

Method OnInit

plugindev/ClassifierResultGUI.cpp:234–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232
233
234bool ClsResultApp::OnInit()
235{
236 // make sure to call this first
237 wxInitAllImageHandlers();
238
239
240 mframe = new ClsResultFrame( _("TUM openSMILE classifier demo output"), wxPoint(50, 50), wxSize(650, 350), smileObj->nClasses, smileObj->nRegression );
241 mframe->Show(true);
242 int i;
243 for (i=0; i<smileObj->nClasses ; i++) {
244 mframe->drawPane->loadClassImage(i,smileObj->className[i],smileObj->imageFile[i],wxBITMAP_TYPE_JPEG);
245
246 }
247 for (i=0; i<smileObj->nRegression ; i++) {
248 mframe->drawPane->setRegressionText(i,smileObj->regressionName[i]);
249 }
250 SetTopWindow(mframe);
251 return true;
252}
253
254ClsResultFrame::ClsResultFrame(const wxString& title, const wxPoint& pos, const wxSize& size, int nCls, int nReg)
255 : wxFrame(NULL, wxID_ANY, title, pos, size)

Callers

nothing calls this directly

Calls 1

loadClassImageMethod · 0.80

Tested by

no test coverage detected