Skip to content

Commit

Permalink
source/vsnlm.cpp: fix artifacts with temporal denoising (#2)
Browse files Browse the repository at this point in the history
This problem is introduced in b128386
  • Loading branch information
WolframRhodium committed Apr 18, 2022
1 parent 1d6616e commit 06547b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/vsnlm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,19 +497,19 @@ static inline void nlmAccumulation(
if (bits == 32) {
nlmAccumulationDispatch_f32(
weightp, wdstp, max_weightp,
castPtrs<const float>(srcp_bwd), castPtrs<const float>(srcp_bwd), temp_bwd, temp_bwd,
castPtrs<const float>(srcp_bwd), castPtrs<const float>(srcp_fwd), temp_bwd, temp_fwd,
offset_x, offset_y, width, height, stride, channels
);
} else if (bits <= 8) {
nlmAccumulationDispatch_u8(
weightp, wdstp, max_weightp,
castPtrs<const uint8_t>(srcp_bwd), castPtrs<const uint8_t>(srcp_bwd), temp_bwd, temp_bwd,
castPtrs<const uint8_t>(srcp_bwd), castPtrs<const uint8_t>(srcp_fwd), temp_bwd, temp_fwd,
offset_x, offset_y, width, height, stride, channels
);
} else if (bits <= 16) {
nlmAccumulationDispatch_u16(
weightp, wdstp, max_weightp,
castPtrs<const uint16_t>(srcp_bwd), castPtrs<const uint16_t>(srcp_bwd), temp_bwd, temp_bwd,
castPtrs<const uint16_t>(srcp_bwd), castPtrs<const uint16_t>(srcp_fwd), temp_bwd, temp_fwd,
offset_x, offset_y, width, height, stride, channels
);
} else {
Expand Down

0 comments on commit 06547b7

Please sign in to comment.