Commit 53944cbe authored by Alexander Alekhin's avatar Alexander Alekhin

samples: avoid using of legacy code constructions in viz sample

parent 9558a35c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment