Open3D (C++ API)  0.18.0+252c867
NPPImage.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 #pragma once
8 
9 #ifdef BUILD_CUDA_MODULE
10 #include "open3d/core/Dtype.h"
11 #include "open3d/core/Tensor.h"
13 
14 namespace open3d {
15 namespace t {
16 namespace geometry {
17 namespace npp {
18 
19 void RGBToGray(const core::Tensor &src_im, core::Tensor &dst_im);
20 
21 void Dilate(const open3d::core::Tensor &srcim,
22  open3d::core::Tensor &dstim,
23  int kernel_size);
24 
25 void Resize(const open3d::core::Tensor &srcim,
26  open3d::core::Tensor &dstim,
27  t::geometry::Image::InterpType interp_type);
28 
29 void Filter(const open3d::core::Tensor &srcim,
30  open3d::core::Tensor &dstim,
31  const open3d::core::Tensor &kernel);
32 
33 void FilterBilateral(const open3d::core::Tensor &srcim,
34  open3d::core::Tensor &dstim,
35  int kernel_size,
36  float value_sigma,
37  float distance_sigma);
38 
39 void FilterGaussian(const open3d::core::Tensor &srcim,
40  open3d::core::Tensor &dstim,
41  int kernel_size,
42  float sigma);
43 
44 void FilterSobel(const open3d::core::Tensor &srcim,
45  open3d::core::Tensor &dstim_dx,
46  open3d::core::Tensor &dstim_dy,
47  int kernel_size);
48 } // namespace npp
49 } // namespace geometry
50 } // namespace t
51 } // namespace open3d
52 
53 #endif // BUILD_CUDA_MODULE
Definition: Tensor.h:32
InterpType
Image interpolation algorithms.
Definition: Image.h:172
void Filter(const open3d::core::Tensor &src_im, open3d::core::Tensor &dst_im, const open3d::core::Tensor &kernel)
Definition: NPPImage.cpp:246
void FilterBilateral(const core::Tensor &src_im, core::Tensor &dst_im, int kernel_size, float value_sigma, float distance_sigma)
Definition: NPPImage.cpp:319
void FilterGaussian(const core::Tensor &src_im, core::Tensor &dst_im, int kernel_size, float sigma)
Definition: NPPImage.cpp:378
void Dilate(const core::Tensor &src_im, core::Tensor &dst_im, int kernel_size)
Definition: NPPImage.cpp:178
void Resize(const open3d::core::Tensor &src_im, open3d::core::Tensor &dst_im, t::geometry::Image::InterpType interp_type)
Definition: NPPImage.cpp:97
void FilterSobel(const core::Tensor &src_im, core::Tensor &dst_im_dx, core::Tensor &dst_im_dy, int kernel_size)
Definition: NPPImage.cpp:406
void RGBToGray(const core::Tensor &src_im, core::Tensor &dst_im)
Definition: NPPImage.cpp:63
Definition: PinholeCameraIntrinsic.cpp:16