WIP Mutations ranking

This commit is contained in:
Mark Hoekveen
2018-08-11 11:05:03 +02:00
parent 34ba693e1c
commit 1de3961ece
5 changed files with 82 additions and 32 deletions
+16
View File
@@ -31,9 +31,25 @@ public:
Image* getMutated(Image* img) {
Image* mut = new Image(*img);
mut->type(GrayscaleType);
/*mut->quantizeColorSpace(GRAYColorspace);
mut->quantizeColors(256);
mut->quantize();
mut->type(TrueColorType);*/
return mut;
}
string ToString() {
return "Grayscale";
}
};
class Flip : public Mutation {
public:
Image* getMutated(Image* img) {
Image* mut = new Image(*img);
mut->flip();
return mut;
}
string ToString() {
return "Flip";
}
};