pull/7865/head
LaurentBerger 9 years ago
parent 1f724e2e8a
commit f92c9ddb43
  1. 4
      samples/cpp/falsecolor.cpp

@ -22,9 +22,9 @@ static void TrackColorMap(int x, void *r)
{
if (!lutRND)
{
RNG r;
RNG ra;
Mat *palette = new Mat(256, 1, CV_8UC3);
r.fill(*palette, RNG::UNIFORM, 0, 256);
ra.fill(*palette, RNG::UNIFORM, 0, 256);
lutRND = Ptr<Mat>(palette);
}
applyColorMap(p->img, dst, *lutRND.get());

Loading…
Cancel
Save