bm3d
bm3d copied to clipboard
[nantest.zip](https://github.com/gfacciol/bm3d/files/9533947/nantest.zip) I've found some images (typically mono images with mostly low pixel values and high dynamic range, such as unstretched astronomical images, when processed with BM3D, generate blocks of -nan...
In bm3d.cpp, lines 272, 304, 307 and 341 seem to do the following: * chop the image into pieces with border 2 * nWien * reassemble the image based on...
https://github.com/gfacciol/bm3d/blob/5c86dfe4df9383fb22c7ee6585ef9fb529964984/bm3d.cpp#L1341 ``` //! Threshold distances in order to keep similar patches for (int dj = -(int) nHW; dj