Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

what is wrong with my use of the split function?

$
0
0
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?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>