1 | initial version |
You can try like this :
vector<Mat> x;
split(x,src)
vector<double> minChannel;
vector<double> maxChannel;
minChannel.resize(x.size());
maxChannel.resize(x.size());
for (int i=0i<x.size();i++)
minMaxLoc(x[i],&minChannel[i],&maxChannel[i]);
resuts are in vectors minChannels and maxChannels
2 | No.2 Revision |
You can try like this :
vector<Mat> x;
split(x,src)
vector<double> minChannel;
vector<double> maxChannel;
minChannel.resize(x.size());
maxChannel.resize(x.size());
for (int i=0i<x.size();i++)
i=0;i<x.size();i++)
minMaxLoc(x[i],&minChannel[i],&maxChannel[i]);
resuts are in vectors minChannels and maxChannels
3 | No.3 Revision |
You can try like this :
vector<Mat> x;
split(x,src)
split(src,x)
vector<double> minChannel;
vector<double> maxChannel;
minChannel.resize(x.size());
maxChannel.resize(x.size());
for (int i=0;i<x.size();i++)
minMaxLoc(x[i],&minChannel[i],&maxChannel[i]);
resuts are in vectors minChannels and maxChannels