Skip to content
Snippets Groups Projects
Commit 386d6159 authored by Russel Arbore's avatar Russel Arbore
Browse files

make cava call medianMatrix again

parent 008fd95d
No related branches found
No related tags found
1 merge request!115GPU backend
Pipeline #201302 passed
...@@ -117,24 +117,7 @@ fn denoise<row : usize, col : usize>(input : f32[CHAN, row, col]) -> f32[CHAN, r ...@@ -117,24 +117,7 @@ fn denoise<row : usize, col : usize>(input : f32[CHAN, row, col]) -> f32[CHAN, r
} }
} }
let tmp : f32[9]; res[chan, r, c] = medianMatrix::<f32, 3, 3>(filter);
for r = 0 to 3 {
for c = 0 to 3 {
tmp[r * 3 + c] = filter[r, c];
}
}
for i = 0 to 9 - 1 {
for j = 0 to 9 - i - 1 {
if tmp[j] > tmp[j+1] {
let t : f32 = tmp[j];
tmp[j] = tmp[j+1];
tmp[j+1] = t;
}
}
}
res[chan, r, c] = tmp[9 / 2];
} else { } else {
res[chan, r, c] = input[chan, r, c]; res[chan, r, c] = input[chan, r, c];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment