Contents.m 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. %% HDR-VDP-2: A calibrated visual metric for visibility and quality predictions in all luminance conditions
  2. % matlab version
  3. %
  4. % -----------------------------------------------------------------
  5. % Documentation
  6. %
  7. % HDRVDP - run HDR-VDP-2 on a pair of images
  8. % HDRVDP_VISUALIZE - produce visualization of the probability maps
  9. % HDRVDP_PIX_PER_DEG - compute an angular resolution required for HDR-VDP-2
  10. %
  11. % -----------------------------------------------------------------
  12. % Example:
  13. %
  14. % % Load reference and test images
  15. % T = double(imread( 'DistortedImage.png' ))/2^8; % images must be
  16. % % normalized 0-1
  17. % R = double(imread( 'OriginalImage.png' ))/2^8;
  18. %
  19. % % Compute pixels per degree for the viewing conditions
  20. % ppd = hdrvdp_pix_per_deg( 21, [size(O,2) size(O,1)], 1 );
  21. %
  22. % % Run hdrvdp
  23. % res1 = hdrvdp( T, R, 'sRGB-display', ppd )
  24. %
  25. % Copyright (c) 2004-2011, Rafal Mantiuk <mantiuk@gmail.com>
  26. %
  27. % Permission to use, copy, modify, and/or distribute this software for any
  28. % purpose with or without fee is hereby granted, provided that the above
  29. % copyright notice and this permission notice appear in all copies.
  30. %
  31. % THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  32. % WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  33. % MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  34. % ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  35. % WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  36. % ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  37. % OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.