samedi 7 mars 2020

multiple xor condition c++

Condition

What is the best way to code this condition in C++ (see the picture "Condition")?

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){
                                        ...

                                    }
                                }
                }

Aucun commentaire:

Enregistrer un commentaire