WIP Mutations ranking
This commit is contained in:
+16
@@ -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";
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user