ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
evaluation.cpp File Reference
#include "lib.h"

Functions

float evaluation (Mat gt, double gt_scaling, Mat &errorMap, float *result, float focal_length, float base_line, int dispRange, float d_val[], float threshold_)
 
float evaluation (Mat gt, double gt_scaling, Mat &errorMap, uchar *result, float focal_length, float base_line, int dispRange, float d_val[], float threshold_)
 
int valid_pixel_cnt (Mat gt, double gt_scaling, Mat &validROI, float focal_length, float base_line, int dispRange, float d_val[])
 

Function Documentation

◆ evaluation() [1/2]

float evaluation ( Mat  gt,
double  gt_scaling,
Mat &  errorMap,
float *  result,
float  focal_length,
float  base_line,
int  dispRange,
float  d_val[],
float  threshold_ 
)

Evaluate the depth map (DISP_SPLIT == True)

Parameters
gtGround truth depth image
gt_scalingScale the depth image (according to ground truth)
errorMapError map in the result image (compared with GT)
resultInput depth image
focal_lengthCamera focal length
base_lineThe distance between the stereo camera
dispRangeThe number of pixels for matching comparison
d_valrange for evaluation (array)
threshold_
Returns
MSE_ROI / valid_pixels_cnt

◆ evaluation() [2/2]

float evaluation ( Mat  gt,
double  gt_scaling,
Mat &  errorMap,
uchar *  result,
float  focal_length,
float  base_line,
int  dispRange,
float  d_val[],
float  threshold_ 
)

Evaluate the depth map (DISP_SPLIT == False)

Parameters
gtGround truth depth image
gt_scalingScale the depth image (according to ground truth)
errorMapError map in the result image (compared with GT)
resultInput depth image
focal_lengthCamera focal length
base_lineThe distance between the stereo camera
dispRangeThe number of pixels for matching comparison
d_valrange for evaluation (array)
threshold_
Returns
MSE_ROI / valid_pixels_cnt

◆ valid_pixel_cnt()

int valid_pixel_cnt ( Mat  gt,
double  gt_scaling,
Mat &  validROI,
float  focal_length,
float  base_line,
int  dispRange,
float  d_val[] 
)

Check valid pixels in depth map

d_val[0] < pixel distance in GT < d_val[1]

Returns
number of valid pixels