public ScaleStage(GlobalSettings global, PerStageSettings per_stage) // from settings Constructor { evolution_settings = new Evolution_Settings() { populationPoolNumber = per_stage.populationPoolNumber, maximumNumberOfBrushStrokes = per_stage.maximumNumberOfBrushStrokes, brushTexture = global.brushTexture, mutationChance = global.mutationChance, brushSizeLowerBound = per_stage.brushSizeLowerBound, brushSizeHigherBound = per_stage.brushSizeHigherBound, }; fitness_settings = new Fitness_Settings() { costume_mask = per_stage.costume_mask, ColorWeight = global.ColorWeight, LuminacityWeight = global.LuminacityWeight, fitnessPowFactor = global.fitnessPowFactor, }; scale_settings = new Scale_Settings() { sigma = per_stage.sigma, gaussian_kernel_size = per_stage.gaussian_kernel_size, sobel_step_size = per_stage.sobel_step_size, position_domain_threshold = per_stage.position_domain_threshold, apply_mask = per_stage.apply_mask, }; }
public Scale_Settings(Scale_Settings other) // Copy Constructor { sigma = other.sigma; gaussian_kernel_size = other.gaussian_kernel_size; sobel_step_size = other.sobel_step_size; position_domain_threshold = other.position_domain_threshold; apply_mask = other.apply_mask; }
public ScaleStage(ScaleStage other) // Copy Constructor { evolution_settings = new Evolution_Settings(other.evolution_settings); fitness_settings = new Fitness_Settings(other.fitness_settings); scale_settings = new Scale_Settings(other.scale_settings); }
private FitnessData fitness_data; // container holding all fitness info // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- // Constructor // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- public ScaleStage() // Default Constructor { evolution_settings = new Evolution_Settings(); fitness_settings = new Fitness_Settings(); scale_settings = new Scale_Settings(); }