Home | History | Annotate | Download | only in examples

Lines Matching refs:solution

92                    PGMImage<double>* solution) {
102 solution->MutablePixelFromLinearIndex(index));
122 double* pixel = solution->MutablePixel(x + x_delta_indices[i],
138 // solution stays within [0, 255].
139 void SolveProblem(Problem* problem, PGMImage<double>* solution) {
162 // Make the solution stay in [0, 255].
163 for (int x = 0; x < solution->width(); ++x) {
164 for (int y = 0; y < solution->height(); ++y) {
165 *solution->MutablePixel(x, y) =
166 std::min(255.0, std::max(0.0, solution->Pixel(x, y)));
206 PGMImage<double> solution(image.width(), image.height());
207 solution.Set(0.0);
210 CreateProblem(foe, image, &problem, &solution);
212 SolveProblem(&problem, &solution);
215 CHECK(solution.WriteToFile(FLAGS_output))