platform/core/multimedia/dfs-opencv.git
2 years agoConvert disparity to CV_8UC1 and scale down to 1/16
Tae-Young Chung [Wed, 20 Oct 2021 04:22:44 +0000 (13:22 +0900)]
Convert disparity to CV_8UC1 and scale down to 1/16

SGBM outs disparity map as CV_16SC type after scaling up 16 times.
To dump and check disparity results, convert them CV_8UC1 and
scale down to 1/16.

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoAdd width and height parameters to Initialized()'s input parameters
Tae-Young Chung [Tue, 19 Oct 2021 04:21:09 +0000 (13:21 +0900)]
Add width and height parameters to Initialized()'s input parameters

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoAdd InitRectifyMap() and change distortionCoeff order
Tae-Young Chung [Tue, 19 Oct 2021 01:04:08 +0000 (10:04 +0900)]
Add InitRectifyMap() and change distortionCoeff order

mapping table, which is used to rectify distorted images,
is pre-computed in InitRectifyMap().
Before actual depth computation by compute() function of opencv,
rectification with mapping table is done by remap() function
of opencv.

The order of distortion coefficients is k1, k2, p1, p2, and k3,
not k1, k2, k3, p1, and p2.

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoAdd stereoCalibZed.yaml for stereo calibration and add InitializeStereoCalibration...
Tae-Young Chung [Mon, 18 Oct 2021 06:51:18 +0000 (15:51 +0900)]
Add stereoCalibZed.yaml for stereo calibration and add InitializeStereoCalibration() method and variables for calibration

The stereoCalibZed.yaml file is for zed camera only. It is added to test dfs-opencv using zed camera.
You should change the file if you try to use other camera.

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoFix bug
Tae-Young Chung [Thu, 14 Oct 2021 04:03:14 +0000 (13:03 +0900)]
Fix bug

base.type should be extra.type

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoimplement Run() and GetDepthData()
Tae-Young Chung [Wed, 13 Oct 2021 00:26:41 +0000 (09:26 +0900)]
implement Run() and GetDepthData()

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoChange parameters of Intialize() to DepthParameter
Tae-Young Chung [Fri, 8 Oct 2021 02:41:44 +0000 (11:41 +0900)]
Change parameters of Intialize() to DepthParameter

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoFix errata and add LOG to check enter/leave api
Tae-Young Chung [Thu, 7 Oct 2021 09:18:14 +0000 (18:18 +0900)]
Fix errata and add LOG to check enter/leave api

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoAdd Initialize()
Tae-Young Chung [Thu, 7 Oct 2021 05:27:48 +0000 (14:27 +0900)]
Add Initialize()

Initialize() creates cv::StereoSGBM as a smart pointer and
initializes some parameters for DFS.
It only supports MODE_SGBM_3WAY.

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoAdd dfs-opencv
Tae-Young Chung [Tue, 5 Oct 2021 06:32:16 +0000 (15:32 +0900)]
Add dfs-opencv

This commit is to provide dummy library to test with
dfs-adaptation and mediavision's depth module.

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoInitial commit
Tae-Young Chung [Wed, 29 Sep 2021 02:04:35 +0000 (11:04 +0900)]
Initial commit

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>