Skip to content

Commit 8a9a940

Browse files
committed
Merge pull request opencv#9180 from alalek:fix_photo_crash_win32
2 parents 6ba22de + 1ff6c75 commit 8a9a940

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/photo/src/fast_nlmeans_denoising_invoker.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ void FastNlMeansDenoisingInvoker<T, IT, UIT, D, WT>::operator() (const Range& ra
205205
const T * b_up_ptr = extended_src_.ptr<T>(start_by - template_window_half_size_ - 1 + y);
206206
const T * b_down_ptr = extended_src_.ptr<T>(start_by + template_window_half_size_ + y);
207207

208+
// MSVC 2015 generates unaligned destination for "movaps" instruction for 32-bit builds
209+
#if defined _MSC_VER && _MSC_VER == 1900 && !defined _WIN64
210+
#pragma loop(no_vector)
211+
#endif
208212
for (int x = 0; x < search_window_size; x++)
209213
{
210214
// remove from current pixel sum column sum with index "first_col_num"

0 commit comments

Comments
 (0)