fork download
  1. /// ImageBufAlgo::contrast ---------------------------------------------------
  2. /// Formula: out = (in-pivot)*contrast + pivot
  3. ///
  4. /// Parameters:
  5. /// R - Output image R must have float pixel data type. R can be
  6. /// initialized by the caller or not. If initialized and
  7. /// R.nchannels() != A.nchannels(), then false is returned.
  8. /// If not initialized, then it is initialized from A's spec
  9. /// but the format is set to float, since output images from
  10. /// IBA functions have float pixel data type by convention.
  11. /// A - Input image A must have float pixel data type and at
  12. /// least one channel.
  13. /// contrast - A float parameter that can take values >= 0. Values < 0
  14. /// are not allowed because the image colors get inverted.
  15. /// Values closer to 0 result in values closer to pivot
  16. /// and values further than 0 result in values further than
  17. /// pivot. Values above 1 result in very strong contrast.
  18. /// pivot - A float parameter that must be in range 0->1. All
  19. /// pixel values deviate from this pivot value to lesser
  20. /// or greater degree. Values closer to pivot deviate
  21. /// less, and values further deviate to bigger degree. This
  22. /// is the case because contrast adjustment essentially is
  23. /// a multiplication.
  24. /// roi - The operation will be applied only to this region. If
  25. /// roi is not defined, then it is initialized from R.
  26. /// If it is defined but not fully contained in R's region,
  27. /// then its new value is the intersection region with R.
  28. /// threads - Number of threads.
  29. /// --------------------------------------------------------------------------
  30. bool DLLPUBLIC contrast (ImageBuf &R, const ImageBuf &A,
  31. float contrast, float pivot,
  32. ROI roi = ROI(), int threads = 0);
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:30: error: expected initializer before ‘contrast’
stdout
Standard output is empty