First time here? Check out the FAQ!
answered 2016-11-30 16:39:09 -0600
converting xrayImg to 1 channel image using
cv::cvtColor(xrayImg,xray1Channel,CV_BGR2GRAY);
solved the roblem.