samples: avoid using of legacy code constructions in viz sample

This commit is contained in:
Alexander Alekhin 2018-04-03 15:59:17 +03:00
parent 9558a35cde
commit 53944cbebb

View File

@ -163,7 +163,7 @@ int main (int argc,char **argv)
waitKey(30);
//! [slide_bar_for_thresh]
//! [manage_viz_imshow_window]
h.fen3D = new viz::Viz3d("3D Histogram");
h.fen3D = makePtr<viz::Viz3d>("3D Histogram");
h.nbWidget=0;
h.fen3D->registerKeyboardCallback(KeyboardViz3d,&h);
DrawHistogram3D(h);