public class opencv_cudastereo extends opencv_cudastereo
Constructor and Description |
---|
opencv_cudastereo() |
Modifier and Type | Method and Description |
---|---|
static DisparityBilateralFilter |
createDisparityBilateralFilter() |
static DisparityBilateralFilter |
createDisparityBilateralFilter(int ndisp,
int radius,
int iters)
\brief Creates DisparityBilateralFilter object.
|
static StereoBeliefPropagation |
createStereoBeliefPropagation() |
static StereoBeliefPropagation |
createStereoBeliefPropagation(int ndisp,
int iters,
int levels,
int msg_type)
\brief Creates StereoBeliefPropagation object.
|
static StereoBM |
createStereoBM() |
static StereoBM |
createStereoBM(int numDisparities,
int blockSize)
\brief Creates StereoBM object.
|
static StereoConstantSpaceBP |
createStereoConstantSpaceBP() |
static StereoConstantSpaceBP |
createStereoConstantSpaceBP(int ndisp,
int iters,
int levels,
int nr_plane,
int msg_type)
\brief Creates StereoConstantSpaceBP object.
|
static void |
drawColorDisp(GpuMat src_disp,
GpuMat dst_disp,
int ndisp) |
static void |
drawColorDisp(GpuMat src_disp,
GpuMat dst_disp,
int ndisp,
Stream stream) |
static void |
drawColorDisp(Mat src_disp,
Mat dst_disp,
int ndisp) |
static void |
drawColorDisp(Mat src_disp,
Mat dst_disp,
int ndisp,
Stream stream)
\brief Colors a disparity image.
|
static void |
drawColorDisp(UMat src_disp,
UMat dst_disp,
int ndisp) |
static void |
drawColorDisp(UMat src_disp,
UMat dst_disp,
int ndisp,
Stream stream) |
static void |
reprojectImageTo3D(GpuMat disp,
GpuMat xyzw,
GpuMat Q) |
static void |
reprojectImageTo3D(GpuMat disp,
GpuMat xyzw,
GpuMat Q,
int dst_cn,
Stream stream) |
static void |
reprojectImageTo3D(Mat disp,
Mat xyzw,
Mat Q) |
static void |
reprojectImageTo3D(Mat disp,
Mat xyzw,
Mat Q,
int dst_cn,
Stream stream)
\brief Reprojects a disparity image to 3D space.
|
static void |
reprojectImageTo3D(UMat disp,
UMat xyzw,
UMat Q) |
static void |
reprojectImageTo3D(UMat disp,
UMat xyzw,
UMat Q,
int dst_cn,
Stream stream) |
map
@Namespace(value="cv::cuda") @opencv_core.Ptr public static StereoBM createStereoBM(int numDisparities, int blockSize)
numDisparities
- the disparity search range. For each pixel algorithm will find the best
disparity from 0 (default minimum disparity) to numDisparities. The search range can then be
shifted by changing the minimum disparity.blockSize
- the linear size of the blocks compared by the algorithm. The size should be odd
(as the block is centered at the current pixel). Larger block size implies smoother, though less
accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher
chance for algorithm to find a wrong correspondence.@Namespace(value="cv::cuda") @opencv_core.Ptr public static StereoBM createStereoBM()
@Namespace(value="cv::cuda") @opencv_core.Ptr public static StereoBeliefPropagation createStereoBeliefPropagation(int ndisp, int iters, int levels, int msg_type)
ndisp
- Number of disparities.iters
- Number of BP iterations on each level.levels
- Number of levels.msg_type
- Type for messages. CV_16SC1 and CV_32FC1 types are supported.@Namespace(value="cv::cuda") @opencv_core.Ptr public static StereoBeliefPropagation createStereoBeliefPropagation()
@Namespace(value="cv::cuda") @opencv_core.Ptr public static StereoConstantSpaceBP createStereoConstantSpaceBP(int ndisp, int iters, int levels, int nr_plane, int msg_type)
ndisp
- Number of disparities.iters
- Number of BP iterations on each level.levels
- Number of levels.nr_plane
- Number of disparity levels on the first level.msg_type
- Type for messages. CV_16SC1 and CV_32FC1 types are supported.@Namespace(value="cv::cuda") @opencv_core.Ptr public static StereoConstantSpaceBP createStereoConstantSpaceBP()
@Namespace(value="cv::cuda") @opencv_core.Ptr public static DisparityBilateralFilter createDisparityBilateralFilter(int ndisp, int radius, int iters)
ndisp
- Number of disparities.radius
- Filter radius.iters
- Number of iterations.@Namespace(value="cv::cuda") @opencv_core.Ptr public static DisparityBilateralFilter createDisparityBilateralFilter()
@Namespace(value="cv::cuda") public static void reprojectImageTo3D(@ByVal Mat disp, @ByVal Mat xyzw, @ByVal Mat Q, int dst_cn, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
disp
- Input single-channel 8-bit unsigned, 16-bit signed, 32-bit signed or 32-bit
floating-point disparity image. If 16-bit signed format is used, the values are assumed to have no
fractional bits.xyzw
- Output 3- or 4-channel floating-point image of the same size as disp . Each element of
xyzw(x,y) contains 3D coordinates (x,y,z) or (x,y,z,1) of the point (x,y) , computed from the
disparity map.Q
- 4 \times 4
perspective transformation matrix that can be obtained via stereoRectify .dst_cn
- The number of channels for output image. Can be 3 or 4.stream
- Stream for the asynchronous version.
reprojectImageTo3D
@Namespace(value="cv::cuda") public static void reprojectImageTo3D(@ByVal Mat disp, @ByVal Mat xyzw, @ByVal Mat Q)
@Namespace(value="cv::cuda") public static void reprojectImageTo3D(@ByVal UMat disp, @ByVal UMat xyzw, @ByVal UMat Q, int dst_cn, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void reprojectImageTo3D(@ByVal UMat disp, @ByVal UMat xyzw, @ByVal UMat Q)
@Namespace(value="cv::cuda") public static void reprojectImageTo3D(@ByVal GpuMat disp, @ByVal GpuMat xyzw, @ByVal GpuMat Q, int dst_cn, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void reprojectImageTo3D(@ByVal GpuMat disp, @ByVal GpuMat xyzw, @ByVal GpuMat Q)
@Namespace(value="cv::cuda") public static void drawColorDisp(@ByVal Mat src_disp, @ByVal Mat dst_disp, int ndisp, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
src_disp
- Input single-channel 8-bit unsigned, 16-bit signed, 32-bit signed or 32-bit
floating-point disparity image. If 16-bit signed format is used, the values are assumed to have no
fractional bits.dst_disp
- Output disparity image. It has the same size as src_disp. The type is CV_8UC4
in BGRA format (alpha = 255).ndisp
- Number of disparities.stream
- Stream for the asynchronous version.
This function draws a colored disparity map by converting disparity values from [0..ndisp) interval first to HSV color space (where different disparity values correspond to different hues) and then converting the pixels to RGB for visualization.
@Namespace(value="cv::cuda") public static void drawColorDisp(@ByVal Mat src_disp, @ByVal Mat dst_disp, int ndisp)
@Namespace(value="cv::cuda") public static void drawColorDisp(@ByVal UMat src_disp, @ByVal UMat dst_disp, int ndisp, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void drawColorDisp(@ByVal UMat src_disp, @ByVal UMat dst_disp, int ndisp)
@Namespace(value="cv::cuda") public static void drawColorDisp(@ByVal GpuMat src_disp, @ByVal GpuMat dst_disp, int ndisp, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
Copyright © 2020. All rights reserved.