mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
warning 2
This commit is contained in:
parent
1f724e2e8a
commit
f92c9ddb43
@ -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…
Reference in New Issue
Block a user