What is the best way to code this condition in C++?
I tried to code it, but it alredy looks too complicated and has errors when compiling
if(alpha <= hsv_image[2].at<float>(i,j)/hsv_bkg[2].at<float>(i,j))
{
D = min(...);
if( abs(hsv_image[1].at<uchar>(i,j)-hsv_bkg[1].at<uchar>(i,j))<=T_value && D<=T_value){
...
}
}
}