Change program type in hdr format files to modern value: RADIANCE so
authorRajkiran Natarajan <saskatchewancatch@gmail.com>
Wed, 18 Dec 2019 04:17:32 +0000 (20:17 -0800)
committerRajkiran Natarajan <saskatchewancatch@gmail.com>
Wed, 18 Dec 2019 04:17:32 +0000 (20:17 -0800)
modern readers that expect RADIANCE will read it

modules/imgcodecs/src/rgbe.cpp

index 7942fcd..cea23f6 100644 (file)
@@ -145,7 +145,7 @@ rgbe2float(float *red, float *green, float *blue, unsigned char rgbe[4])
 /* default minimal header. modify if you want more information in header */
 int RGBE_WriteHeader(FILE *fp, int width, int height, rgbe_header_info *info)
 {
-  const char *programtype = "RGBE";
+  const char *programtype = "RADIANCE";
 
   if (info && (info->valid & RGBE_VALID_PROGRAMTYPE))
     programtype = info->programtype;