Second example converting an image to/from HSV colormodel
- Author
- MIP
#include <iostream>
#include <Base/Image/ImageBase.hh>
#include <Base/Image/ImageConvert.hh>
#include <Base/Image/ImageIO.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[]) {
if (argc<2) {
cerr << argv[0] << " src image \n";
return -2;
}
BIASERR("error loading image "<<argv[1]);
return -1;
} else {
cerr << "read "<<argv[1]<<endl;
}
for (int x=0; x<sizeX; x++) {
for (int y=0; y<sizeY; y++) {
}
}
BIASERR("error writing image ");
return -2;
}
BIASERR("error writing image ");
return -2;
}
BIASERR("error writing image ");
return -2;
}
cerr<<"image data written to file"<<endl;
return 0;
}