Why is this use of the split function not recognized?
Mat ColorTransForm(Mat input, double step)
{
cv::Mat output = input.clone();
cv::Vector RGB(3);
split(output,RGB);
for(int i = 0 ; i < output.rows; i++)
{
for (int j = 0 ; j< output.cols ; j++)
{
RGB[0].at(i,j) = B_transform(RGB[0].at(i,j), step);
RGB[1].at(i,j) = R_transform(RGB[1].at(i,j), step);
RGB[2].at(i,j) = G_transform(RGB[2].at(i,j), step);
}
}
merge(RGB,output);
return output;
}
I says i doesn't know the use of the split?
↧