fastNlMeansDenoising
*/
CV_EXPORTS void nonLocalMeans(InputArray src, OutputArray dst,
- float h,
- int search_window = 21,
- int block_size = 7,
- int borderMode = BORDER_DEFAULT,
- Stream& stream = Stream::Null());
+ float h,
+ int search_window = 21,
+ int block_size = 7,
+ int borderMode = BORDER_DEFAULT,
+ Stream& stream = Stream::Null());
+CV_WRAP inline void nonLocalMeans(const GpuMat& src, CV_OUT GpuMat& dst,
+ float h,
+ int search_window = 21,
+ int block_size = 7,
+ int borderMode = BORDER_DEFAULT,
+ Stream& stream = Stream::Null())
+{
+ nonLocalMeans(InputArray(src), OutputArray(dst), h, search_window, block_size, borderMode, stream);
+};
/** @brief Perform image denoising using Non-local Means Denoising algorithm
<http://www.ipol.im/pub/algo/bcm_non_local_means_denoising> with several computational
fastNlMeansDenoising
*/
CV_EXPORTS void fastNlMeansDenoising(InputArray src, OutputArray dst,
- float h,
- int search_window = 21,
- int block_size = 7,
- Stream& stream = Stream::Null());
+ float h,
+ int search_window = 21,
+ int block_size = 7,
+ Stream& stream = Stream::Null());
+CV_WRAP inline void fastNlMeansDenoising(const GpuMat& src, CV_OUT GpuMat& dst,
+ float h,
+ int search_window = 21,
+ int block_size = 7,
+ Stream& stream = Stream::Null())
+{
+ fastNlMeansDenoising(InputArray(src), OutputArray(dst), h, search_window, block_size, stream);
+}
/** @brief Modification of fastNlMeansDenoising function for colored images
int search_window = 21,
int block_size = 7,
Stream& stream = Stream::Null());
+CV_WRAP inline void fastNlMeansDenoisingColored(const GpuMat& src, CV_OUT GpuMat& dst,
+ float h_luminance, float photo_render,
+ int search_window = 21,
+ int block_size = 7,
+ Stream& stream = Stream::Null())
+{
+ fastNlMeansDenoisingColored(InputArray(src), OutputArray(dst), h_luminance, photo_render, search_window, block_size, stream);
+}
//! @} photo
self.assertTrue(cuMat.step == 0)
self.assertTrue(cuMat.size() == (0, 0))
+ def test_cuda_denoising(self):
+ self.assertEqual(True, hasattr(cv.cuda, 'fastNlMeansDenoising'))
+ self.assertEqual(True, hasattr(cv.cuda, 'fastNlMeansDenoisingColored'))
+ self.assertEqual(True, hasattr(cv.cuda, 'nonLocalMeans'))
+
if __name__ == '__main__':
NewOpenCVTests.bootstrap()