Home | History | Annotate | Download | only in examples

Lines Matching refs:image

55 DEFINE_string(input, "", "File to which the output image should be written");
57 DEFINE_string(output, "", "File to which the output image should be written");
90 const PGMImage<double>& image,
96 for (unsigned index = 0; index < image.NumPixels(); ++index) {
99 image.PixelFromLinearIndex(index));
114 // Add FoE regularization for each patch in the image.
115 for (int x = 0; x < image.width() - (foe.Size() - 1); ++x) {
116 for (int y = 0; y < image.height() - (foe.Size() - 1); ++y) {
176 usage("This program denoises an image using Ceres. Sample usage:\n");
178 usage += " --input=<noisy image PGM file> --foe_file=<FoE file name>";
184 std::cerr << "Please provide an image file name.\n";
201 PGMImage<double> image(FLAGS_input);
202 if (image.width() == 0) {
206 PGMImage<double> solution(image.width(), image.height());
210 CreateProblem(foe, image, &problem, &solution);