message: examples: added option to select filter
diff: @@ -34,7 +34,8 @@ using namespace oidn;
  void printUsage()
  {
  std::cout << "Open Image Denoise Example" << std::endl;
  - std::cout << "Usage: denoise [-ldr ldr_color.pfm] [-srgb] [-hdr hdr_color.pfm]" << std::endl
  + std::cout << "Usage: denoise [-f RT|RTLightmap]" << std::endl
  + << " [-ldr ldr_color.pfm] [-srgb] [-hdr hdr_color.pfm]" << std::endl
  << " [-alb albedo.pfm] [-nrm normal.pfm]" << std::endl
  << " [-o output.pfm] [-ref reference_output.pfm]" << std::endl
  << " [-bench ntimes] [-threads n] [-affinity 0|1]" << std::endl;
  @@ -62,6 +63,7 @@ bool progressCallback(void* userPtr, double n)
  int main(int argc, char* argv[])
  {
  + std::string filterType = "RT";
  std::string colorFilename, albedoFilename, normalFilename;
  std::string outputFilename, refFilename;
  bool hdr = false;
  @@ -83,7 +85,9 @@ int main(int argc, char* argv[])
  while (args.hasNext())
  {
  std::string opt = args.getNextOpt();
  - if (opt == "ldr")
  + if (opt == "f" || opt == "filter")
  + filterType = args.getNextValue();
  + else if (opt == "ldr")
  {
  colorFilename = args.getNextValue();
  hdr = false;
  @@ -176,7 +180,7 @@ int main(int argc, char* argv[])
  device.set("setAffinity", bool(setAffinity));
  device.commit();
  - oidn::FilterRef filter = device.newFilter("RT");
  + oidn::FilterRef filter = device.newFilter(filterType.c_str());
  filter.setImage("color", color.getData(), oidn::Format::Float3, width, height);
  if (albedo)
  @@ -202,6 +206,7 @@ int main(int argc, char* argv[])
  const int versionPatch = device.get<int>("versionPatch");
  std::cout << ": version=" << versionMajor << "." << versionMinor << "." << versionPatch
  + << ", filter=" << filterType
  << ", msec=" << (1000. * initTime) << std::endl;
  // Denoise the image
  