Commit f92c9ddb authored by LaurentBerger's avatar LaurentBerger

warning 2

parent 1f724e2e
...@@ -22,9 +22,9 @@ static void TrackColorMap(int x, void *r) ...@@ -22,9 +22,9 @@ static void TrackColorMap(int x, void *r)
{ {
if (!lutRND) if (!lutRND)
{ {
RNG r; RNG ra;
Mat *palette = new Mat(256, 1, CV_8UC3); 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); lutRND = Ptr<Mat>(palette);
} }
applyColorMap(p->img, dst, *lutRND.get()); applyColorMap(p->img, dst, *lutRND.get());
......
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