samples: avoid using of legacy code constructions in viz sample
samples: avoid using of legacy code constructions in viz sample

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv