mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
samples: avoid using of legacy code constructions in viz sample
This commit is contained in:
parent
9558a35cde
commit
53944cbebb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user